diff options
Diffstat (limited to 'www/auth_ldap/files/patch-auth_ldap.c')
-rw-r--r-- | www/auth_ldap/files/patch-auth_ldap.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/www/auth_ldap/files/patch-auth_ldap.c b/www/auth_ldap/files/patch-auth_ldap.c new file mode 100644 index 000000000000..86593a955355 --- /dev/null +++ b/www/auth_ldap/files/patch-auth_ldap.c @@ -0,0 +1,14 @@ +--- auth_ldap.c.orig Mon Jan 9 20:08:56 2006 ++++ auth_ldap.c Tue Mar 14 19:12:02 2006 +@@ -168,11 +168,7 @@ + ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, r, + "{%d} LDAP OP: init", (int)getpid()); + +-#if defined(WITH_OPENLDAP) && LDAP_VENDOR_VERSION >= 20000 +- if ((ldap_initialize(&(sec->ldc->ldap), (sec->url))) != LDAP_SUCCESS) { +-#else + if ((sec->ldc->ldap = ldap_init(sec->host, sec->port)) == NULL) { +-#endif + extern int errno; + auth_ldap_log_reason(r, "Could not connect to LDAP server: %s", strerror(errno)); + return 0; |