wbinfo: Improve the wording for --online-status
authorAndreas Schneider <asn@samba.org>
Thu, 8 Mar 2018 14:40:56 +0000 (15:40 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Mar 2018 13:46:43 +0000 (14:46 +0100)
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

docs-xml/manpages/wbinfo.1.xml
nsswitch/wbinfo.c

index e2042ca623a017cd067788eb59c015cbfb97c120..21e3ac9fbf9c1e7fe5d0850d3e9b261aec2474e9 100644 (file)
 
                <varlistentry>
                <term>--online-status <replaceable>domain</replaceable></term>
-               <listitem><para>Show whether domains are marked as online or
-                               offline. An optional domain argument limits the
-                               output to the online status of a given domain.
+               <listitem><para>Display whether winbind currently maintains an
+                               active connection or not. An optional domain
+                               argument limits the output to the online status
+                               of a given domain.
                </para></listitem>
                </varlistentry>
 
index 82863c267604f5edffd332622e36d41179776b7e..1b58c73602a1d75fadf206fad6f4589534bdf5c3 100644 (file)
@@ -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" },