Hello all! I have test database:
dn: olcDatabase=mdb,cn=config objectClass: olcDatabaseConfig objectClass: olcMdbConfig olcDatabase: mdb olcSuffix: dc=aleksio,dc=com olcRootDN: cn=Manager,dc=aleksio,dc=com # Cleartext passwords, especially for the rootdn, should # be avoided. See slappasswd(8) and slapd-config(5) for details. # Use of strong authentication encouraged. olcRootPW: 1 # The database directory MUST exist prior to running slapd AND # should only be accessible by the slapd and slap tools. # Mode 700 recommended. olcDbDirectory: /usr/local/var/openldap-data # Indices to maintain olcDbIndex: objectClass eq
I created top record:
dn: dc=aleksio,dc=com objectClass: dcObject objectClass: organization dc: aleksio o: myorg
Record successfully created, I can search this record:
~# ldapsearch -x -w 1 o # extended LDIF # # LDAPv3 # base <dc=aleksio,dc=com> (default) with scope subtree # filter: (objectclass=*) # requesting: o #
# aleksio.com dn: dc=aleksio,dc=com o: myorg
# search result search: 2 result: 0 Success
# numResponses: 2 # numEntries: 1
Then I try to delete this record: ~# ldapdelete -x -w 1 'dc=aleksio,dc=com' ldap_delete: No such object (32)
If I create child record in DN dc=aleksio,dc=com I can successfully delete this child record.
How can I delete root record?