diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-19 08:44:23 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-19 08:44:23 +0000 |
commit | a062e58d9e47f95ac7c66668b3cfe1f72386f6e0 (patch) | |
tree | f968f822fae231153347045cd7f673359a1a9a6f /source3/nsswitch/wbinfo.c | |
parent | e7da05b7605b4bf09a641095d1be23001f83a487 (diff) | |
download | samba-a062e58d9e47f95ac7c66668b3cfe1f72386f6e0.tar.gz samba-a062e58d9e47f95ac7c66668b3cfe1f72386f6e0.tar.bz2 samba-a062e58d9e47f95ac7c66668b3cfe1f72386f6e0.zip |
- added initial support for trusted domains in winbindd_ads
- gss error code patch from a.bokovoy@sam-solutions.net
- better sid dumping in ads_dump
- fixed help in wbinfo
(This used to be commit ee1c3e1f044b4ef62169ad74c5cac40eef81bfda)
Diffstat (limited to 'source3/nsswitch/wbinfo.c')
-rw-r--r-- | source3/nsswitch/wbinfo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c index 82d483611f..9c012eb85d 100644 --- a/source3/nsswitch/wbinfo.c +++ b/source3/nsswitch/wbinfo.c @@ -486,7 +486,7 @@ int main(int argc, char **argv) struct poptOption long_options[] = { /* longName, shortName, argInfo, argPtr, value, descrip, argDesc */ - + { "help", 'h', POPT_ARG_NONE, 0, 'h' }, { "domain-users", 'u', POPT_ARG_NONE, 0, 'u' }, { "domain-groups", 'g', POPT_ARG_NONE, 0, 'g' }, { "name-to-sid", 'n', POPT_ARG_STRING, &string_arg, 'n' }, @@ -548,6 +548,9 @@ int main(int argc, char **argv) while((opt = poptGetNextOpt(pc)) != -1) { switch (opt) { + case 'h': + usage(); + exit(0); case 'u': if (!print_domain_users()) { printf("Error looking up domain users\n"); @@ -644,6 +647,7 @@ int main(int argc, char **argv) break; default: fprintf(stderr, "Invalid option\n"); + usage(); return 1; } } |