You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Estrade Matthieu <es...@ifrance.com> on 2002/10/23 23:19:00 UTC

RE : mod_auth_ldap

Hi,

I finally made mod_auth_ldap work.

First, basic authentication:

AuthName auth 
AuthType Basic

Then, disable Basic authoritative to let the Authorization continue to
mod_auth_ldap.

AuthBASICAuthoritative Off

Then my LDAP Config

Maybe this documentation about AuthBasicAuthoritative directive, should
be added by a link in mod_auth_ldap documentation. 

Regards, 

Estrade Matthieu

-----Message d'origine-----
De : Thomas Bennett [mailto:thomas.bennett@eds.com] 
Envoyé : Wednesday, October 23, 2002 9:43 PM
À : Estrade Matthieu
Objet : Re: mod_auth_ldap

On Thu, 24 Oct 2002 04:33, Estrade Matthieu wrote:
> Hi,
>
> I am using apache 2.0 + proxy + mod_auth_ldap
>
> i have this error in my log:
>
> [Wed Oct 23 17:35:59 2002] [error] [client 192.168.100.1] (9)Bad file
> descriptor: Could not open password file: (null)
> and return an error 500

Add 
AuthLDAPAuthoritative on
to stop it from trying another authentication type when ldap fails.

>
> this is my vhost auth conf:
>
> <Location />
> AuthName test
> AuthType basic
> AuthLDAPEnabled On
> AuthLDAPUrl
ldap://192.168.100.2:389/cn=backoffice,dc=company,dc=com?uid
> Require valid-user
> </Location>
>
> when i do this query, with anonymous login, directly on ldap server,
> it's working

I suggest you look closely at your basedn:
cn=backoffice,dc=company,dc=com
I simply use o=EDS  but of course our sever might be set up differently.

Regards
Thomas Bennett



___________________________________________________________________
Haut Débit: Modem offert soit 150,92 euros remboursés sur le Pack eXtense de Wanadoo !
Profitez du Haut Débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w


Re: RE : mod_auth_ldap

Posted by "John K. Sterling" <jo...@sterls.com>.
note  as i said in the original email, the problem was that mod_auth 
was enabled, not a problem with auth_ldap.

sterling

On Wednesday, October 23, 2002, at 05:19 PM, Estrade Matthieu wrote:

> Hi,
>
> I finally made mod_auth_ldap work.
>
> First, basic authentication:
>
> AuthName auth
> AuthType Basic
>
> Then, disable Basic authoritative to let the Authorization continue to
> mod_auth_ldap.
>
> AuthBASICAuthoritative Off
>
> Then my LDAP Config
>
> Maybe this documentation about AuthBasicAuthoritative directive, should
> be added by a link in mod_auth_ldap documentation.
>
> Regards,
>
> Estrade Matthieu
>
> -----Message d'origine-----
> De : Thomas Bennett [mailto:thomas.bennett@eds.com]
> Envoyé : Wednesday, October 23, 2002 9:43 PM
> À : Estrade Matthieu
> Objet : Re: mod_auth_ldap
>
> On Thu, 24 Oct 2002 04:33, Estrade Matthieu wrote:
>> Hi,
>>
>> I am using apache 2.0 + proxy + mod_auth_ldap
>>
>> i have this error in my log:
>>
>> [Wed Oct 23 17:35:59 2002] [error] [client 192.168.100.1] (9)Bad file
>> descriptor: Could not open password file: (null)
>> and return an error 500
>
> Add
> AuthLDAPAuthoritative on
> to stop it from trying another authentication type when ldap fails.
>
>>
>> this is my vhost auth conf:
>>
>> <Location />
>> AuthName test
>> AuthType basic
>> AuthLDAPEnabled On
>> AuthLDAPUrl
> ldap://192.168.100.2:389/cn=backoffice,dc=company,dc=com?uid
>> Require valid-user
>> </Location>
>>
>> when i do this query, with anonymous login, directly on ldap server,
>> it's working
>
> I suggest you look closely at your basedn:
> cn=backoffice,dc=company,dc=com
> I simply use o=EDS  but of course our sever might be set up 
> differently.
>
> Regards
> Thomas Bennett
>
>
>
> ___________________________________________________________________
> Haut Débit: Modem offert soit 150,92 euros remboursés sur le Pack 
> eXtense de Wanadoo !
> Profitez du Haut Débit à partir de 30 euros/mois : 
> http://www.ifrance.com/_reloc/w
>