LDAP-authentication and local roles don't work
authentication via LDAP works like a charm, however, when I assign a role to a user and secure a page in the requestmap (like /books/show/**
and ROLE_USER
) this only works for local-only users, not for users authent开发者_高级运维icated via LDAP. (IS_AUTHENTICATED_FULLY
works, though)
How can I fix that?
Head, meet Wall.
Just add ldapRetrieveDatabaseRoles = true
to your SecurityConfig.groovy – that's all.
精彩评论