summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-13 00:46:28 +0000
committerTim Potter <tpot@samba.org>2002-05-13 00:46:28 +0000
commitb6c77fd3bbd72d84af44c56bfb9bf58fc7ed030a (patch)
tree6f9732711dfcc9891a15d42887b7c28a8ee055e0 /source3
parent086861ff31ae7fd490369d3ff89f2dbb0727df36 (diff)
downloadsamba-b6c77fd3bbd72d84af44c56bfb9bf58fc7ed030a.tar.gz
samba-b6c77fd3bbd72d84af44c56bfb9bf58fc7ed030a.tar.bz2
samba-b6c77fd3bbd72d84af44c56bfb9bf58fc7ed030a.zip
Merge of --set-auth-user updates from 2.2
(This used to be commit f01d48fbf5ba08edb0b2882957af98bdfd38c064)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/wbinfo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index 4ea1e6a30a..4cfaa3a8c0 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/nsswitch/wbinfo.c
@@ -3,7 +3,7 @@
Winbind status program.
- Copyright (C) Tim Potter 2000
+ Copyright (C) Tim Potter 2000-2002
Copyright (C) Andrew Bartlett 2002
This program is free software; you can redistribute it and/or modify
@@ -625,7 +625,7 @@ static BOOL wbinfo_ping(void)
static void usage(void)
{
d_printf("Usage: wbinfo -ug | -n name | -sSY sid | -UG uid/gid | -tm "
- "| -a user%%password\n");
+ "| -[aA] user%%password\n");
d_printf("\t-u\t\t\tlists all domain users\n");
d_printf("\t-g\t\t\tlists all domain groups\n");
d_printf("\t-n name\t\t\tconverts name to sid\n");
@@ -640,6 +640,7 @@ static void usage(void)
d_printf("\t-m\t\t\tlist trusted domains\n");
d_printf("\t-r user\t\t\tget user groups\n");
d_printf("\t-a user%%password\tauthenticate user\n");
+ d_printf("\t-A user%%password\tstore user and password used by winbindd (root only)\n");
d_printf("\t-p 'ping' winbindd to see if it is alive\n");
d_printf("\t--sequence\t\tshow sequence numbers of all domains\n");
}
@@ -683,7 +684,7 @@ int main(int argc, char **argv)
{ "sequence", 0, POPT_ARG_NONE, 0, OPT_SEQUENCE },
{ "user-groups", 'r', POPT_ARG_STRING, &string_arg, 'r' },
{ "authenticate", 'a', POPT_ARG_STRING, &string_arg, 'a' },
- { "set-auth-user", 0, POPT_ARG_STRING, &string_arg, OPT_SET_AUTH_USER },
+ { "set-auth-user", 'A', POPT_ARG_STRING, &string_arg, OPT_SET_AUTH_USER },
{ "ping", 'p', POPT_ARG_NONE, 0, 'p' },
{ 0, 0, 0, 0 }
};