Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180214 - net-www/apache-2.x - mod_auth_ldap preconfigured defines in 46_mod_ldap.conf are not correct
Summary: net-www/apache-2.x - mod_auth_ldap preconfigured defines in 46_mod_ldap.conf ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 13:09 UTC by Max Bidlingmaier
Modified: 2007-06-15 15:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Bidlingmaier 2007-05-29 13:09:06 UTC
Config defines LDAP and AUTH_LDAP can be set autonomous, which is not correct. AUTH_LDAP will only work if LDAP is also set

Not a major incident, but may confuse users

Reproducible: Always

Steps to Reproduce:
1. edit /etc/conf.d/apach2, set -DAUTH_LDAP but not -DLDAP
2. restart apache

Actual Results:  
apache will not start:
Cannot load /usr/lib64/apache2/modules/mod_auth_ldap.so into server: /usr/lib64/apache2/modules/mod_auth_ldap.so: undefined symbol: util_ldap_connection_close


Can be resolved by changing the top of /etc/apache2/modules.d/46_mod_ldap.conf to something like:

<IfDefine LDAP>
  <IfModule !util_ldap.c>
    LoadModule ldap_module    modules/mod_ldap.so
  </IfModule>
  <IfDefine AUTH_LDAP>
    <IfModule !mod_auth_ldap.c>
      LoadModule auth_ldap_module   modules/mod_auth_ldap.so
    </IfModule>
  </IfDefine>
</IfDefine>

instead of the orginial part:
<IfDefine LDAP>
  <IfModule !util_ldap.c>
    LoadModule ldap_module    modules/mod_ldap.so
  </IfModule>
</IfDefine>

<IfDefine AUTH_LDAP>
  <IfModule !mod_auth_ldap.c>
    LoadModule auth_ldap_module   modules/mod_auth_ldap.so
  </IfModule>
</IfDefine>
Comment 1 Max Bidlingmaier 2007-05-29 14:32:32 UTC
this problem is commited on net-www/apache-2.0.58-r2 compiled with the follwing useflags:
apache2 -debug -doc ldap -mpm-itk -mpm-leader -mpm-peruser -mpm-prefork -mpm-threadpool -mpm-worker -no-suexec -selinux ssl -static-modules -threads
Comment 2 Christian Heim (RETIRED) gentoo-dev 2007-06-15 15:35:09 UTC
Could you please try out =net-www/apache-2.2.4-r6 and turn on -D LDAP and -D AUTH_LDAP (*after* tuning 46_mod_ldap.conf with your LDAP AuthURI) ?