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 ;)

Categorized: Uncategorized
Tagged:

2 comments on “Autentificación LDAP en Apache 2

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>