How to do different authorization to different users in Apache ?
I want different Authorization for internal users and external Users:
For internal Users : Require IP IP_Address
for External Users: authorization using LDAP
How can I achieve this?
I try to use different Require tag like this:
<Directory /var/www/html/directory>
AuthName "LDAP Authentication"
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPauthoritative off
AuthLDAPURL ldap://192.168.1.3/dc=example,dc=com?uid?sub?(objectClass=*)
Require valid-user
Order deny,allow
Allow from 192.168.1
Satisfy any
Require ip 192.168.1.2
</Directory>
the LDAP authorization work fine, but ALL the users with IP 192.168.1.x can reach this directory even with this rule ( Require ip 192.168.1.2) ??? why other IPs can do this even I allow only 192.168.1.2 using Require(Require ip 192.168.1.2)???
|