Apache2 mod_ldap crashes
During a build on current edge to try to resolve a crash in mod_ldap, I received the following output. I’m not sure how to track down TEXTRELs though.
>>>ERROR: apache2*: Found textrels:
TEXTREL
/home/jbilyk/aports/main/apache2/pkg/apache2-ldap/usr/lib/apache2/mod_ldap.so
TEXTREL
/home/jbilyk/aports/main/apache2/pkg/apache2-ldap/usr/lib/apache2/mod_authnz_ldap.so
>>>ERROR: apache2*: prepare_subpackages failed
>>>ERROR: apache2: all failed
However, the root issue I’m trying to fix is an apache server(apache2-2.4.4-r0) with mod_ldap(apache2-ldap-2.4.4-r0) enabled crashes as soon as it tries to authenticate with mod_ldap with the following error (domain name has been replaced in the following logs and config with example.com):
[Thu Jun 13 18:39:15.411076 2013] [authnz_ldap:debug] [pid 21921]
mod_authnz_ldap.c(501): [client 10.14.59.106:48231] AH01691:
auth_ldap authenticate: using URL
ldaps://example.com/dc=example,dc=com?sAMAccountName?sub?(objectClass=*)
[Thu Jun 13 18:39:15.411244 2013] [authnz_ldap:info] [pid 21921]
[client 10.14.59.106:48231] AH01695: auth_ldap authenticate: user
jbilyk@example.com authentication failed; URI /racktables/ [LDAP: ldap
initialization failed][Unknown (private extension) error]
Apache auth config on the virtual directory is:
AuthType Basic
AuthName “AD Authentication”
AuthBasicProvider ldap
AuthLDAPAuthoritative Off
AuthLDAPURL
“ldap://example.com:389/OU=testOU,DC=example,DC=com?sAMAccountName?sub?(objectClass=*)”
AuthLDAPBindDN “CN=user,OU=Users,OU=testOU,DC=example,DC=com”
AuthLDAPBindPassword passforuser
Require valid-user
(from redmine: issue id 2085, created on 2013-06-13, closed on 2013-06-26)
- Changesets:
- Revision 23b112fa by Natanael Copa on 2013-06-18T15:50:26Z:
main/apache2: fix deps for apache2-ldap
it needs apr-util-ldap
ref #2085
- Revision a628280d by Natanael Copa on 2013-06-19T08:38:20Z:
main/apache2: fix deps for apache2-ldap
it needs apr-util-ldap
ref #2085
(cherry picked from commit 23b112fa0b4c683178bf2038c2719d4889575ee1)
- Revision 9974c43a by Natanael Copa on 2013-06-19T12:56:17Z:
main/apache2: fix deps for apache2-ldap
it needs apr-util-ldap
fixes #2085
(cherry picked from commit 23b112fa0b4c683178bf2038c2719d4889575ee1)