Bug 10205 - Error while samba_upgradedns - samba 4.1
Summary: Error while samba_upgradedns - samba 4.1
Status: NEW
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
Depends on:
Reported: 2013-10-15 11:42 UTC by Elton
Modified: 2013-10-15 11:42 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Elton 2013-10-15 11:42:09 UTC
Im try to upgrade dns backend to BIND9_DLZ, while running this exception is raised:

root@samba-server:~# samba_upgradedns --dns-backend=BIND9_DLZ
Reading domain information
DNS accounts already exist
No zone file /usr/local/samba/private/dns/tavaresesouza.local.zone
DNS records will be automatically created
Creating DNS partitions
Looking up IPv4 addresses
Looking up IPv6 addresses
Traceback (most recent call last):
  File "/usr/local/samba/sbin/samba_upgradedns", line 342, in <module>
  File "/usr/local/samba/lib/python2.7/site-packages/samba/provision/sambadns.py", line 934, in create_dns_partitions
    names.configdn, names.serverdn)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/provision/sambadns.py", line 240, in setup_dns_partitions
    "SECDESC"      : b64encode(descriptor)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/provision/common.py", line 50, in setup_add_ldif
    ldb.add_ldif(data, controls)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/__init__.py", line 224, in add_ldif
    self.add(msg, controls)
_ldb.LdbError: (68, 'Entry DC=DomainDnsZones,DC=tavaresesouza,DC=local already exists')