[Samba] Object Could not be displayed

Jo Sutton jsutton at samba.org
Sun Jun 30 22:46:05 UTC 2024


On 27/06/24 5:43 pm, ARUN KUMAR B via samba wrote:
> Hi Cheers,
> 
> Thanks for your information, multiple spaces in the DN having issues while
> deleting object,
> Could you help us how can we permanently delete those User
> 
> Regards,
> 
> Arun Kumar B
> 
> Infrastructure Support Group  | www.dsmsoft.com
> 
> Phone: +91 7871148192
> 
> 
>   *Disclaimer:*
> 
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the sender and
> delete the mail immediately. Please note that any views or opinions
> presented in this email are solely those of the author and do not
> necessarily represent those of the company. Finally, the recipient should
> check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
> 
> 
> On Wed, Jun 26, 2024 at 2:24 PM ARUN KUMAR B <isgarunkumar.b at dsmsoft.net>
> wrote:
> 
>> You removed the second DC from the network, how and why did you do this ?
>>
>> Due to that Backup Domain Controller hardware issues we removed dead DC
>>
>> Arun Kumar B
>>
>> On Wed, Jun 26, 2024 at 1:23 PM ARUN KUMAR B <isgarunkumar.b at dsmsoft.net>
>> wrote:
>>
>>> Hi,
>>>
>>> We have an Centos Stream 9 Samba Domain Controller V4.17.2
>>> We have Backup Domain Controller with global catalog previously used
>>> Centos Stream 9 V4.17.2(*This one totally removed from network*)
>>>
>>> *Samba has been building from Source Package*
>>>
>>> *Initially We have an domain controller from CentOS 7 With Samba 4.8.9
>>> After that we have been upgraded the OS & SAMBA Version*
>>>
>>> *Currently have only one domain controller*
>>>
>>> Few User account it is show this below error message, Managing User
>>> account from Windows RSAT
>>>
>>> Error Message : The Active Directory Domain Service object cannot be
>>> found, It may have been deleted by another user or an Active Directory
>>> Domain Controller may be temporarily unavailable,
>>>
>>> If i try to check ldbsearch from sam.ldb it return the DN Value
>>>
>>> So i'm trying to delete using ldbdel it shows error message
>>>
>>> ldbdel -H /usr/local/samba/private/sam.ldb "CN=JOSPINE RINITAA
>>> CS,OU=HR,DC=chndc,DC=com"
>>>
>>> *Error : delete of 'CN=JOSPINE RINITAA  CS,OU=HR,DC=chndc,DC=com' failed
>>> - (No such object) objectclass: Cannot delete CN=JOSPINE RINITAA
>>> CS,OU=HR,DC=chndc,DC=com, entry does not exist!*
>>>
>>> Trying to Delete Using LDAP Also
>>>
>>> ldbdel -H ldap://chndc.com -U "administrator"  "CN=JOSPINE RINITAA
>>> CS,OU=HR,DC=chndc,DC=com"
>>>
>>> *Error : delete of 'CN=JOSPINE RINITAA  CS,OU=HR,DC=chndc,DC=com' failed
>>> - (No such object) LDAP error 32 LDAP_NO_SUCH_OBJECT -  <00002030:
>>> objectclass: Cannot delete CN=JOSPINE RINITAA  CS,OU=HR,DC=chndc,DC=com,
>>> entry does not exist!> <>*
>>>
>>> If i Try to Create a New User ID(18793) it shows user exist in enterprise
>>>
>>> Could you help us to solve this issue,
>>>
>>> Regards,
>>>
>>> Arun Kumar B
>>>
>>

According to https://bugzilla.samba.org/show_bug.cgi?id=14902#c2, the 
workaround is to run:

samba-tool dbcheck --reindex

and then to try the deletion again.

Cheers,
Jo (she/her)



More information about the samba mailing list