freebsd-ports/www/auth_ldap/files/patch-auth_ldap.c
Clement Laforet 1963cea5fb - Update to 1.6.1 and fix vulnerabilities [1]
- Set USE_APACHE to 13
- Assign maintainership to apache@

PR:		ports/94457 [1]
Submitted by:	Panagiotis Christias <p.christias@noc.ntua.gr> [1]
2006-03-19 16:26:25 +00:00

14 lines
568 B
C

--- 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;