My institution requires me to periodically change my LDAP password.
In the past, I was able to perform the following steps to change my password:-
- Create a Base64 encoded password at http://www.base64encode.org/
- Edit
/var/lib/jenkins/config.xml
and change<managerPassword/>
.
However, the recent version of Jenkins no longer use <managerPassword/>
. Instead, I'm seeing <managerPasswordSecret/>
.
I'm not sure how to generate the new secret password, so I did the following:-
- Backup
/var/lib/jenkins/config.xml
first. - Edit
/var/lib/jenkins/config.xml
and change<useSecurity/>
tofalse
. - Restart Jenkins service.
- Go to Jenkins.
- Enable LDAP Security.
- Enter new LDAP password.
- Save it.
- Open up
/var/lib/jenkins/config.xml
and copy<managerPasswordSecret/>
. - Restore backup config file.
- Replace
<managerPasswordSecret/>
with the new value.
This is incredibly convoluted.
Is there a more straightforward way for me to maintain my LDAP password change in the future?
Thanks much!