ou=groups is not a mandatory convention, and indeed at Zilics Information Systems that I went for a trouble-shooting, it was using another name.

So just search from a broader base by default.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12183 71c3de6d-444a-0410-be80-ed276b4c234a

Originally-Committed-As: 69b4520593def90d8851c0ba5b8c94a01d69ae30
This commit is contained in:
kohsuke 2008-09-17 20:01:51 +00:00
parent 4518fdf464
commit cbfc0eaf0a

View file

@ -199,7 +199,7 @@ public class LDAPSecurityRealm extends SecurityRealm {
*/
private void correctAuthoritiesPopulator(WebApplicationContext appContext) {
DeferredCreationLdapAuthoritiesPopulator factory = (DeferredCreationLdapAuthoritiesPopulator) appContext.getBean("authoritiesPopulator");
factory.setGroupSearchBase(groupSearchBase==null ? "ou=groups" : groupSearchBase);
factory.setGroupSearchBase(groupSearchBase==null ? "" : groupSearchBase);
}
/**