Just a simple reminder : 1) Create passwd file: htpasswd2 -c /etc/apache2/htpasswd USER -> insert password 2) verify grant on path 3) create alias Alias /protected /root/path <Location /protected > AuthType Basic AuthName "download for protected " AuthUserFile /etc/apache2/htpasswd Require valid-user </Location>
Tag Archive: linux
Jul 04
How to configure Apache Security on Ldap
This is a simply configuration of apahce to use Ldap authentication, You need to enable ldap and ldap_auth modules. <Location /ldaplocation > AuthType Basic AuthName "ldap auth" AuthBasicProvider ldap AuthLDAPBindDN "CN=ldapbind,O=test,C=it" AuthLDAPBindPassword mypasswordhere AuthLDAPURL "ldap://ldaphost:389/?uid?sub?(objectClass=inetOrgPerson)" Options Indexes SetOutputFilter DEFLATE <Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT CHECKOUT MKCOL MOVE COPY DELETE …