I am learning LDAP using Ubuntu 24.04 and am stumped by the following:
- LDAP password has been set during
sudo dpkg-reconfigure slapd
- Created
base.ldif
:
dn: ou=people,dc=vmvm,dc=comobjectClass: organizationalUnitou: peopledn: ou=groups,dc=vmvm,dc=comobjectClass: organizationalUnitou: groups
- Added successfully, i.e. LDAP password is correct
$ ldapadd -x -D cn=admin,dc=vmvm,dc=com -W -f base.ldifEnter LDAP Password:adding new entry "ou=people,dc=vmvm,dc=com"adding new entry "ou=groups,dc=vmvm,dc=com"
- Verified using
ldapsearch
:
$ ldapsearch -xLLL -H ldap:// -b "dc=vmvm,dc=com"dn: dc=vmvm,dc=comobjectClass: topobjectClass: dcObjectobjectClass: organizationo: vmdc: vmvmdn: ou=people,dc=vmvm,dc=comobjectClass: organizationalUnitou: peopledn: ou=groups,dc=vmvm,dc=comobjectClass: organizationalUnitou: groups$ ldapsearch -xLLL -b "ou=groups,dc=vmvm,dc=com"dn: ou=groups,dc=vmvm,dc=comobjectClass: organizationalUnitou: groups
- Now when I try to delete
ou=groups,dc=vmvm,dc=com
, it fails because suddenly my LDAP password is wrong!
$ ldapdelete -D ou=groups,dc=vmvm,dc=com -WEnter LDAP Password:ldap_bind: Invalid credentials (49)$ ldapdelete "ou=groups,dc=vmvm,dc=com" -WEnter LDAP Password:SASL/SCRAM-SHA-512 authentication startedldap_sasl_interactive_bind: Invalid credentials (49) additional info: SASL(-13): user not found: no secret in database
Any advice on what am I doing wrong here?
NB: when I set LDAP password during installation, there was no mention of admin account name -- it only asks me for password. Is this password tied to a default root
/admin
LDAP entity?