public class

DefaultLdapUsernameToDnMapper

extends Object
implements LdapUsernameToDnMapper
java.lang.Object
   ↳ org.springframework.security.ldap.DefaultLdapUsernameToDnMapper

Class Overview

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.

Summary

Public Constructors
DefaultLdapUsernameToDnMapper(String userDnBase, String usernameAttribute)
Public Methods
DistinguishedName buildDn(String username)
Assembles the Distinguished Name that should be used the given username.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.security.ldap.LdapUsernameToDnMapper

Public Constructors

public DefaultLdapUsernameToDnMapper (String userDnBase, String usernameAttribute)

Parameters
userDnBase the base name of the DN
usernameAttribute the attribute to append for the username component.

Public Methods

public DistinguishedName buildDn (String username)

Assembles the Distinguished Name that should be used the given username.