missing /usr/local/samba/private/dns

Daniele Dario d.dario76 at gmail.com
Tue Mar 13 06:12:04 MDT 2012


Hi Amitay,

On Tue, 2012-03-13 at 20:03 +1100, Amitay Isaacs wrote:
> Hi Daniele,
> 
> On Tue, Mar 13, 2012 at 6:40 PM, Daniele Dario <d.dario76 at gmail.com> wrote:
> > Hi Amitay,
> >
> > On Tue, 2012-03-13 at 12:13 +1100, Amitay Isaacs wrote:
> >> Hi Greg,
> >>
> >> On Sat, Mar 10, 2012 at 2:45 PM, Greg Dickie <greg at justaguy.ca> wrote:
> >> >
> >> > Sounds great. Totally ready to be the guinea pig, just let me know what
> >> > you need. One small question though. Is the ultimate goal to use a
> >> > builtin DNS server? I thought this bind9 implementation was pretty cool.
> >> > Is it missing anything that's required?
> >> >
> >> > Thanks for the quick response guys,
> >> > Greg
> >>
> >> I have updated samba_upgradedns script now to handle upgrading dns
> >> provision even after domain join. The new code is in my dns-wip
> >> branch.
> >>
> >>   git://git.samba.org/amitay/samba.git
> >>
> >> You can run samba_upgradedns multiple times without any side effects.
> >> Let me know if that works for you.
> >>
> >> The ultimate goal is to use built-in dns server, so that samba does
> >> not have to depend on external programs (BIND) for running. For time
> >> being, BIND9 option is supported till built-in dns server becomes
> >> fully operational.
> >>
> >> Amitay.
> >
> > do you mean that is possible to use upgradedns to provision the dns
> > partitions on a samba4 DC already joined to a domain?
> 
> Yes, that's correct. You can run samba_upgradedns on any provision and
> it should upgrade it to use AD based backend.
> 
> >
> > If I catched I will use it on my secondary DC (primary is also samba4)
> > to have also a secondary DNS. Does it also start replication of the dns
> > partitions between the DCs?
> 
> DNS partitions do get replicated, but you might have to restart the
> secondary DC to get them correctly replicating. There is an issue
> regarding msDs-hasMasterNCs attribute, which has yet to be resolved. I
> haven't tried to set up a DNS server on a secondary DC using
> replicated DNS as yet.
> 
> > If yes, which is the best way to proceed?
> > My idea is to upgrade secondary DC to latest git source, pull your
> > branch to obtain upgradedns than run it from the secondary DC.
> 
> You can use my dns-wip branch. First make sure that the partitions are
> getting replicated. Once you confirm that, run samba_dnsupgrade on the
> secondary DC to setup a AD database for BIND in dns/ directory.
> Finally run BIND with DLZ on secondary DC. Obviously this hasn't been
> tested, so your feedback is most welcome. :)
> 
> Amitay.

I've cloned into your git but I'm finding some troubles:
first some libs and modules were missing (all modules which are in
dns-wip/bin/python/ directory):
ldb.so  samba  talloc.so  tdb.so  tevent.py  _tevent.so
I copied them in /usr/lib/python2.7/ and running samba_upgradedns I get:

[root at kdc02:/usr/local/samba/private]# samba_upgradedns --verbose
lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
params.c:pm_process() - Processing configuration file
"/usr/local/samba/etc/smb.conf"
Reading domain information
lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
params.c:pm_process() - Processing configuration file
"/usr/local/samba/etc/smb.conf"
Looking up IPv4 addresses
IPv4 addresses: 192.168.12.2
Looking up IPv6 addresses
No zone file /usr/local/samba/private/dns/saitelitalia.local.zone
DNS records will be automatically created
Creating DNS partitions
DN: DC=DomainDnsZones,DC=saitelitalia,DC=local is a NC
Traceback (most recent call last):
  File "/usr/local/samba/sbin/samba_upgradedns", line 346, in <module>
    dnsadmins_sid)
  File "/usr/lib/python2.7/samba/provision/sambadns.py", line 876, in
create_dns_partitions
    names.configdn, names.serverdn)
  File "/usr/lib/python2.7/samba/provision/sambadns.py", line 206, in
setup_dns_partitions
    "SECDESC"      : b64encode(descriptor)
  File "/usr/lib/python2.7/samba/provision/common.py", line 52, in
setup_add_ldif
    ldb.add_ldif(data, controls)
  File "/usr/lib/python2.7/samba/__init__.py", line 226, in add_ldif
    self.add(msg, controls)
_ldb.LdbError: (68, 'ldb_wait: Entry already exists (68)')

What's happening?

Daniele.



More information about the samba-technical mailing list