Exemplo de como restringir o acesso com apache realizando autenticação no LDAP.
Diretório Restrito
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| Options Indexes FollowSymLinks Includes
AllowOverride AuthConfig
#Autenticao
AuthName "Acesso ao SARG"
AuthType Basic
AuthBasicProvider "ldap"
AuthLDAPURL "ldap://201.7.197.39:389/dc=topazio,dc=com?uid?sub"
authzldapauthoritative Off
#AuthUserfile /etc/apache2/apache_passwd
require user sweber
#AuthUserfile /etc/apache2/apache_passwd
#require valid-user
Order allow,deny
Allow from all
|
Diretorio Install
1
2
3
4
5
6
7
8
9
10
11
12
13
| Options Indexes FollowSymLinks Includes
AllowOverride AuthConfig
AuthName "Acesso ao INSTALL"
AuthType Basic
AuthBasicProvider "ldap"
AuthLDAPURL "ldap://201.7.197.39:389/dc=topazio,dc=com?uid?sub"
authzldapauthoritative Off
#AuthUserfile /etc/apache2/apache_passwd
require user sweber
Order allow,deny
Allow from all
|