Score:0

SAMBA 4 CN with multiple spaces, cannot modify, delete but can view

cn flag

Samba with internal LDAP (not openLDAP) configured as AD-DC

I have contacts created using CN={name} Contacts that have multiple spaces in the names cannot be edited, deleted or removed from their groups, for example:

DN: CN=My  Name,OU=Contacts,OU=Base,DC=Test,DC=Local

Using LDAP Admin, Apache Directory Studio or LDB on the server all fail to rename, delete or modify the entry. ldbsearch finds the object, ldbedit can also find and show the entry for editing but refuses to modify the entry.

Doing

ldbrename -H sam.ldb 'CN=My  Name,OU=Contact,OU=Base,DC=Test,DC=Local' 'CN=My Name,OU=Contacts,DC=Test,DC=Local'

Returns entry does not exist!

Is there any way I can just delete these entries safely and recreate them?

Score:0
bb flag

I had the same problem. Running

samba-tool dbcheck --reindex

fixed the problem. I had to run this on all DCs. I was then able to delete users in a normal fashion.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.