I have an LDIF file that consists of a set of test users, and I would like to change the passwords for these users.
I used the ldapmodify command:
ldapmodify -c -a -f filename.ldif -h localhost -p <port> -D dn -w <pwd> << ! dn: uid=<userid>,dc=<branch>,DC=COM changetype: modify replace: userPassword userPassword: <new pwd> !
And I get the following error:
ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)
- What does it mean?
- The syntax that I used can only be used for one user, I would like to change the passwords of all test users in my LDIF file. Is there any way to do this?
ldap ldif
user1428900
source share