tru3n0 >>> blog / 73 posts / categories / 68 comments / feed / comments feed

Autentificación LDAP en Apache 2

En el fichero httpd.conf en el area server config tenemos que poner el tipo de seguridad que utiliza nuestro LDAP. Por ejemplo:

LDAPTrustedMode NONE

Admite 3 tipos, NONE, SSL y TLS/STARTTLS.

Despues en nuestro virtual host tenemos que agregar las siguientes opciones marcadas en rojo:

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2’s default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
AuthType Basic
AuthName “acceso LDAP”
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPURL “ldap://localhost:389/dc=nodomain”
Require valid-user

</Directory>

Y con eso ya estaría, si alguien consigue pasar la autentificacion Web a Drupal que me avise ;)

2 Comments

  1. mario — July 13, 2007 #

    que modulo de autenticacion usas? mod_authz_ldap????

  2. tru3n0 — July 13, 2007 #

    Si, se me olvido ponerlo, un saludo ;)

Leave a comment