Jenkins修改域认证,非域用户忘记密码处理

一、认证域地址修改

1. 编辑配置文件

vi $JENKINS_HOME/jenkins/config.xml

2.修改如下内容:

<securityRealm class="hudson.security.LDAPSecurityRealm" plugin="[email protected]">

     <server>ldap://$<LDAP_HOST_IP></server> //修改此处的ip

     <rootDN>DC=ta-mp,DC=com</rootDN>

     <inhibitInferRootDN>false</inhibitInferRootDN>

     <userSearchBase></userSearchBase>

     <userSearch>sAMAccountName={0}</userSearch>

     <managerDN>CN=gcquery,CN=Users,DC=cd,DC=ta-mp,DC=com</managerDN>

     <managerPassword>R2MxMjM0NTY=</managerPassword>

     <disableMailAddressResolver>false</disableMailAddressResolver>

   </securityRealm->

二、非域用户忘记密码

修改config.xml中如下内容:

<useSecurity>false</useSecurity>

<!--authorizationStategy class="hudson.sucrity.FullControlOnceLoggedInAuthorizationStrategy">

    ......

</authorizationStategy>

<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">

   <disableSignup>false</disableSignup>

    .. 

</securityRealm-->

3. sudo service jenkins restart

你可能感兴趣的:(Jenkins)