latest
release v2.1.2-1 last update 31-August-2007 11:53AM |
||
LDAP authentication with CAS GHAs LDAP became a standard for user referencials, authentication on an LDAP directory is the most widely used method nowadays. LDAP authentication configuration consists in specifying:
Two access modes are provided (bind and fastbind), depending on the internal structure of the LDAP directory. Direct acces mode (fastbind)The fastbind method can be used with LDAP directories of which the users' Distinguished Names can be directly deduced from their login name (practically, LDAP directories where all the users are stored at the same hierarchical level). In this mode, CAS tries to connect to the LDAP directory with the user's DN and the password provided. One may use: <authentication debug="off"> When using the ldap_fastbind method, the administrator should only spécify the filter to find the users' DN in the directory. The following tokens (similar to ldap_saslauthd) can be used in the filter string:
The %u token has to be used at minimum for the filter to be useful. Defaults to uid=%u. Search mode (bind)When users are located in different branches of the directory, deducing the users' DN from their login name is impossible. In this case, the ldap_bind mode should be used. It performs a search in the directory before trying to connect. One may use: <authentication debug="off"> When using the bind method, the administrator should specify:
LDAP serversThe LDAP servers are defined by:
When specifying several servers, all the servers are considered as replicates: when authentication fails on one directory, LDAP authentication fails because directories are intended to contain the same data; next (redundant) servers are tried only if the first one does not respond. Specifying many replicas can be done by specifying a space-separated list of LDAP URLs in the <url> element (these URLs will be handled by JNDI (since JDK 1.4) as precised in http://java.sun.com/products/jndi/tutorial/ldap/misc/url.html. Alternatively, using several <server> elements can help debugging. |
||
Copyright © 2002-2004 - ESUP-Portail consortium |