lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1768 - nss-pam-ldapd/nslcd

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

nss-pam-ldapd commit: r1768 - nss-pam-ldapd/nslcd



Author: arthur
Date: Sat Sep 15 20:18:49 2012
New Revision: 1768
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1768&view=revision

Log:
only check nsswitch.conf for shadow mapping on glibc (Solaris shadow map 
follows passwd's mapping and FreeBSD doesn't have shadow at all)

Modified:
   nss-pam-ldapd/nslcd/passwd.c

Modified: nss-pam-ldapd/nslcd/passwd.c
==============================================================================
--- nss-pam-ldapd/nslcd/passwd.c        Sat Sep 15 19:51:00 2012        (r1767)
+++ nss-pam-ldapd/nslcd/passwd.c        Sat Sep 15 20:18:49 2012        (r1768)
@@ -385,6 +385,14 @@
   return myldap_cpy_dn(entry,buf,buflen);
 }
 
+#ifndef NSS_FLAVOUR_GLIBC
+
+/* only check nsswitch.conf for glibc */
+#define check_nsswitch_reload()
+#define shadow_uses_ldap() (1)
+
+#else /* NSS_FLAVOUR_GLIBC */
+
 /* the cached value of whether shadow lookups use LDAP in nsswitch.conf */
 #define NSSWITCH_FILE "/etc/nsswitch.conf"
 #define CACHED_UNKNOWN 22
@@ -431,6 +439,8 @@
   return cached_shadow_uses_ldap;
 }
 
+#endif /* NSS_FLAVOUR_GLIBC */
+
 /* the maximum number of uidNumber attributes per entry */
 #define MAXUIDS_PER_ENTRY 5
 
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/