mod_ldap and mod_authnz_ldap not building for Apache httpd 2.4.4 and SVN -


problem: trying compile apache web server using latest sources of httpd, apr , apr-util, , enabling ldap support. current steps not seem commpiling mod_ldap.so , mod_authnz_ldap.so.

environment background: build , target os rhel5. non-ldap enabled instance of httpd on server (2.4.1) , svn 1.7.3 installed , works anonymously httpd-2.4.1

steps reproduce: following compilation instructions here have downloaded:

  • httpd-2.4.4 in /path/apache/src/httpd-2.4.4
  • apr 1.4.6 in /path/apache/src/apr-1.4.6
  • apr-utils 1.5.2 /path/apache/src/apr-util-1.5.2
  • openldap , berkley db (for ldap libraries build apr-util against) in /path/openldap-2.4.35_src , /path/db-5.3.21_src

with sources in place, i: compiled bdb , installed /path/db-5.3.21 compiled openldap using installed bdb , installed in /path/openldap-2.4.35 configured apr, compiled , installed in /path/apache/apr configured apr-util with:

./configure --with-ldap --prefix=/path/apache/apr-util-1.5.2 --with-apr=/path/apache/apr-1.4.6 --with-ldap-lib=/path/openldap-2.4.35/lib --with-ldap-include=/path/openldap-2.4.35/include

afterwards, built , installed make , make install.

finally, configured httpd following:

   ./configure --prefix=/path/apache/httpd-2.4.4 --with-apr=/path/apache/apr-1.4.6 --with-apr-util=/path/apache/apr-util-1.5.2 --with-pcre=/path/apache/pcre-8.30 --with-ldap --enable-ldap 

this successful, , able run make , make install

i have httpd instance in /path/apache/httpd-2.4.4/. using /path/httpd-2.4.1/httpd.conf model, matched existing configuration , loaded modules, adding:

loadmodule mod_ldap modules/mod_ldap.so loadmodule mod_authnz_ldap modules/mod_authnz_ldap.so

however, if run apachectl start syntax error:

/path/apache/httpd-2.4.4> ./bin/apachectl start httpd: syntax error on line 148 of /path/apache/httpd-2.4.4/conf/httpd.conf: can't locate api module structure 'mod_ldap' in file /path/apache/httpd-2.4.4/modules/mod_ldap.so: /path/apache/httpd-2.4.4/modules/mod_ldap.so: undefined symbol: mod_ldap

looking within httpd-2.4.4/modules directory, modules mod_ldap.so , mod_authnz.ldap.so missing. have tried above steps without success. have discovered within src/httpd-2.4.4 directory, files ./modules/aaa/.libs/mod_authnz_ldap.so , ./modules/ldap/.libs/mod_ldap.so exist, copying on httpd-2.4.4/modules not alleviate issue.

can assist me in diagnosing error in steps? know i'm missing something, have been unable find far. add other required information if needed.

as configured above, ldap supported through shared module. enable modules defined (including ldap in case) need configure apache --enable-so flag. generate shared modules , place them within modules directory when compiled/installed.

additional reference can found in article: compiling apache web server dynamic module support


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -