public class LdapAuthorizationMapping extends Object implements AuthorizationMapping
Each ldap object that represents a user is expcted to have exactly one of ldap.usernameField and ldap.princField, and they are both expected to be unique over the search base. A search will be performed over all objects where princField = principal, and the usernameField will be returned. Note that it is expected this search return exactly one object. (There can only be one default) If more than one is returned, the first entry encountered will be used, and no sorting is performed or requested. If more control over the search is needed, you can specify the mapSearchFilter used to perform the LDAP query. This implementation requires that LDAP be configured, obviously.
| Constructor and Description |
|---|
LdapAuthorizationMapping() |
public String map(String principal)
AuthorizationMappingmap in interface AuthorizationMappingprincipal - The autheticated principal requesting authorization.public String name()
name in interface AuthorizationMappingpublic String description()
description in interface AuthorizationMappingCopyright © 2003-2008 Jive Software.