summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-03-18 18:09:59 +0000
committerGerald Carter <jerry@samba.org>2004-03-18 18:09:59 +0000
commit5d40499b9f46aff4a70aeda0b8b3b147d2d69c2a (patch)
tree9fc25e762ee502088e74d32e0e046fdedbbfade7 /source3
parentc66f52a5ac89c6b5c2d51653d2c012a9171cb56b (diff)
downloadsamba-5d40499b9f46aff4a70aeda0b8b3b147d2d69c2a.tar.gz
samba-5d40499b9f46aff4a70aeda0b8b3b147d2d69c2a.tar.bz2
samba-5d40499b9f46aff4a70aeda0b8b3b147d2d69c2a.zip
BUG 932: ulrich@holeschak.de (Ulrich Holeschak); fix local password change using pam_smbpass
(This used to be commit f21182e24fe440b0cec57baf52cfbe6e07d6c7b7)
Diffstat (limited to 'source3')
-rw-r--r--source3/pam_smbpass/pam_smb_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/pam_smbpass/pam_smb_auth.c b/source3/pam_smbpass/pam_smb_auth.c
index f4cbb59af3..4452538d32 100644
--- a/source3/pam_smbpass/pam_smb_auth.c
+++ b/source3/pam_smbpass/pam_smb_auth.c
@@ -198,7 +198,7 @@ static int _smb_add_user(pam_handle_t *pamh, unsigned int ctrl,
/* Add the user to the db if they aren't already there. */
if (!exist) {
- retval = local_password_change( name, LOCAL_ADD_USER,
+ retval = local_password_change( name, LOCAL_ADD_USER|LOCAL_SET_PASSWORD,
pass, err_str,
sizeof(err_str),
msg_str, sizeof(msg_str) );