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
Rowland Penny
2015-Mar-08 22:35 UTC
[Samba] Solved - was: Re: How to get rid of misspelled DNA entry?
On 08/03/15 22:27, Peter Serbe wrote:>> 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 > Well, 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 > A> whenChanged: 20150308214558.0Z > uSNChanged: 4640 > distinguishedName: DC=21,DC=1.168.192.in-addr.arpa,CN=MicrosoftDNS,DC=DomainD > nsZones,DC=samdom,DC=com >Ah yes, sorry, try: ldbedit -e nano -H /var/lib/samba/private/sam.ldb --show-binary --cross-ncs -b "DC=1.168.192.in-addr.arpa,CN=MicrosoftDNS,DC=DomainDnsZones,DC=samdom,DC=com" "(DC=21)" Rowland
Peter Serbe
2015-Mar-08 22:55 UTC
[Samba] Solved - was: Re: How to get rid of misspelled DNA entry?
Rowland Penny schrieb am 08.03.2015 23:35:>> 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. >>> > Ah yes, sorry, try: > > ldbedit -e nano -H /var/lib/samba/private/sam.ldb --show-binary > --cross-ncs -b > "DC=1.168.192.in-addr.arpa,CN=MicrosoftDNS,DC=DomainDnsZones,DC=samdom,DC=com" > "(DC=21)" >OK, this is a second solution to the issue. In this special case I found the graphical approach however more appealing then working on the command line, as navigating to the correct ldb entry IMHO is much easier. But anyway, once You know what to look for, it becomes easy... Thank You all. As typos happen the information might really apply for being written in the wiki. I used an uncomfortable keyboard down in the basement... Best regards Peter