lists.arthurdejong.org
RSS feed

nss-pam-ldapd branch master updated. 0.9.0-7-g97d35f3

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

nss-pam-ldapd branch master updated. 0.9.0-7-g97d35f3



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  97d35f32806b54160767269da9a538b1cebd23db (commit)
      from  b15dc66dcd4f85e06b112568fe154d3e7c7659da (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=97d35f32806b54160767269da9a538b1cebd23db

commit 97d35f32806b54160767269da9a538b1cebd23db
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Fri May 10 23:56:44 2013 +0200

    Ignore errors in opening NSS module

diff --git a/pynslcd/pynslcd.py b/pynslcd/pynslcd.py
index 99bfda8..df54bad 100755
--- a/pynslcd/pynslcd.py
+++ b/pynslcd/pynslcd.py
@@ -229,7 +229,10 @@ def acceptconnection(session):
 def disable_nss_ldap():
     """Disable the nss_ldap module to avoid lookup loops."""
     import ctypes
-    lib = ctypes.CDLL(constants.NSS_LDAP_SONAME)
+    try:
+        lib = ctypes.CDLL(constants.NSS_LDAP_SONAME)
+    except OSError:
+        return  # ignore errors in opening NSS module
     try:
         ctypes.c_int.in_dll(lib, '_nss_ldap_enablelookups').value = 0
     except ValueError:

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

Summary of changes:
 pynslcd/pynslcd.py |    5 ++++-
 1 files changed, 4 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/