Modify passwords in an LDIF file using ldapmodify command
问题 I have a 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 this mean? The syntax I have used can be used for only one user, I