How to create public html (apache2) with LDAP authentication?
Posted
by
borjamf
on Server Fault
See other posts from Server Fault
or by borjamf
Published on 2012-11-29T19:24:15Z
Indexed on
2012/11/29
23:09 UTC
Read the original article
Hit count: 369
Im running Apache2 on Ubuntu 12.04 Server because I want to create a home directory for each ldap user. I'm using LDAP for authentication and it's working ok. Also I've done some tests with LDAP module for Apache2 and it's working ok.
The problem with this LDAP authentication is that any success login can access to ~user/public_html, even if the user is not the owner of that home.
I dont know how to control that, for example, userldap2 access to userldap1/public_html. I want that only the userldap1 access to userldap1.
Could anybody tell me how to control that with LDAP authentication?
I hope that you'll understand me.
My config (auth_ldap.conf)
<Directory /home/disco2/*/public_html>
AuthName "Authentication"
AuthType basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPURL ldap://prueba.borja/dc=prueba,dc=borja?uid?
Require ldap-filter objectClass=posixAccount
</Directory>
© Server Fault or respective owner