samba4: can't delete user object: entry does not exist!

Thomas Mueller thomas at chaschperli.ch
Tue Nov 6 23:10:44 MST 2012


hi

i've got some "ghost" user object. If I run ldbedit I can see the entry 
"CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch". If I remove
and save it, the following error message is shown:

# ldbedit --url ldaps://s001.d.company.ch -kyes
failed to delete CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch 
- LDAP error 32 LDAP_NO_SUCH_OBJECT -  <00002030: objectclass: Cannot delete 
CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch, entry does not 
exist!> <>

It's shown but I can't delete it because it does not exits? :)

Running "samta-tool dbcheck --cross-ncs --fix" doesn't solve it:


# samba-tool dbcheck --cross-ncs --fix
Checking 3491 objects
ERROR: incorrect GUID component for member in object CN=Remote_Desktop_Users,OU=Groups,OU=COMPANY,DC=d,DC=company,DC=ch - <GUID=94c0ce57-d2b8-49bb-9bcd-197cf71b6c81>;<SID=S-1-5-21-1997306639-1387438389-2773859379-1119>;CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch
unable to find object for DN CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch - (No such Base DN: CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch)
Not removing dangling forward link
ERROR: incorrect GUID component for member in object CN=App BMD S100,OU=Groups,OU=COMPANY,DC=d,DC=company,DC=ch - <GUID=94c0ce57-d2b8-49bb-9bcd-197cf71b6c81>;<SID=S-1-5-21-1997306639-1387438389-2773859379-1119>;CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch
unable to find object for DN CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch - (No such Base DN: CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch)
Not removing dangling forward link
ERROR: incorrect GUID component for member in object CN=BMD_MANDANT_BMD1022,OU=Groups,OU=COMPANY,DC=d,DC=company,DC=ch - <GUID=94c0ce57-d2b8-49bb-9bcd-197cf71b6c81>;<SID=S-1-5-21-1997306639-1387438389-2773859379-1119>;CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch
unable to find object for DN CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch - (No such Base DN: CN=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch)
Not removing dangling forward link
ERROR: incorrect GUID component for member in object CN=Domain Users,CN=Users,DC=d,DC=company,DC=ch - <GUID=94c0ce57-d2b8-49bb-9bcd-197cf71b6c81>;cn=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch
unable to find object for DN cn=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch - (No such Base DN: cn=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch)
Not removing dangling forward link
Checked 3491 objects (4 errors)


Interesting: 3x CN=Thomas... and 1x cn=Thomas... . 

So trying to delete with cn=Thomas... instead of CN=Thomas... :

# ldbmodify -kyes --url ldaps://s001.d.company.ch </tmp/delete.ldif 
ERR: (Operations error) "LDAP error 1 LDAP_OPERATIONS_ERROR -  <Attribute 
member already deleted for target GUID 94c0ce57-d2b8-49bb-9bcd-197cf71b6c81>
 <>" on DN cn=Thomas Müller,OU=Users,OU=COMPANY,DC=d,DC=company,DC=ch at 
block before line 2


any hints how I could get rid of this object? 

this domain was started with samba4 alpha17 and is now running 
rc2.

- Thomas



More information about the samba-technical mailing list