提交 69b45205 编写于 作者: K kohsuke

ou=groups is not a mandatory convention, and indeed at Zilics Information...

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
上级 934a1ced
......@@ -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);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册