Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Security LDAP mapper.userDetailsClass setting being ignored in Grails 4 app #23

Open
Jonlee2001 opened this issue Sep 19, 2019 · 0 comments

Comments

@Jonlee2001
Copy link

I am trying to use the spring-security-ldap plugin (3.0.2) in a Grails 4 app with spring-security-core (4.0.0RC2) and wherever I set the ldap.mapper.userDetailsClass = 'inetOrgPerson' flag its being ignored.

I've tried setting it in application.yml

plugins:
  springSecurity:
    ldap:
      mapper:
        userDetailsClass: 'inetOrgPerson'

and in application.groovy

grails.plugin.springsecurity.ldap.mapper.userDetailsClass = 'inetOrgPerson'

but neither of them seem to work, as I keep getting this error:

No such property: displayName for class: org.springframework.security.ldap.userdetails.LdapUserDetailsImpl

Is there another place this should be set? Or am I missing something?

(This all worked fine in an earlier version of this app built in Grails 2.3 and spring-security-core:2.0 and spring-security-ldap:2.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant