lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1529 - in nss-pam-ldapd: . nslcd

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

nss-pam-ldapd commit: r1529 - in nss-pam-ldapd: . nslcd



Author: arthur
Date: Tue Aug 30 20:47:39 2011
New Revision: 1529
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1529

Log:
move LDAP_DEPRECATED and LDAP_REFERRALS to configure.ac to ensure that tests 
from configure see the same API

Modified:
   nss-pam-ldapd/configure.ac
   nss-pam-ldapd/nslcd/myldap.c

Modified: nss-pam-ldapd/configure.ac
==============================================================================
--- nss-pam-ldapd/configure.ac  Mon Aug 29 22:57:37 2011        (r1528)
+++ nss-pam-ldapd/configure.ac  Tue Aug 30 20:47:39 2011        (r1529)
@@ -606,6 +606,11 @@
   CFLAGS="$pthread_save_CFLAGS"
   LIBS="$pthread_save_LIBS"
 
+  # also use deprecated LDAP functions
+  AC_DEFINE(LDAP_DEPRECATED, 1, Define to activate deprecated features in 
OpenLDAP)
+  # for compatibility on Solaris
+  AC_DEFINE(LDAP_REFERRALS, 1, Define to get some functions on Solaris)
+
   # search for an LDAP library (only OpenLDAP is tested)
   AC_ARG_WITH(ldap-lib,
               AS_HELP_STRING([--with-ldap-lib=TYPE],

Modified: nss-pam-ldapd/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd/nslcd/myldap.c        Mon Aug 29 22:57:37 2011        (r1528)
+++ nss-pam-ldapd/nslcd/myldap.c        Tue Aug 30 20:47:39 2011        (r1529)
@@ -35,12 +35,6 @@
 
 #include "config.h"
 
-/* also include deprecated LDAP functions for now */
-#define LDAP_DEPRECATED 1
-
-/* for compatibility on Solaris */
-#define LDAP_REFERRALS 1
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits