I am trying to change the password for a user whit ldapmodify. Im running OES 2 och SLES 10.

What im really want to do is change severel password in a batch.

Im trying whit this command

ldapmodify -x -ZZ -h 10.x.x.9 -p 389 -D "cn=admin,ou=xxx,o=xx" -W -vv -c -f ldapmod

The file ldapmod looks like this:

# Nokia, div, fu
dn: cn=Nokia,ou=div,o=fu
changetype: modify
delete: userPassword
add: userpassword
userPassword: password

I have tryed whit this to:

# Nokia, div, fu
dn: cn=Nokia,ou=div,o=fu
changetype: modify
replace: userPassword
userPassword: password

The output looks like this:

ldap_initialize( ldap://10.167.16.9:389 )
Enter LDAP Password:
delete userPassword:
password
delete add:
userpassword
modifying entry "cn=Nokia,ou=div,o=fu"
modify complete

It looks like the password changes but it doesnt work when im trying to log in.