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