I'm trying to get started with OpenLDAP and I'm following this guide https://www.itzgeek.com/how-tos/linux/centos-how-tos/step-step-openldap-server-configuration-centos-7-rhel-7.html
I've done all the steps from a fresh CentOS7 installation. I have copy-pasted all commands and have not changed anything. Everything goes well until I want to add a user at page 2 in the guide. The guide tells me to use this command after editing the file raj.ldif:
ldapadd -x -W -D "cn=ldapadm,dc=itzgeek,dc=local" -f raj.ldif The expected output is:
Enter LDAP Password: adding new entry "uid=raj,ou=People,dc=itzgeek,dc=local" $ But the actual output is:
Enter LDAP Password: $ I tried entering another password. I also tried using a file that does not exists. Both these yields an error message, so it cannot be any of those. I'm at a loss here. What am I doing wrong?
raj.ldif(with sensitive information removed). Also, maybe the dn already exists and the verb is toaddinstead ofreplace. Check withslapcatwhat's going on in the database.