I finally suceeded in compiling the module, and installing it correctly.
The solution was this:
Ldap needs specific linking -lldap -lber -lber. This libs are the libs
the module has to be linked agains. So using the apxs2 script, just:
apxs2 -i -c -Wl, -lldap -lber -lber mod_authnz_ldap.c
Will
Covener in #httpd told me to look at config.m4, but I don't really
understand what:
APACHE_MODULE(authnz_ldap, LDAP based authentication, , , no, [
MOD_AUTHNZ_LDAP_LDADD="`$apu_config --ldap-libs`" || MOD_AUTHNZ_LDAP_LDADD=""
AC_SUBST(MOD_AUTHNZ_LDAP_LDADD)
])
means. I know I have to put the