roda icon indicating copy to clipboard operation
roda copied to clipboard

Add option in RODA CLI to change LDAP admin password

Open chalkos opened this issue 5 years ago • 1 comments

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).

chalkos avatar Jan 04 '19 10:01 chalkos

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.

chalkos avatar Jan 04 '19 11:01 chalkos