收录日期:2021/01/23 17:56:14 时间:2010-03-31 05:07:30 标签:grails,ldap,spring-security

I'm trying to setup our new Grails application to authenticate via LDAP. From the logs we can see that Acegi is binding to the LDAP store, then is able to find the user given the correct credentials, and finally begins searching for roles.

The authentication fails due to a PartialResultException.

I'm aware that the default LDAP provider in Acegi has an option to ignore PartialResultExceptions, but I'm not exactly sure how to turn that on in Grails.

I found a solution to my problem at the SpringSource forums

Basically I needed to be more specific with the Group Search Base. Adding in a more specific OU fixed the problem.