在Jenkins中启用LDAP错误

时间:2013-11-07 21:57:42

标签: jenkins ldap

Caused by: com.thoughtworks.xstream.converters.ConversionException:  : entity reference names can not     start with character '(' (position: START_TAG seen ...<userSearch>&(... @14:19)  :  : entity reference   names can not start with character '(' (position: START_TAG seen ...<userSearch>&(... @14:19) 

----调试信息----     消息::实体引用名称不能以字符开头(&#39;(位置:START_TAG见过......&amp;(... @ 14:19) cause-exception:com.thoughtworks.xstream.io.StreamException     cause-message ::实体引用名称不能以字符开头(&#39;(位置:START_TAG见过......&amp;(... @ 14:19)

下面是我的config.xml。

<securityRealm class="hudson.security.LDAPSecurityRealm" plugin="ldap@1.1">
<server>ldap://office.adroot.bmogc.net:3268</server>
<rootDN>DC=office,DC=adroot,DC=bmogc,DC=net</rootDN>
<inhibitInferRootDN>false</inhibitInferRootDN>
<userSearchBase>DC=office,DC=adroot,DC=bmogc,DC=net</userSearchBase>
<userSearch>&(objectCategory=Person)(memberof=CN=ccusers,OU=UNIX Security Groups,OU=CTD_CM_RMG,OU=Corporate Clients V2,DC=office,DC=adroot,DC=bmogc,DC=net)/userSearch>
<groupSearchBase>DC=office,DC=adroot,DC=bmogc,DC=net</groupSearchBase>
<managerDN>ldapuser</managerDN>
<managerPassword>MUJ</managerPassword>
</securityRealm>

2 个答案:

答案 0 :(得分:3)

符号&lt; / userSearch&gt;

中缺少

答案 1 :(得分:0)

该搜索过滤器无效。 LDAP兼容服务器和API必须拒绝该过滤器。用(和)环绕滤波器。