From 94713905d1109dad4e14af74d36de2560cb54ba7 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 31 Oct 2003 20:29:18 +0000 Subject: prompt for password when invoking --set-auth-user and no pw is given (patch from Tom Dickson) (This used to be commit ca18ec0f901330c14a68c8a44d2a88a42bb7d92c) --- source3/nsswitch/wbinfo.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'source3/nsswitch/wbinfo.c') 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 */ -- cgit