LDAP Apache: Difference between revisions
(Adding Article Footer & Category) |
|||
Line 39: | Line 39: | ||
[[http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html]Apache mod_auth_ldap] | [[http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html]Apache mod_auth_ldap] | ||
{{Article Footer|unknown|3/28/2006}} | |||
[[Category:LDAP]] |
Revision as of 22:48, 19 February 2008
LDAP Apache
Very simple, install mod_auth_ldap, and then install a .htaccess file that looks like this:
AuthType Basic AuthName DDInternal AuthLDAPURL ldap://yourzimbraserver/dc=zimbra,dc=yourdomain,dc=com,dc=au require valid-user
The first part "yourzimbraserver" is the address of your Zimbra server running LDAP.
The second part "dc=zimbra,dc=yourdomain,dc=com,dc=au" is the domain you would like to authenticate against.
Other Domains
If you want that your customers authenticate with their email address, you just have to use the mail attribute.
Example:
<Location "/service"> AuthLDAPEnabled on AuthType Basic AuthName "Service" AuthLDAPURL ldap://127.0.0.1/?mail require valid-user </Location>
You can limit the access to certain users by adding
require user user@example.com
Performance
You may consider installing mod_ldap to cache your LDAP connections.
Single Login
You can then use [[1]Preauth] to do single sign on (sort of).
References
[[2]Apache mod_auth_ldap]