From f737ce4a3ec06669249dae7c751fbdd044bb6753 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 15 Jun 2012 21:15:00 +0000 Subject: 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 --- nslcd/pam.c | 2 ++ 1 file changed, 2 insertions(+) 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)); -- cgit v1.2.3