Converted wbinfo to use popt instead of getopt - popt is very nice!
authorTim Potter <tpot@samba.org>
Tue, 11 Dec 2001 05:18:36 +0000 (05:18 +0000)
committerTim Potter <tpot@samba.org>
Tue, 11 Dec 2001 05:18:36 +0000 (05:18 +0000)
commitf4dfa9b6b26020c32c6e8452ea6b5bfb8e631981
treede8a6d790a88dc90bf7e557d3bf3857d4363bb1d
parent5ffe722a5585314cb1ba4533c0867c777e6b369b
Converted wbinfo to use popt instead of getopt - popt is very nice!

Added a --set-auth-user function to set a username and password that can be
used by winbindd when making connections to domain controllers.  This is
necessary when restrictions have been placed on anonymous connections
either through the RestrictAnonymous registry setting, or the win2k Local
Security Policy -> Security Settings -> Local Policies -> Security Options
-> Additional restrictions for anonymous connections.  (phew)

Two new keys are set in secrets.tdb: SECRETS/AUTH_USER and
SECRETS/AUTH_PASSWORD which hold the username and plaintext password of the
user to connect as.

To reset these values, run wbinfo --set-auth-user ""
(This used to be commit 507003522b70443f79b8b69a836dcd38d309cfca)
source3/nsswitch/wbinfo.c