summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-05-05 14:46:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:26 -0500
commit7309594b07c8fc48754c006dd1c1fde3fc3c6b40 (patch)
tree2649bf2beacb3d930f780f926700ad252352a03f /source3
parentf9eda19d80f40b39ffbd48119928651512a11d49 (diff)
downloadsamba-7309594b07c8fc48754c006dd1c1fde3fc3c6b40.tar.gz
samba-7309594b07c8fc48754c006dd1c1fde3fc3c6b40.tar.bz2
samba-7309594b07c8fc48754c006dd1c1fde3fc3c6b40.zip
r492: BUG 483: patch from Michel Gravey <michel.gravey@optogone.com> to fix password hash creation in SWAT
(This used to be commit 08fc16d7e694213fa1abf81f1e10989888508697)
Diffstat (limited to 'source3')
-rw-r--r--source3/web/swat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index e535106f26..ed53d0d712 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -1042,16 +1042,19 @@ static void chg_passwd(void)
*/
local_flags |= (cgi_variable(ADD_USER_FLAG) ? LOCAL_ADD_USER : 0);
+ local_flags |= (cgi_variable(ADD_USER_FLAG) ? LOCAL_SET_PASSWORD : 0);
+ local_flags |= (cgi_variable(CHG_S_PASSWD_FLAG) ? LOCAL_SET_PASSWORD : 0);
local_flags |= (cgi_variable(DELETE_USER_FLAG) ? LOCAL_DELETE_USER : 0);
local_flags |= (cgi_variable(ENABLE_USER_FLAG) ? LOCAL_ENABLE_USER : 0);
local_flags |= (cgi_variable(DISABLE_USER_FLAG) ? LOCAL_DISABLE_USER : 0);
+
rslt = change_password(host,
cgi_variable(SWAT_USER),
cgi_variable(OLD_PSWD), cgi_variable(NEW_PSWD),
local_flags);
- if(local_flags == 0) {
+ if(cgi_variable(CHG_S_PASSWD_FLAG)) {
d_printf("<p>");
if (rslt == True) {
d_printf(_(" The passwd for '%s' has been changed."), cgi_variable(SWAT_USER));