0

I would like to add a method in LdapUserDetailsImpl, which returns the ldap username with '-' before the String.

I already tried implementing an other UserDetails but was not what i was expecting.

I know that i can create an Util class and do that, but its not a good pratice.

KpsLok
  • 853
  • 9
  • 23
  • 1
    before the start of the ~String~. or Spring ??? – borino Jul 06 '18 at 09:18
  • Based on [this](https://stackoverflow.com/questions/29007674/spring-boot-ldap-customize-userdetails) answer, I changed the constructor and worked as expected. – KpsLok Jul 10 '18 at 10:59
  • Possible duplicate of [Spring-boot LDAP customize UserDetails](https://stackoverflow.com/questions/29007674/spring-boot-ldap-customize-userdetails) – KpsLok Oct 02 '18 at 11:59

0 Answers0