⇤ ← Revision 1 as of 2010-08-27 09:58:12
Size: 948
Comment:
|
← Revision 2 as of 2011-11-13 05:32:12 ⇥
Size: 939
Comment: correct misspellings
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
Here is an config that will allow users comming from the ip ranage 192.168.0.0 but demand user and password for everbody else. And it will use ebox ldap for verifying the users. |
Here is a config that will allow users coming from the ip-range 192.168.0.0, but demand user and password for everbody else. It will use ebox ldap for verifying the users. |
Line 7: | Line 7: |
First set upp apache to use ldap auth. Install the ldap mod and make shoure that apache is using ldap in the mods-enabled folder. | First set upp Apache to use ldap auth. Install the ldap mod and make shure that Apache is using ldap in the mods-enabled folder. |
Line 16: | Line 16: |
AuthName "Loggin " | AuthName "Login " |
Line 21: | Line 21: |
AuthLDAPURL "ldap://10.0.2.30:389/ou=Users,dc=ebox?uid" <-- chnage to match you config | AuthLDAPURL "ldap://10.0.2.30:389/ou=Users,dc=ebox?uid" <-- change to match your config |
Line 24: | Line 24: |
satisfy any | Satisfy Any |
Line 27: | Line 27: |
Connecting your apache to ebox is very easy and nice. Here is a config that will allow users coming from the ip-range 192.168.0.0, but demand user and password for everbody else. It will use ebox ldap for verifying the users.
PREPARE APACHE
First set upp Apache to use ldap auth. Install the ldap mod and make shure that Apache is using ldap in the mods-enabled folder.
VHOST CONFIG
<Location /> Order Deny,Allow Deny from all Allow from 192.168.0.0/24 AuthType basic AuthName "Login " AuthBasicProvider ldap AuthzLDAPAuthoritative off AuthLDAPBindDN "cn=admin,dc=ebox" <--- change to match your config AuthLDAPBindPassword "ebox2jadkljalksjdiais0" <-- change to match your config AuthLDAPURL "ldap://10.0.2.30:389/ou=Users,dc=ebox?uid" <-- change to match your config AuthLDAPGroupAttributeIsDN on Require valid-user Satisfy Any </Location>