You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Javier Domingo <ja...@gmail.com> on 2012/12/29 03:09:15 UTC

[users@httpd] Re: Backport of AuthLDAPInitialBindAsUser functionality to 2.2

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 --ldap-libs option somewhere, but I
can't understand/work out where.
Javier Domingo


2012/12/29 Javier Domingo <ja...@gmail.com>:
> Hi,
>
> I have just patched the 2.2 code to work making the inital bind as the
> user that requested, but I don't get into the way of linking it.
>
> I have suceeded in getting the source of the module compiled (go to
> /modules/aaa/ and there I apxs2 -a -i -c mod_authnz_ldap.c). The
> problem is that when I try to run it tells me:
>
> apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax
> error on line 1 of /etc/apache2/mods-enabled/authnz_ldap.load: Cannot
> load /usr/lib/apache2/modules/mod_authnz_ldap.so into server:
> /usr/lib/apache2/modules/mod_authnz_ldap.so: undefined symbol:
> ldap_err2string
>
> But I get it compiled correctly. Is there any reason for that this
> shouldn't work? I am using the same code that is used in the ubuntu
> package, and I have no compile warnings after patching.
>
> If any one can help me, don't hesitate contacting me for more info (or
> the patch) etc.,
>
> Cheers,
>
> Javier Domingo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Backport of AuthLDAPInitialBindAsUser functionality to 2.2

Posted by Javier Domingo <ja...@gmail.com>.
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 work.

I would please ask for getting this documented in some way, so that if
someone ever need that once more, knows that he has to look at the
config.m4 and put the output as linking arguments.
Javier Domingo


2012/12/29 Javier Domingo <ja...@gmail.com>:
> 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 --ldap-libs option somewhere, but I
> can't understand/work out where.
> Javier Domingo
>
>
> 2012/12/29 Javier Domingo <ja...@gmail.com>:
>> Hi,
>>
>> I have just patched the 2.2 code to work making the inital bind as the
>> user that requested, but I don't get into the way of linking it.
>>
>> I have suceeded in getting the source of the module compiled (go to
>> /modules/aaa/ and there I apxs2 -a -i -c mod_authnz_ldap.c). The
>> problem is that when I try to run it tells me:
>>
>> apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax
>> error on line 1 of /etc/apache2/mods-enabled/authnz_ldap.load: Cannot
>> load /usr/lib/apache2/modules/mod_authnz_ldap.so into server:
>> /usr/lib/apache2/modules/mod_authnz_ldap.so: undefined symbol:
>> ldap_err2string
>>
>> But I get it compiled correctly. Is there any reason for that this
>> shouldn't work? I am using the same code that is used in the ubuntu
>> package, and I have no compile warnings after patching.
>>
>> If any one can help me, don't hesitate contacting me for more info (or
>> the patch) etc.,
>>
>> Cheers,
>>
>> Javier Domingo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org