lists.arthurdejong.org
RSS feed

nss-pam-ldapd branch master updated. 0.8.12-93-gb4afe7c

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd branch master updated. 0.8.12-93-gb4afe7c



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".

The branch, master has been updated
       via  b4afe7c94d24825afeedeab08a05bceee3ad3c40 (commit)
      from  31f9098856d99a04cf96be8683fbf99b72ac6983 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=b4afe7c94d24825afeedeab08a05bceee3ad3c40

commit b4afe7c94d24825afeedeab08a05bceee3ad3c40
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Fri Mar 1 15:33:40 2013 +0100

    log a more meaningful error in nslcd when trying to authenticate as 
administrator when rootpwmoddn is not set

diff --git a/nslcd/pam.c b/nslcd/pam.c
index 2e09584..40e0069 100644
--- a/nslcd/pam.c
+++ b/nslcd/pam.c
@@ -274,8 +274,14 @@ int nslcd_pam_authc(TFILE *fp, MYLDAP_SESSION *session, 
uid_t calleruid)
   WRITE_INT32(fp, NSLCD_ACTION_PAM_AUTHC);
   /* if the username is blank and rootpwmoddn is configured, try to
      authenticate as administrator, otherwise validate request as usual */
-  if ((*username == '\0') && (nslcd_cfg->rootpwmoddn != NULL))
+  if (*username == '\0')
   {
+    if (nslcd_cfg->rootpwmoddn == NULL)
+    {
+      log_log(LOG_NOTICE, "rootpwmoddn not configured");
+      /* we break the protocol */
+      return -1;
+    }
     userdn = nslcd_cfg->rootpwmoddn;
     /* if the caller is root we will allow the use of the rootpwmodpw option */
     if ((*password == '\0') && (calleruid == 0) && (nslcd_cfg->rootpwmodpw != 
NULL))

-----------------------------------------------------------------------

Summary of changes:
 nslcd/pam.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
nss-pam-ldapd
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/