apache / apache/grails-core

GPSPRINGSECURITYCORE-199: SpringSecurityUtils.doWithAuth doesn't work with LDAP

Open
#15,854 0 comments 0 reactions 1 assignee Claimed by @burtbeckwith View on GitHub
relates-to:spring-security type: bug type: major
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

Original Reporter: mmorett
Environment: Not Specified
Version: Grails-Spring-Security-Core 1.2.7.3
Migrated From: http://jira.grails.org/browse/GPSPRINGSECURITYCORE-199

SpringSecurityUtils.doWithAuth("mmorett", {
println "xxx"
})

That little snippet will not work with a user that is configured in LDAP and works (i.e. can log in with this user). It produces a RuntimeException.

java.lang.RuntimeException: The specified user domain class 'Person' is not a domain class

The LDAP plugin is configured in Config.groovy with this line:
grails.plugins.springsecurity.providerNames = [ 'ldapAuthProvider', 'anonymousAuthenticationProvider']

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.