Tim
2015-Mar-08 22:06 UTC
[Samba] Solved - was: Re: How to get rid of misspelled DNA entry?
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
Rowland Penny
2015-Mar-08 22:12 UTC
[Samba] Solved - was: Re: How to get rid of misspelled DNA entry?
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/sambaI 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
Peter Serbe
2015-Mar-08 22:27 UTC
[Samba] Solved - was: Re: How to get rid of misspelled DNA entry?
> 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. > > RowlandWell, not so simple... I tried ldbedit -e vim -H /usr/local/samba/private/sam.ldb --cross-ncs -b "DC=91,DC=41.168.192.in-addr.arpa,CN=MicrosoftDNS,DC=DomainDnsZones,DC=home,DC=serbe,DC=ch" and it looked like this, i.e. the binary data are a bit cumbersome. # editing 1 records # record 1 dn: DC=91,DC=41.168.192.in-addr.arpa,CN=MicrosoftDNS,DC=DomainDnsZones,DC=samdom,DC=com objectClass: top objectClass: dnsNode instanceType: 4 whenCreated: 20150305214111.0Z uSNCreated: 4559 showInAdvancedViewOnly: TRUE name: 91 objectGUID: 330dcc48-eb52-47a2-8ed0-ea4a4815ea2f objectCategory: CN=Dns-Node,CN=Schema,CN=Configuration,DC=home,DC=serbe,DC=ch dc: 91 dnsRecord:: GgAMAAXwAAArAAAAAAAOEAAAAADwZTcAGAQIdmFsa3lyaWUEaG9tZQVzZXJiZQJjaA AwhenChanged: 20150308214558.0Z uSNChanged: 4640 distinguishedName: DC=21,DC=1.168.192.in-addr.arpa,CN=MicrosoftDNS,DC=DomainD nsZones,DC=samdom,DC=com