[Samba] Solved - was: Re: How to get rid of misspelled DNA entry?
Rowland Penny
rowlandpenny at googlemail.com
Sun Mar 8 16:12:06 MDT 2015
On 08/03/15 22:06, Tim wrote:
> Anyone checked/reproduced this steps with ADSI Editor?
>
> Regards
> Tim
>
> Am 8. März 2015 23:00:33 MEZ, schrieb Peter Serbe <peter at serbe.ch>:
>> Easy job with the right tool!
>>
>> Open Apache Directory Studio, select the LDAP browser -> New Connection
>>
>> Enter the server/hostname: dc1.samdom.com -> next
>> Select simple authentication, user: samdom\administrator, password
>> Check authentication and connect.
>>
>> Browse to the corresponding DNS entry:
>>
>> LDAP-Browser
>> Root DSE
>> DC=DomainDnsZones,DC=samdom,DC=com
>> CN=MicrosoftDNS
>> DC=1.168.192.in-addr.arpa
>> DC=21
>>
>> See the attribute dnsRecord (here: two of them), which is binary data.
>> A double click opens a hex editor, a right clock opens the context
>> menu, which allows to delete the offending entry. Delete - and done.
>>
>> Thank You again Sebastian for the great tip.
>> Maybe LAM would have done the job, too. But it was extremely easy
>> in Apache Directory Studio.
>>
>> Best regards
>> Peter
>>
>>
>>
>> Marc Muehlfeld schrieb am 08.03.2015 21:13:
>>
>>> Hello Sebastian,
>>>
>>> Am 08.03.2015 um 20:33 schrieb Sebastian Henrich:
>>>> I found a way to delete these ghost entries. All you need is an LDAP
>>>> tool like Apache Directory Studio. Then you connect via LDAP to the
>> AD.
>>>> Inside the LDAP tree is a subtree named msdns (or similiar, I'm not
>> able
>>>> to access my workstation at the moment). There you can find the
>> buggy
>>>> entry and delete it. Before deleting something it's perhaps a good
>> idea
>>>> to make a backup of the samba configuration, especially the files
>> under
>>>> /var/lib/samba/private/sam.ldb.d where the configuration is stored.
>>>>
>>>> If you need a detailed howto or somebody wants to add this to the
>> wiki,
>>>> let me know.
>>>
>>> It would be great if you could provide some details about the
>> problems
>>> and about the steps to solve it.
>>>
>>> Currently I'm very busy, but I'll collect that information and try to
>>> find a good place for it in our documentation as soon as possible.
>>>
>>>
>>> Regards,
>>> Marc
>>>
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions: https://lists.samba.org/mailman/options/samba
I think it would be easier to:
ldbedit -e nano -H /var/lib/samba/private/sam.ldb --cross-ncs -b
"DC=1.168.192.in-addr.arpa,CN=MicrosoftDNS,DC=DomainDnsZones,DC=samdom,DC=com"
"(DC=21)"
On a DC.
Rowland
More information about the samba
mailing list