public class DefaultLdapUsernameToDnMapper extends java.lang.Object implements LdapUsernameToDnMapper
Constructor and Description |
---|
DefaultLdapUsernameToDnMapper(java.lang.String userDnBase,
java.lang.String usernameAttribute) |
Modifier and Type | Method and Description |
---|---|
org.springframework.ldap.core.DistinguishedName |
buildDn(java.lang.String username)
Assembles the Distinguished Name that should be used the given username.
|
public DefaultLdapUsernameToDnMapper(java.lang.String userDnBase, java.lang.String usernameAttribute)
userDnBase
- the base name of the DNusernameAttribute
- the attribute to append for the username component.public org.springframework.ldap.core.DistinguishedName buildDn(java.lang.String username)
buildDn
in interface LdapUsernameToDnMapper