roda
roda copied to clipboard
Add option in RODA CLI to change LDAP admin password
Running RODA as CLI supports changing the admin user password (for uid=admin,ou=users,dc=roda,dc=org
) but not the LDAP admin password (for uid=admin,ou=system
)
When the LDAP server is exposed the admin password should be different than the default ("roda").
Also check if RODA (during startup, when LDAP data has not been created) initializes LDAP using the LDAP admin password specified in roda-core.properties
:
core.ldap.adminPassword
If it doesn't, it should be fixed (in this issue or in a new one).
As a workaround, the LDAP admin password can be changed using an interactive ldap session:
ldapmodify -v -h localhost -p 10389 -D "uid=admin,ou=system" -w "roda"
The following line should appear:
ldap_initialize( ldap://localhost:10389 )
Write:
dn: uid=admin,ou=system
changetype: modify
replace: userPassword
userPassword: <newPassword>
Pressing ENTER twice will apply the changes and output something like this:
replace userPassword:
<newPassword>
modifying entry "uid=admin,ou=system"
modify complete
Use CTRL+D to quit the interactive session.