diff options
Diffstat (limited to 'source/smbd/lanman.c')
-rw-r--r-- | source/smbd/lanman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/lanman.c b/source/smbd/lanman.c index f6ebbc82adc..66e4cd5bf71 100644 --- a/source/smbd/lanman.c +++ b/source/smbd/lanman.c @@ -1964,7 +1964,7 @@ static BOOL api_SetUserPassword(connection_struct *conn,uint16 vuid, char *param * to touch the unix db unless we have admin permission. */ - if(lp_unix_password_sync() && IS_SAM_UNIX_USER(server->sam_account) + if(lp_unix_password_sync() && IS_SAM_UNIX_USER(server_info->sam_account) && !chgpasswd(pdb_get_username(server_info->sam_account), pass1,pass2,False)) { SSVAL(*rparam,0,NERR_badpass); |