开发者

LDAP-authentication and local roles don't work

开发者 https://www.devze.com 2022-12-19 09:54 出处:网络
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 fo

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消