summaryrefslogtreecommitdiffstats
path: root/source/smbd/ipc.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-03-27 19:59:14 +0000
committerJeremy Allison <jra@samba.org>1998-03-27 19:59:14 +0000
commit4ac50c0f0aa5af084ddad89b1f9baf6c2c1ddcb8 (patch)
tree51e48c01ea65cd83489fb8125bd22f2191c84988 /source/smbd/ipc.c
parentc9e066037ab222472085c4a0ecc8a39b337ad2aa (diff)
downloadsamba-4ac50c0f0aa5af084ddad89b1f9baf6c2c1ddcb8.tar.gz
samba-4ac50c0f0aa5af084ddad89b1f9baf6c2c1ddcb8.tar.xz
samba-4ac50c0f0aa5af084ddad89b1f9baf6c2c1ddcb8.zip
chgpasswd.c, ipc.c, loadparm.c: Added boolean "unix password sync"
parameter which allows the new change password code to change the unix password also. Defaults to OFF. includes.h: Added termios.h to FreeBSD to allow password changing. namequery.c: Fixed missing name parameters to debug statements. Jeremy.
Diffstat (limited to 'source/smbd/ipc.c')
-rw-r--r--source/smbd/ipc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/smbd/ipc.c b/source/smbd/ipc.c
index 47981884546..f38a76d74ad 100644
--- a/source/smbd/ipc.c
+++ b/source/smbd/ipc.c
@@ -1634,7 +1634,7 @@ static BOOL api_SetUserPassword(int cnum,uint16 vuid, char *param,char *data,
*/
if (password_ok(user,pass1,strlen(pass1),NULL) &&
- chgpasswd(user,pass1,pass2))
+ chgpasswd(user,pass1,pass2,False))
{
SSVAL(*rparam,0,NERR_Success);
}
@@ -1714,6 +1714,9 @@ static BOOL api_SamOEMChangePassword(int cnum,uint16 vuid, char *param,char *dat
* as the plaintext of the old users password is not
* available. JRA.
*/
+
+ if(lp_unix_password_sync())
+ chgpasswd(user,"", new_passwd, True);
if(change_oem_password( smbpw, new_passwd)) {
SSVAL(*rparam,0,NERR_Success);