Class DefaultLdapUsernameToDnMapper
java.lang.Object
org.springframework.security.ldap.DefaultLdapUsernameToDnMapper
- All Implemented Interfaces:
- LdapUsernameToDnMapper
This implementation appends a name component to the userDnBase context using
 the usernameAttributeName property. So if the uid attribute is used
 to store the username, and the base DN is cn=users and we are creating a new
 user called "sam", then the DN will be uid=sam,cn=users.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.springframework.ldap.core.DistinguishedNameDeprecated.buildLdapName(String username) 
- 
Constructor Details- 
DefaultLdapUsernameToDnMapper- Parameters:
- userDnBase- the base name of the DN
- usernameAttribute- the attribute to append for the username component.
 
 
- 
- 
Method Details- 
buildDnDeprecated.UsebuildLdapName(String)insteadAssembles the Distinguished Name that should be used the given username.- Specified by:
- buildDnin interface- LdapUsernameToDnMapper
 
- 
buildLdapName- Specified by:
- buildLdapNamein interface- LdapUsernameToDnMapper
 
 
- 
buildLdapName(String)instead