You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2006/07/06 19:19:26 UTC
svn commit: r419622 - /apr/apr-util/trunk/include/apr_ldap_init.h
Author: wrowe
Date: Thu Jul 6 10:19:25 2006
New Revision: 419622
URL: http://svn.apache.org/viewvc?rev=419622&view=rev
Log:
Account for win32 ldap, enum style identifiers on a one-off platform
basis. Better autoconf determination is really called for.
Modified:
apr/apr-util/trunk/include/apr_ldap_init.h
Modified: apr/apr-util/trunk/include/apr_ldap_init.h
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/include/apr_ldap_init.h?rev=419622&r1=419621&r2=419622&view=diff
==============================================================================
--- apr/apr-util/trunk/include/apr_ldap_init.h (original)
+++ apr/apr-util/trunk/include/apr_ldap_init.h Thu Jul 6 10:19:25 2006
@@ -43,6 +43,12 @@
#define APU_LDAP_INSUFFICIENT_ACCESS LDAP_INSUFFICIENT_ACCESS
#elif defined(LDAP_INSUFFICIENT_RIGHTS)
#define APU_LDAP_INSUFFICIENT_ACCESS LDAP_INSUFFICIENT_RIGHTS
+#elif defined(APR_HAS_MICROSOFT_LDAPSDK)
+/* The macros above fail to contemplate that LDAP_RETCODE values
+ * may be represented by an enum. autoconf tests would be much
+ * more robust.
+ */
+#define APU_LDAP_INSUFFICIENT_ACCESS LDAP_INSUFFICIENT_RIGHTS
#else
#error The security return codes must be added to support this LDAP toolkit.
#endif