Announcement Announcement Module
No announcement yet.
populate other ldap attributes into UserDetails Page Title Module
Move Remove Collapse
This topic is closed
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • populate other ldap attributes into UserDetails

    Hi everybody,
    How can i set other ldap attributes (sn, adress...) into my UserDetails Implementation.
    Do i have to extends LdapAuthenticationProvider ?

    I 'm juste able to retrieve the username and the authorities for the moment.
    Thank you very much for your help,

  • #2
    Please have a look at the latest chaanges which have been made to the Ldap code, as outlined in this Jira issue:

    These should allow you to access attributes directly in the returned LdapUserDetails object, or you can customize the generation of the UserDetails object returned by the provider by overriding the method:

    protected UserDetails createUserDetails(LdapUserDetails ldapUser)

    You can download the latest src and binaries from the nightly builds location on sourceforge (see my other post today about this).