summaryrefslogtreecommitdiffstats
path: root/source/web
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-05-05 14:46:00 +0000
committerGerald Carter <jerry@samba.org>2004-05-05 14:46:00 +0000
commit8339ce09c81d0e2429920d4b6c285ca9c726f14e (patch)
treecda62fbec2aa080377e1a785df2122cc93616495 /source/web
parent44be8695d39382afc6d00e135dc74e31e8effbb8 (diff)
downloadsamba-8339ce09c81d0e2429920d4b6c285ca9c726f14e.tar.gz
samba-8339ce09c81d0e2429920d4b6c285ca9c726f14e.tar.xz
samba-8339ce09c81d0e2429920d4b6c285ca9c726f14e.zip
r492: BUG 483: patch from Michel Gravey <michel.gravey@optogone.com> to fix password hash creation in SWAT
Diffstat (limited to 'source/web')
-rw-r--r--source/web/swat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/web/swat.c b/source/web/swat.c
index e535106f260..ed53d0d7128 100644
--- a/source/web/swat.c
+++ b/source/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));