PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > LDAP authentification (2.0 -> 2.2)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

LDAP authentification (2.0 -> 2.2)

Réponse
 
LinkBack Outils de la discussion
Vieux 24/04/2006, 17h45   #1
Matteo Corti
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut LDAP authentification (2.0 -> 2.2)

Hi,

I posted the same question on alt.apache.configuration some time ago but got
no answer. On the Apache homepage they mention this newsgroup so I'll try
again:

I am setting up a test server with apache 2.2.0 and having trouble with LDAP
authentification.

This is (or was in 2.0) my configuration:

<Location /test>
SSLRequireSSL

Options Indexes FollowSymLinks

# LDAP
AuthLDAPURL "ldaps://1.example.com 2.example.com
3.example.com/ou=users,ou=id,ou=auth,
o=example,c=com?uid?one?(objectClass=*)"
AuthLDAPBindDN
"CN=linuxlo_proxy,OU=admins,OU=id,OU=auth,O=exampl e,C=com"
AuthLDAPBindPassword "**********"
AuthzLDAPAuthoritative Off

# Authenticattion
Require valid-user
AuthType Basic
AuthName "Some text"

</Location>

Authentication fails with the following error:

[error] Internal error: pcfg_openfile() called with NULL filename
[error] [client 129.132.57.95] (9)Bad file descriptor: Could not
open password file: (null)

I could agree on the fact the the passwd file cannot be opened since there
is none :-). My problem is: why Apache does not use LDAP but looks for a
password file.

Many thanks in advance,

Matteo

--
Matteo Corti
ETH Zurich
  Réponse avec citation
Vieux 03/05/2006, 10h26   #2
Kenneth Svee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: LDAP authentification (2.0 -> 2.2)

[ Matteo Corti ]

> Hi,
>
> I posted the same question on alt.apache.configuration some time ago but got
> no answer. On the Apache homepage they mention this newsgroup so I'll try
> again:
>
> I am setting up a test server with apache 2.2.0 and having trouble with LDAP
> authentification.
>
> This is (or was in 2.0) my configuration:


LDAP-auth has been revamped for Apache 2.2, and your config from 2.0
is most likely not proper for the new server. One thing i noticed you
lack in your config is the "AuthBasicProvider ldap" directive. See
docs for details:

http://httpd.apache.org/docs/2.2/mod...thnz_ldap.html


Rgds,
Kenneth Svee
  Réponse avec citation
Vieux 03/05/2006, 17h38   #3
Matteo Corti
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: LDAP authentification (2.0 -> 2.2)

On 2006-05-03, Kenneth Svee <ksvee+news@usit.uio.no> wrote:
> [ Matteo Corti ]
>
>> Hi,
>>
>> I posted the same question on alt.apache.configuration some time ago but got
>> no answer. On the Apache homepage they mention this newsgroup so I'll try
>> again:
>>
>> I am setting up a test server with apache 2.2.0 and having trouble with LDAP
>> authentification.
>>
>> This is (or was in 2.0) my configuration:

>
> LDAP-auth has been revamped for Apache 2.2, and your config from 2.0
> is most likely not proper for the new server.


Yes I had to adapt it a little bit

> One thing i noticed you
> lack in your config is the "AuthBasicProvider ldap" directive. See
> docs for details:
>
> http://httpd.apache.org/docs/2.2/mod...thnz_ldap.html


Many thanks! I was missing it. Now Apache is using LDAP to authenticate and
not asking for a passwd file anymore!.

Matteo

--
Matteo Corti
ETH Zurich
  Réponse avec citation
Vieux 03/05/2006, 17h38   #4
Matteo Corti
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: LDAP authentification (2.0 -> 2.2)

On 2006-05-03, Kenneth Svee <ksvee+news@usit.uio.no> wrote:
> [ Matteo Corti ]
>
>> Hi,
>>
>> I posted the same question on alt.apache.configuration some time ago but got
>> no answer. On the Apache homepage they mention this newsgroup so I'll try
>> again:
>>
>> I am setting up a test server with apache 2.2.0 and having trouble with LDAP
>> authentification.
>>
>> This is (or was in 2.0) my configuration:

>
> LDAP-auth has been revamped for Apache 2.2, and your config from 2.0
> is most likely not proper for the new server.


Yes I had to adapt it a little bit

> One thing i noticed you
> lack in your config is the "AuthBasicProvider ldap" directive. See
> docs for details:
>
> http://httpd.apache.org/docs/2.2/mod...thnz_ldap.html


Many thanks! I was missing it. Now Apache is using LDAP to authenticate and
not asking for a passwd file anymore!.

Matteo

--
Matteo Corti
ETH Zurich
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 04h30.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17243 seconds with 12 queries