[LENNY] Authentification LDAP en TLS sur Apache
Le
Jean-Max Redonnet
--001636c5ad4d0d054e04683a66d1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Bonjour,
Malgré tous mes efforts, multiples et répétés, je ne pa=
rviens définitivement
pas à configurer l'authentification LDAP en TLS sur mon serveur Apache=
2.2.
Voilà ce que j'ai mis dans le /etc/apache2/ports.conf inclus dans
/etc/apache2/apache2.conf
LDAPTrustedGlobalCert CA_BASE64 /etc/ssl/cacert.pem
<VirtualHost 130.120.xxx.xxx:80>
LDAPTrustedClientCert CERT_BASE64 /etc/ssl/certs/xxx.ups-tlse.fr.crt
LDAPTrustedClientCert KEY_BASE64 /etc/ssl/private/xxx.ups-tlse.fr.key
LDAPTrustedMode TLS
<Location /ldap-status>
SetHandler ldap-status
order deny,allow
allow from xxx.ups-tlse.fr
allow from xxx.ups-tlse.fr
AuthType basic
AuthName "Auth LDAP"
AuthBasicProvider ldap
AuthLDAPURL ldap://
xxx.ups-tlse.fr/ou=Users,ou=People,dc=xxx,dc=ups-tlse,dc=fr?uid
AuthzLDAPAuthoritative off
require valid-user
</Location>
</VirtualHost>
OpenLDAP est installé et marche bien. Apache idem.
Mes certificats sont bons (je les utilise par ailleurs avec succès).
Je ne vois pas d'où peut venir le problème. Alors avant de switch=
er vers le
module d'authentification via PAM (qui comble de l'ironie utilise LDAP avec
bonheur), je m'en remet aux gens qui savent
Dans la doc d'Apache, j'ai trouvé ça :
"The documentation for the SDK claims to support both SSL and STARTTLS,
however STARTTLS does not seem to work on all versions of the SDK. The
SSL/TLS mode can be set using the LDAPTrustedMode parameter. If an ldaps://
URL is specified, SSL mode is forced. The OpenLDAP documentation notes that
SSL (ldaps://) support has been deprecated to be replaced with TLS, althoug=
h
the SSL functionality still works."
Alors, je me dis que je suis peut-être pas le seul à rencontrer d=
es
problèmes
Si vous avez des retours d'expérience ou des suggestions, je suis tout=
ouï
Merci d'avance.
jMax
--001636c5ad4d0d054e04683a66d1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Bonjour,<br><br>Malgré tous mes efforts, multiples et répét=
és, je ne parviens définitivement pas à configurer l'aut=
hentification LDAP en TLS sur mon serveur Apache2.2.<br><br>Voilà ce q=
ue j'ai mis dans le /etc/apache2/ports.conf inclus dans /etc/apache2/ap=
ache2.conf<br>
<br>LDAPTrustedGlobalCert CA_BASE64 /etc/ssl/cacert.pem<br><br><VirtualH=
ost 130.120.xxx.xxx:80><br><br>Â Â Â LDAPTrustedClientCert =
CERT_BASE64 /etc/ssl/certs/xxx.ups-tlse.fr.crt<br>Â Â Â LDAPTr=
ustedClientCert KEY_BASE64 /etc/ssl/private/xxx.ups-tlse.fr.key<br>
   LDAPTrustedMode TLS<br><br>   <Locati=
on /ldap-status><br>Â Â Â Â Â Â Â SetHandle=
r ldap-status<br>Â Â Â Â Â Â Â order deny,allo=
w<br>Â Â Â Â Â Â Â allow from <a href="http:=
//xxx.ups-tlse.fr">xxx.ups-tlse.fr</a><br>Â Â Â Â Â Â=
 allow from <a href="http://xxx.ups-tlse.fr">xxx...lt;/a>=
<br>
       AuthType basic<br>  =
     AuthName "Auth LDAP"<br> Â=
     AuthBasicProvider ldap<br>  Â=
    AuthLDAPURL ldap://<a href="http://xxx.ups-tl=
se.fr/ou=Users,ou=People,dc=xxx,dc=ups-tlse,dc=fr?uid">xxx.ups-tl=
se.fr/ou=Users,ou=People,dc=xxx,dc=ups-tlse,dc=fr?uid</a><br>
       AuthzLDAPAuthoritative off<br>=
       require valid-user<br> Â=
 </Location><br><br></VirtualHost><br><br>OpenLDAP est=
installé et marche bien. Apache idem.<br>Mes certificats sont bons (j=
e les utilise par ailleurs avec succès). <br>
<br>Je ne vois pas d'où peut venir le problème. Alors avant d=
e switcher vers le module d'authentification via PAM (qui comble de l&#=
39;ironie utilise LDAP avec bonheur), je m'en remet aux gens qui savent=
<br>
<br>Dans la doc d'Apache, j'ai trouvé ça :<br>"The d=
ocumentation for the SDK claims to support both SSL and
STARTTLS, however STARTTLS does not seem to work on all versions
of the SDK. The SSL/TLS mode can be set using the
LDAPTrustedMode parameter. If an ldaps:// URL is specified,
SSL mode is forced. The OpenLDAP documentation notes that SSL
(ldaps://) support has been deprecated to be replaced with TLS,
although the SSL functionality still works."<br>Alors, je me d=
is que je suis peut-être pas le seul à rencontrer des problè=
mes<br><br>Si vous avez des retours d'expérience ou des suggest=
ions, je suis tout ouï<br>
<br>Merci d'avance.<br><br>jMax<br><br>
--001636c5ad4d0d054e04683a66d1--
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists Vous pouvez aussi ajouter le mot
``spam'' dans vos champs "From" et "Reply-To:"
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers debian-user-french-REQUEST@lists.debian.org
En cas de soucis, contactez EN ANGLAIS listmaster@lists.debian.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Bonjour,
Malgré tous mes efforts, multiples et répétés, je ne pa=
rviens définitivement
pas à configurer l'authentification LDAP en TLS sur mon serveur Apache=
2.2.
Voilà ce que j'ai mis dans le /etc/apache2/ports.conf inclus dans
/etc/apache2/apache2.conf
LDAPTrustedGlobalCert CA_BASE64 /etc/ssl/cacert.pem
<VirtualHost 130.120.xxx.xxx:80>
LDAPTrustedClientCert CERT_BASE64 /etc/ssl/certs/xxx.ups-tlse.fr.crt
LDAPTrustedClientCert KEY_BASE64 /etc/ssl/private/xxx.ups-tlse.fr.key
LDAPTrustedMode TLS
<Location /ldap-status>
SetHandler ldap-status
order deny,allow
allow from xxx.ups-tlse.fr
allow from xxx.ups-tlse.fr
AuthType basic
AuthName "Auth LDAP"
AuthBasicProvider ldap
AuthLDAPURL ldap://
xxx.ups-tlse.fr/ou=Users,ou=People,dc=xxx,dc=ups-tlse,dc=fr?uid
AuthzLDAPAuthoritative off
require valid-user
</Location>
</VirtualHost>
OpenLDAP est installé et marche bien. Apache idem.
Mes certificats sont bons (je les utilise par ailleurs avec succès).
Je ne vois pas d'où peut venir le problème. Alors avant de switch=
er vers le
module d'authentification via PAM (qui comble de l'ironie utilise LDAP avec
bonheur), je m'en remet aux gens qui savent
Dans la doc d'Apache, j'ai trouvé ça :
"The documentation for the SDK claims to support both SSL and STARTTLS,
however STARTTLS does not seem to work on all versions of the SDK. The
SSL/TLS mode can be set using the LDAPTrustedMode parameter. If an ldaps://
URL is specified, SSL mode is forced. The OpenLDAP documentation notes that
SSL (ldaps://) support has been deprecated to be replaced with TLS, althoug=
h
the SSL functionality still works."
Alors, je me dis que je suis peut-être pas le seul à rencontrer d=
es
problèmes
Si vous avez des retours d'expérience ou des suggestions, je suis tout=
ouï
Merci d'avance.
jMax
--001636c5ad4d0d054e04683a66d1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Bonjour,<br><br>Malgré tous mes efforts, multiples et répét=
és, je ne parviens définitivement pas à configurer l'aut=
hentification LDAP en TLS sur mon serveur Apache2.2.<br><br>Voilà ce q=
ue j'ai mis dans le /etc/apache2/ports.conf inclus dans /etc/apache2/ap=
ache2.conf<br>
<br>LDAPTrustedGlobalCert CA_BASE64 /etc/ssl/cacert.pem<br><br><VirtualH=
ost 130.120.xxx.xxx:80><br><br>Â Â Â LDAPTrustedClientCert =
CERT_BASE64 /etc/ssl/certs/xxx.ups-tlse.fr.crt<br>Â Â Â LDAPTr=
ustedClientCert KEY_BASE64 /etc/ssl/private/xxx.ups-tlse.fr.key<br>
   LDAPTrustedMode TLS<br><br>   <Locati=
on /ldap-status><br>Â Â Â Â Â Â Â SetHandle=
r ldap-status<br>Â Â Â Â Â Â Â order deny,allo=
w<br>Â Â Â Â Â Â Â allow from <a href="http:=
//xxx.ups-tlse.fr">xxx.ups-tlse.fr</a><br>Â Â Â Â Â Â=
 allow from <a href="http://xxx.ups-tlse.fr">xxx...lt;/a>=
<br>
       AuthType basic<br>  =
     AuthName "Auth LDAP"<br> Â=
     AuthBasicProvider ldap<br>  Â=
    AuthLDAPURL ldap://<a href="http://xxx.ups-tl=
se.fr/ou=Users,ou=People,dc=xxx,dc=ups-tlse,dc=fr?uid">xxx.ups-tl=
se.fr/ou=Users,ou=People,dc=xxx,dc=ups-tlse,dc=fr?uid</a><br>
       AuthzLDAPAuthoritative off<br>=
       require valid-user<br> Â=
 </Location><br><br></VirtualHost><br><br>OpenLDAP est=
installé et marche bien. Apache idem.<br>Mes certificats sont bons (j=
e les utilise par ailleurs avec succès). <br>
<br>Je ne vois pas d'où peut venir le problème. Alors avant d=
e switcher vers le module d'authentification via PAM (qui comble de l&#=
39;ironie utilise LDAP avec bonheur), je m'en remet aux gens qui savent=
<br>
<br>Dans la doc d'Apache, j'ai trouvé ça :<br>"The d=
ocumentation for the SDK claims to support both SSL and
STARTTLS, however STARTTLS does not seem to work on all versions
of the SDK. The SSL/TLS mode can be set using the
LDAPTrustedMode parameter. If an ldaps:// URL is specified,
SSL mode is forced. The OpenLDAP documentation notes that SSL
(ldaps://) support has been deprecated to be replaced with TLS,
although the SSL functionality still works."<br>Alors, je me d=
is que je suis peut-être pas le seul à rencontrer des problè=
mes<br><br>Si vous avez des retours d'expérience ou des suggest=
ions, je suis tout ouï<br>
<br>Merci d'avance.<br><br>jMax<br><br>
--001636c5ad4d0d054e04683a66d1--
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists Vous pouvez aussi ajouter le mot
``spam'' dans vos champs "From" et "Reply-To:"
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers debian-user-french-REQUEST@lists.debian.org
En cas de soucis, contactez EN ANGLAIS listmaster@lists.debian.org

Poser une question


Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Tout d'abord merci pour ta réponse.
1/ Je pense que les modules sont bien chargés ; en tout cas le
/etc/apache2/apache2.conf contient la directive
Include /etc/apache2/mods-enabled/*.load
qui inclut tous les fichiers .load de /etc/apache2/mods-enabled/ parmi
lesquels on trouve :
ldap.load qui contient LoadModule ldap_module
/usr/lib/apache2/modules/mod_ldap.so
et authnz_ldap.load qui contient LoadModule authnz_ldap_module
/usr/lib/apache2/modules/mod_authnz_ldap.so
Je pense que c'est suffisant pour pouvoir dire que les modules sont charg és
non ? Ou bien il y a un autre moyen de le vérifier (en interrogeant le
serveur en fonction par exemple ?)
2/ J'ai oublié de le préciser, mais oui, bien sûr, mon serve ur LDAP accepte
les connections TLS
Par exemple, quand je tape la commande :
ldapsearch -x *-ZZ* -H ldap://xxx.ups-tlse.fr -D
"cnmin,dc=xxx,dc=ups-tlse,dc=fr" -b
"ou=Users,ou=People,dc=xxx,dc=ups-tlse,dc=fr" -W
Aux niveaux des logs, j'obtiens :
slapd[18327]: conn=0 fd ACCEPT from IP0.120.xxx.xxx:41224
(IP0.120.xxx.xxx:389)
slapd[18327]: conn=0 op=0 EXT oid=1.3.6.1.4.1.1466.20037
slapd[18327]: conn=0 op=0 *STARTTLS*
slapd[18327]: conn=0 op=0 RESULT oid= err=0 text=
slapd[18327]: conn=0 fd *TLS established* tls_ssf8 ssf8
slapd[18327]: conn=0 op=1 BIND dn="cnmin,dc=xxx,dc=ups-tlse ,dc=fr"
method8
slapd[18327]: conn=0 op=1 BIND dn="cnmin,dc=xxx,dc=ups-tlse ,dc=fr"
mech=SIMPLE ssf=0
slapd[18327]: conn=0 op=1 RESULT tag err=0 text=
slapd[18327]: conn=0 op=2 SRCH
base="ou=Users,ou=People,dc=xxx,dc=ups-tlse,dc=fr" scope=2 de ref=0
filter="(objectClass=*)"
slapd[18327]: conn=0 op=2 SEARCH RESULT tag1 err=0 nentries=3 1 text=
slapd[18327]: conn=0 op=3 UNBIND
slapd[18327]: conn=0 fd closed
Au niveau du point 3/ de ta réponse, je ne suis pas sûr d'avoir compris la
chose à essayer ; mais en lisant l'exemple que tu retranscris et sur l equel
je me suis aussi appuyé pour établir ma config, je vois que tu me ts en avant
l'ajout de l'option TLS Ã la fin de la ligne AuthLDAPURL. Si j'ai bien lu la
doc, cette option ne sert qu'Ã surcharger la directive LDAPTrustedMode que
j'ai bien mis à TLS. Ou alors, il y a quelque chose qui m'a échap pé :-(.
Quoi qu'il en soit, ça ne marche pas, que je mettes TLS dans l'un ou
l'autre, ni même aux deux endroits.
Ce qui m'inquiète le plus c'est qu'il m'affiche une internal server er ror au
lieu d'une authentification failed qui me paraîtraît de meilleur aloi.
En tout cas merci de te pencher sur mon problème. Je suis à l'à ©coute de
toutes les idées qui pourraient me sortir de cette impasse.
jMax
2009/4/23 Tan.N
--001485f772b853d51f04684b8e96
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
qui inclut tous les fichiers .load de /etc/apache2/mods-enabled/ parmi lesq uels on trouve :<br>
   ldap.load qui contient LoadModule ldap_module /usr/lib/a pache2/modules/mod_ldap.so
slapd[18327]: conn=0 op=0 RESULT oid= err=0 text= <br> slapd[183 27]: conn=0 fd <b><span style="color: rgb(255, 102, 102);">TLS est ablished</span></b> tls_ssf8 ssf8 <br> slapd[18327]: conn=0 op =1 BIND dn="cnmin,dc=xxx,dc=ups-tlse,dc=fr" method 8 <br>
slapd[18327]: conn=0 op=1 BIND dn="cnmin,dc=xxx,dc=ups -tlse,dc=fr" mech=SIMPLE ssf=0 <br> slapd[18327]: conn=0 op= 1 RESULT tag err=0 text= <br> slapd[18327]: conn=0 op=2 SRCH b ase="ou=Users,ou=People,dc=xxx,dc=ups-tlse,dc=fr" sco pe=2 deref=0 filter="(objectClass=*)" <br>
slapd[18327]: conn=0 op=2 SEARCH RESULT tag1 err=0 nentries=3 1 text=
<div bgcolor="#ffffff" text="#000000">
<br>
1/ <code>A vérifier si les modules mod_ldap et mod_authnz_ldap sont
chargés dans apache.<br>
<br>
</code>2/ Petite question : ton serveur Ldap accepte-t-il les
connexions TLS ?<br>
<br>
3/ A essayer :<br>
D'après la doc d'Apache :Â
<br>
**********<br>
The ability to create an SSL and TLS connections to an LDAP server is
defined by the directives LDAPTrustedGlobalCert LDAPTrustedClientCert LDAPTrustedMode optional client certificates to be used, as well as the type of
encryption to be used on the connection (none, SSL or TLS/STARTTLS).
<div>
<br>
# mod_ldap and mod_authnz_ldap be loaded. Change the <br>
# " <br>
LDAPTrustedGlobalCert CA_DER /certs/certfile.der<br>
<br>
<Location /ldap-status><br>
<span> SetHandler ldap-status<br>
Order deny,allow<br>
Deny from all<br>
Allow from AuthLDAPURL ldaps:// AuthzLDAPAuthoritative off<br>
Require valid-user<br>
</span> </Location> </code></p>
</div>
<div>
# mod_ldap and mod_authnz_ldap be loaded. Change the <br>
# " <br>
LDAPTrustedGlobalCert CA_DER /certs/certfile.der<br>
<br>
<Location /ldap-status><br>
<span> SetHandler ldap-status<br>
Order deny,allow<br>
Deny from all<br>
Allow from AuthLDAPURL AuthzLDAPAuthoritative off<br>
Require valid-user<br>
</span> </Location> </code></p>
</div>
***********<br>
<br>
Jean-Max Redonnet a écrit :
<div><div></div><div><blockquote type="cite">Bonjour,<br>
<br>
Malgré tous mes efforts, multiples et répétés, je ne pa rviens
définitivement pas à configurer l'authentification LDAP en TL S sur mon
serveur Apache2.2.<br>
<br>
Voilà ce que j'ai mis dans le /etc/apache2/ports.conf inclus dans
/etc/apache2/apache2.conf<br>
<br>
LDAPTrustedGlobalCert CA_BASE64 /etc/ssl/cacert.pem<br>
<br>
<VirtualHost 130.120.xxx.xxx:80><br>
<br>
   LDAPTrustedClientCert CERT_BASE64 /etc/ssl/certs/xxx.ups -tlse.fr.crt<br>
   LDAPTrustedClientCert KEY_BASE64
/etc/ssl/private/xxx.ups-tlse.fr.key<br>
   LDAPTrustedMode TLS<br>
<br>
   <Location /ldap-status><br>
       SetHandler ldap-status<br>
       order deny,allow<br>
       allow from        allow from        AuthType basic<br>
       AuthName "Auth LDAP"<b r>
       AuthBasicProvider ldap<br>
       AuthLDAPURL        AuthzLDAPAuthoritative off<br>
       require valid-user<br>
   </Location><br>
<br>
</VirtualHost><br>
<br>
OpenLDAP est installé et marche bien. Apache idem.<br>
Mes certificats sont bons (je les utilise par ailleurs avec succès). < br>
<br>
Je ne vois pas d'où peut venir le problème. Alors avant de sw itcher
vers le module d'authentification via PAM (qui comble de l'ironie
utilise LDAP avec bonheur), je m'en remet aux gens qui savent...<br>
<br>
Dans la doc d'Apache, j'ai trouvé ça :<br>
"The documentation for the SDK claims to support both SSL and STARTTLS ,
however STARTTLS does not seem to work on all versions of the SDK. The
SSL/TLS mode can be set using the LDAPTrustedMode parameter. If an
ldaps:// URL is specified, SSL mode is forced. The OpenLDAP
documentation notes that SSL (ldaps://) support has been deprecated to
be replaced with TLS, although the SSL functionality still works."<br>
Alors, je me dis que je suis peut-être pas le seul à rencontrer d es
problèmes...<br>
<br>
Si vous avez des retours d'expérience ou des suggestions, je suis tout
ouï<br>
<br>
Merci d'avance.<br>
<br>
jMax<br>
<br>
</blockquote>
<br>
</div></div></div>
</blockquote></div></div></div><br>
</div><br>
--001485f772b853d51f04684b8e96--
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists Vous pouvez aussi ajouter le mot
``spam'' dans vos champs "From" et "Reply-To:"
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Whaou ! Ãa c'est de la réactivité !
Merci pour la commande a2enmod que je ne connaissait pas...
Quand je tape a2enmod authnz_ldap,
il me réponds
Module ldap already enabled
Module authnz_ldap already enabled
Ils sont donc bien chargés...
Je n'ai pas essayé de faire un test sans cryptage parce que mon serveu r LDAP
ne réponds qu'en crypté (et comme je l'utilise en production pour d'autres
services, j'ai pas trop envie de bricoler sa config... Ceci étant, je
pourrais peut-être essayer pendant le week-end...)
Suite à l'arrivée de ton message pendant la rédaction de cel ui-ci, j'ai
ajouté STARTTLS à la directive AuthLDAPURL... et .... pas mieux : -(...
toujours Internal Server Error.
Le log Apache donne :
[warn] [client 130.120.xxx.xxx] [19769] auth_ldap authenticate: user
xxx authentication failed; URI /ldap-status [LDAP: ldap_start_tls_s()
failed][Connect error]
et sur le syslog, j'ai :
slapd[18327]: conn%2 fd ACCEPT from IP0.120.xxx.xxx:46943
(IP0.120.xxx.xxx:389)
slapd[18327]: conn%2 op=0 EXT oid=1.3.6.1.4.1.1466.20037
slapd[18327]: conn%2 op=0 STARTTLS
slapd[18327]: conn%2 op=0 RESULT oid= err=0 text=
slapd[18327]: conn%2 fd closed (TLS negotiation failure)
Ce qui m'indique que la negociation TLS échoue, mais ça je le sav ais déjà ...
Je ne vois toujours pas comment m'en sortir :-(
Mais je te remercie de tes efforts pour me venir en aide
Le 24 avril 2009 14:43, Tan.N
--001636c5a3e91300e804684d1ad3
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Whaou ! Ãa c'est de la réactivité ! [warn] [client 130.120.xxx.xxx] [19769] auth_ldap authenticate: user xxx a uthentication failed; URI /ldap-status [LDAP: ldap_start_tls_s() failed][Co nnect error] slapd[18327]: conn%2 op=0 EXT oid=1.3.6.1.4.1.1466.20037 <br> slap d[18327]: conn%2 op=0 STARTTLS <br> slapd[18327]: conn%2 op=0 R ESULT oid= err=0 text= <br> slapd[18327]: conn%2 fd closed ( TLS negotiation failure)</pre>
<div bgcolor="#ffffff" text="#000000">
       Bonjour,<br>
<br>
1/ Un bon petit coup de "a2enmod nom-du-module" ne fait pas de ma l pour
les 2 modules d'auth ldap<br>
2/ OK pour le TLS si le ldapsearch répond comme il faut<br>
3/ Juste avant de passer en TLS ou SSL, as tu essayé de faire un test
sans cryptage ?<br>
Sinon que donne les log d'apache ?<br><font color="#888888">
<br>
TN</font><div><div></div><div class="h5"><br>
<br>
Jean-Max Redonnet a écrit :
<blockquote type="cite">
<br>
1/ Je pense que les modules sont bien chargés ; en tout cas le
/etc/apache2/apache2.conf contient la directive <br>
Include /etc/apache2/mods-enabled/*.load<br>
qui inclut tous les fichiers .load de /etc/apache2/mods-enabled/ parmi
lesquels on trouve :<br>
   ldap.load qui contient LoadModule ldap_module
/usr/lib/apache2/modules/mod_ldap.so<br>
et authnz_ldap.load qui contient LoadModule authnz_ldap_module
/usr/lib/apache2/modules/mod_authnz_ldap.so<br>
Je pense que c'est suffisant pour pouvoir dire que les modules sont
chargés non ? Ou bien il y a un autre moyen de le vérifier (en
interrogeant le serveur en fonction par exemple ?)<br>
<br>
2/ J'ai oublié de le préciser, mais oui, bien sûr, mon s erveur LDAP
accepte les connections TLS<br>
Par exemple, quand je tape la commande :<br>
ldapsearch -x <b><span style="color: rgb(255, 102, 102);">-ZZ</span></b>
-H "cnmin,dc=xxx,dc=ups-tlse,dc=fr" -b
"ou=Users,ou=People,dc=xxx,dc=ups-tlse,dc=fr" -W <br>
<pre>Aux niveaux des logs, j'obtiens :
slapd[18327]: conn=0 fd ACCEPT from IP0.120.xxx.xxx:41224 (IP 0.120.xxx.xxx:389)
slapd[18327]: conn=0 op=0 EXT oid=1.3.6.1.4.1.1466.20037
slapd[18327]: conn=0 op=0 <b><span style="color: rgb(255, 102, 102); ">STARTTLS</span></b>
slapd[18327]: conn=0 op=0 RESULT oid= err=0 text=
slapd[18327]: conn=0 fd <b><span style="color: rgb(255, 102, 102) ;">TLS established</span></b> tls_ssf8 ssf8
slapd[18327]: conn=0 op=1 BIND dn="cnmin,dc=xxx,dc=ups -tlse,dc=fr" method8
slapd[18327]: conn=0 op=1 BIND dn="cnmin,dc=xxx,dc=ups -tlse,dc=fr" mech=SIMPLE ssf=0
slapd[18327]: conn=0 op=1 RESULT tag err=0 text=
slapd[18327]: conn=0 op=2 SRCH base="ou=Users,ou=People,dc =xxx,dc=ups-tlse,dc=fr" scope=2 deref=0 filter="(obje ctClass=*)"
slapd[18327]: conn=0 op=2 SEARCH RESULT tag1 err=0 nentries=3 1 text=
slapd[18327]: conn=0 op=3 UNBIND
slapd[18327]: conn=0 fd closed
</pre>
Au niveau du point 3/ de ta réponse, je ne suis pas sûr d&# 39;avoir
compris la chose à essayer ; mais en lisant l'exemple que tu
retranscris et sur lequel je me suis aussi appuyé pour établir ma
config, je vois que tu mets en avant l'ajout de l'option TLS Ã la fin
de la ligne AuthLDAPURL. Si j'ai bien lu la doc, cette option ne sert
qu'à surcharger la directive LDAPTrustedMode que j'ai bien mis à TLS.
Ou alors, il y a quelque chose qui m'a échappé :-(. Quoi qu&# 39;il en soit,
ça ne marche pas, que je mettes TLS dans l'un ou l'autre, ni m ême aux
deux endroits.<br>
<br>
Ce qui m'inquiète le plus c'est qu'il m'affiche une in ternal server
error au lieu d'une authentification failed qui me paraîtraît de
meilleur aloi.<br>
<br>
En tout cas merci de te pencher sur mon problème. Je suis à l' ;écoute de
toutes les idées qui pourraient me sortir de cette impasse.<br>
<br>
jMax<br>
<br>
<br>
<div>
<div><br>
<div bgcolor="#ffffff" text="#000000"><br>
1/ <code>A vérifier si les modules mod_ldap et mod_authnz_ldap sont
chargés dans apache.<br>
<br>
</code>2/ Petite question : ton serveur Ldap accepte-t-il les
connexions TLS ?<br>
<br>
3/ A essayer :<br>
D'après la doc d'Apache :Â
<br>
**********<br>
The ability to create an SSL and TLS connections to an LDAP server is
defined by the directives LDAPTrustedGlobalCert LDAPTrustedClientCert LDAPTrustedMode optional client certificates to be used, as well as the type of
encryption to be used on the connection (none, SSL or TLS/STARTTLS).
<div>
that
<br>
# mod_ldap and mod_authnz_ldap be loaded. Change the <br>
# " <br>
LDAPTrustedGlobalCert CA_DER /certs/certfile.der<br>
<br>
<Location /ldap-status><br>
<span> SetHandler ldap-status<br>
Order deny,allow<br>
Deny from all<br>
Allow from AuthLDAPURL ldaps:// AuthzLDAPAuthoritative off<br>
Require valid-user<br>
</span> </Location> </code></p>
</div>
<div>
that <br>
# mod_ldap and mod_authnz_ldap be loaded. Change the <br>
# " <br>
LDAPTrustedGlobalCert CA_DER /certs/certfile.der<br>
<br>
<Location /ldap-status><br>
<span> SetHandler ldap-status<br>
Order deny,allow<br>
Deny from all<br>
Allow from AuthLDAPURL <font color="#ff0000"><b>TLS</b></font><br>
AuthzLDAPAuthoritative off<br>
Require valid-user<br>
</span> </Location> </code></p>
</div>
***********<br>
<br>
Jean-Max Redonnet a écrit :
<div>
<div>
<blockquote type="cite">Bonjour,<br>
<br>
Malgré tous mes efforts, multiples et répétés, je ne pa rviens
définitivement pas à configurer l'authentification LDAP en TL S sur mon
serveur Apache2.2.<br>
<br>
Voilà ce que j'ai mis dans le /etc/apache2/ports.conf inclus dans
/etc/apache2/apache2.conf<br>
<br>
LDAPTrustedGlobalCert CA_BASE64 /etc/ssl/cacert.pem<br>
<br>
<VirtualHost 130.120.xxx.xxx:80><br>
<br>
   LDAPTrustedClientCert CERT_BASE64 /etc/ssl/certs/xxx.ups -tlse.fr.crt<br>
   LDAPTrustedClientCert KEY_BASE64
/etc/ssl/private/xxx.ups-tlse.fr.key<br>
   LDAPTrustedMode TLS<br>
<br>
   <Location /ldap-status><br>
       SetHandler ldap-status<br>
       order deny,allow<br>
       allow from        allow from        AuthType basic<br>
       AuthName "Auth LDAP"<b r>
       AuthBasicProvider ldap<br>
       AuthLDAPURL        AuthzLDAPAuthoritative off<br>
       require valid-user<br>
   </Location><br>
<br>
</VirtualHost><br>
<br>
OpenLDAP est installé et marche bien. Apache idem.<br>
Mes certificats sont bons (je les utilise par ailleurs avec succès). < br>
<br>
Je ne vois pas d'où peut venir le problème. Alors avant de sw itcher
vers le module d'authentification via PAM (qui comble de l'ironie
utilise LDAP avec bonheur), je m'en remet aux gens qui savent...<br>
<br>
Dans la doc d'Apache, j'ai trouvé ça :<br>
"The documentation for the SDK claims to support both SSL and STARTTLS ,
however STARTTLS does not seem to work on all versions of the SDK. The
SSL/TLS mode can be set using the LDAPTrustedMode parameter. If an
ldaps:// URL is specified, SSL mode is forced. The OpenLDAP
documentation notes that SSL (ldaps://) support has been deprecated to
be replaced with TLS, although the SSL functionality still works."<br>
Alors, je me dis que je suis peut-être pas le seul à rencontrer d es
problèmes...<br>
<br>
Si vous avez des retours d'expérience ou des suggestions, je suis tout
ouï<br>
<br>
Merci d'avance.<br>
<br>
jMax<br>
<br>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<br>
</div>
<br>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br>
--001636c5a3e91300e804684d1ad3--
--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists Vous pouvez aussi ajouter le mot
``spam'' dans vos champs "From" et "Reply-To:"
Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS