I try to add a user to an existing and running openldap server. The server was setup by someone else (who is difficult to reach...) and is actively being used. Now I would like to add a new user, but get stuck with insufficient access.
The command I tried for adding a user is the following:
ldapadd -H ldap://servername -D "cn=admin,ou=..." -W -f ldap-userfile
The response I get is
adding new entry "cn=username,ou=..."
ldap_add: Insufficient access (50)
additional info: no write access to parent
The info to use in the above command I got from
ldapsearch -x -LLL uid=*
and this was the only one with admin
in the name.
Note: I am root on the server where ldap is installed, so I can do pretty much anything. The only thing I should avoid is permanently changing any passwords, as others have to perform some tasks as well.
I did have a look at /etc/openldap, but to no avail. I have no clue about openldap, so it does not help me. Under /etc/openldap/certs/password
I can find a password, but I have no idea of what to use with it.
If it helps: The server is running CentOS 6.10, openldap version is 2.4.40.
EDIT: SOLVED See my own answer below.