diff options
author | Gerald Carter <jerry@samba.org> | 2003-10-31 20:31:25 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-10-31 20:31:25 +0000 |
commit | f943812aae03825c63653ae8885589ac29f900fb (patch) | |
tree | 29202aef44c98bd104c1f465e224a0c93aa04b25 /source3/nsswitch | |
parent | 73a9e080cd5bdd657a3dfd9ba57730060fa344e9 (diff) | |
download | samba-f943812aae03825c63653ae8885589ac29f900fb.tar.gz samba-f943812aae03825c63653ae8885589ac29f900fb.tar.bz2 samba-f943812aae03825c63653ae8885589ac29f900fb.zip |
set- set-assword when invoking --set-auth-user and no pw
is given (patch from Tom Dickson)
(This used to be commit aa2abd5800856120ddec6937955e961ff0c77c96)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/wbinfo.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c index 0018e99f60..04233bb85c 100644 --- a/source3/nsswitch/wbinfo.c +++ b/source3/nsswitch/wbinfo.c @@ -789,8 +789,13 @@ static BOOL wbinfo_set_auth_user(char *username) if (password) { *password = 0; password++; - } else - password = ""; + } else { + char *thepass = getpass("Password: "); + if (thepass) { + password = thepass; + } else + password = ""; + } /* Store or remove DOMAIN\username%password in secrets.tdb */ |