Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-06-15 23:15:00 +0200
committerArthur de Jong <arthur@arthurdejong.org>2012-06-15 23:15:00 +0200
commitf737ce4a3ec06669249dae7c751fbdd044bb6753 (patch)
treedece884f9a32e44f7f701be33e758d247c13f480
parent0b4dcc7375dc99cb4ef79f25e6c34818301cfba2 (diff)
log successful password change in nslcd and correctly terminate protocol on password change failure
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1703 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--nslcd/pam.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nslcd/pam.c b/nslcd/pam.c
index 15d9362..bcc5d4f 100644
--- a/nslcd/pam.c
+++ b/nslcd/pam.c
@@ -689,8 +689,10 @@ int nslcd_pam_pwmod(TFILE *fp,MYLDAP_SESSION *session,uid_t calleruid)
WRITE_INT32(fp,NSLCD_PAM_PERM_DENIED);
WRITE_STRING(fp,authzmsg);
WRITE_INT32(fp,NSLCD_RESULT_END);
+ return 0;
}
/* write response */
+ log_log(LOG_NOTICE,"password changed for %s",myldap_get_dn(entry));
WRITE_INT32(fp,NSLCD_RESULT_BEGIN);
WRITE_STRING(fp,username);
WRITE_STRING(fp,myldap_get_dn(entry));