summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-03-08 15:40:56 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-03-16 14:46:43 +0100
commit03617480d121232c06ce5887947326f3c92625eb (patch)
treec06ae17130f6272521af58c5d9c2e40637258148 /nsswitch
parenta27db0b61e40b6b503b53e3579867e227f1971b8 (diff)
downloadsamba-03617480d121232c06ce5887947326f3c92625eb.tar.gz
wbinfo: Improve the wording for --online-status
Currently it displays if a domain is online or offline which is wrong. It tells us if we maintain an active connection to the domain or not. Users are confused if they read offline because the think winbind is not functional with that domain. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Mar 16 14:46:43 CET 2018 on sn-devel-144
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wbinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c
index 82863c26760..1b58c73602a 100644
--- a/nsswitch/wbinfo.c
+++ b/nsswitch/wbinfo.c
@@ -640,7 +640,7 @@ static bool wbinfo_show_onlinestatus(const char *domain)
d_printf("%s : %s\n",
domain_list[i].short_name,
- is_offline ? "offline" : "online" );
+ is_offline ? "no active connection" : "active connection" );
}
wbcFreeMemory(domain_list);
@@ -2336,7 +2336,7 @@ int main(int argc, const char **argv, char **envp)
{ "all-domains", 0, POPT_ARG_NONE, 0, OPT_LIST_ALL_DOMAINS, "List all domains (trusted and own domain)" },
{ "own-domain", 0, POPT_ARG_NONE, 0, OPT_LIST_OWN_DOMAIN, "List own domain" },
{ "sequence", 0, POPT_ARG_NONE, 0, OPT_SEQUENCE, "Deprecated command, see --online-status" },
- { "online-status", 0, POPT_ARG_NONE, 0, OPT_ONLINESTATUS, "Show whether domains are marked as online or offline"},
+ { "online-status", 0, POPT_ARG_NONE, 0, OPT_ONLINESTATUS, "Show whether domains maintain an active connection"},
{ "domain-info", 'D', POPT_ARG_STRING, &string_arg, 'D', "Show most of the info we have about the domain" },
{ "user-info", 'i', POPT_ARG_STRING, &string_arg, 'i', "Get user info", "USER" },
{ "uid-info", 0, POPT_ARG_INT, &int_arg, OPT_UID_INFO, "Get user info from uid", "UID" },