By: Tejesh Khimani user 11 Apr 2022 at 8:38 p.m. CDT

2 Responses
Tejesh Khimani gravatar
Hi, I would like to modify user password in GLUU LDAP from terminal using ldapmodify command. Can someone help me with it? **I tried something like**: ldapmodify -h localhost -p 1636 -Z -X -w $ldapsecret -D $ldapDN -f $userid.ldif **Output**: Add or modify entries from an LDAP server usage: ldapmodify [options] The list of desired operations are read from stdin or from the file specified by "-f file". Thanks

By Mobarak Hosen Shakil staff 12 Apr 2022 at 12:33 a.m. CDT

Mobarak Hosen Shakil gravatar
Hi Tejesh, It looks like your command is valid. How about `userid.ldif` file? is that Okay? Here is an example: > **userid.ldif**: ``` dn: inum=40704c0b-8c28-4046-b3b2-206811377729,ou=people,o=gluu changetype: modify replace: userPassword userPassword: changedp ``` To modify it: ``` /opt/opendj/bin/ldapmodify -h localhost -p 1636 -Z -X -D "cn=directory manager" -w "password" -f userid.ldif ``` Regards ~ Shakil

By Tejesh Khimani user 12 Apr 2022 at 1:53 a.m. CDT

Tejesh Khimani gravatar
Hi Shakil, Thanks, i wasn't using full path to execute /opt/opendj/bin/ldapmodify .