Querying DNS info samba4
Greg Dickie
greg at justaguy.ca
Tue Apr 24 13:35:54 MDT 2012
Hi Amitay,
I think I may have figured this out. My AD started out as a 2003 SBS
system so the schemas are a bit different. Looking in the rpcdce code
for DNS I see that dnsserver_init_serverinfo
(rpc_server/dnsserver/dnsutils.c ) is called and starts looking for
CN=MicrosoftDNS,DC=DomainDnsZones,...,
My schema does not have that, the closest I could find is something that
looks like this:
dn:
DC=DomainDnsZones,DC=example.local,CN=MicrosoftDNS,CN=System,DC=example,DC=local
objectClass: top
objectClass: dnsNode
instanceType: 4
whenCreated: 20060831201837.0Z
uSNCreated: 8166
showInAdvancedViewOnly: TRUE
name: DomainDnsZones
objectGUID: aee468f7-e2bd-457d-b15d-63572897fe62
objectCategory:
CN=Dns-Node,CN=Schema,CN=Configuration,DC=example,DC=local
dNSTombstoned: FALSE
dc: DomainDnsZones
whenChanged: 20120424001126.0Z
uSNChanged: 9014
dnsRecord:: BAABAAXwAABa3QYAAAACWAAAAADgAzcAwKipCw==
dnsRecord:: BAABAAXwAABa3QYAAAACWAAAAAC0aDYAwKhCAQ==
dnsRecord:: BAABAAXwAABa3QYAAAACWAAAAAC0aDYAwKhYAQ==
distinguishedName:
DC=DomainDnsZones,DC=example.local,CN=MicrosoftDNS,CN=Sy
stem,DC=example,DC=local
So my question is shouldn't I get a different error or some other indication that samba doesn't
handle the schema? As a followup, should samba handle the schema? The client can talk to the SBS server just fine.
Thanks,
Greg
On Fri, 2012-04-20 at 08:16 +1000, Amitay Isaacs wrote:
> On Fri, Apr 20, 2012 at 1:17 AM, Greg Dickie <greg at justaguy.ca> wrote:
> >
> > Hi Amitay,
> >
> > I don't see anything particularly interesting even bumping log level
> > to 2. It looks like it just won't respond to the DNS endpoint. I don't
> > think it's the client since if I run it again my Win2003 SBS server it
> > works (although I get an exception on missing MaxSa attribute).
> >
> > Thanks for the response, I'll keep digging in the code.
> > Greg
> >
>
> Hi Greg,
>
> Looks like dnsserver RPC endpoint server is not starting. Can you
> check if you have a line in smb.conf for dcerpc_endpoint_servers?
>
> Amitay.
--
Greg Dickie
just a guy
514-983-5400
More information about the samba-technical
mailing list