summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/provision/sambadns.py
AgeCommit message (Collapse)AuthorFilesLines
2013-03-02Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij1-1135/+0
Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Mar 2 03:57:34 CET 2013 on sn-devel-104
2013-02-19scripting: Make tdb_copy a common util function in samba.tdb_utilAndrew Bartlett1-20/+1
This will allow samba_upgradeprovision to also call it. Andrew Bartlett Reviewed-by: Matthieu Patou <mat@samba.org>
2013-02-19scripting: Make tdb_copy use the python subprocess moduleAndrew Bartlett1-7/+9
This makes the code more robust to spaces in the file names (etc). Andrew Bartlett Reviewed-by: Matthieu Patou <mat@samba.org>
2013-01-27provision: fix nTSecurityDescriptor of containers in the DnsZones (bug #9481)Stefan Metzmacher1-11/+19
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2012-10-11samba.provision.sambadns: Use == to compare strings, not 'is'.Jelmer Vernooij1-1/+1
2012-09-16samba.provision.sambadns: Fix formatting.Jelmer Vernooij1-57/+126
2012-06-24s4-join: Setup correct DNS configurationAndrew Bartlett1-27/+62
This means we do not need to run samba_upgradedns any more. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sun Jun 24 18:10:10 CEST 2012 on sn-devel-104
2012-04-16s4-provision: Update configuration lines for dlz_bind9Amitay Isaacs1-3/+1
This adds configuration lines for BIND versions 9.8.x and 9.9.x. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Mon Apr 16 03:52:14 CEST 2012 on sn-devel-104
2012-03-02provision: dns: TXT Records need a list of strings as inputAmitay Isaacs1-2/+5
2012-02-25Partially revert 1f0298dd1b1a939cb215e7b474178b217f8347f4Jelmer Vernooij1-2/+2
It's fine to catch keyboard interrupts and other kinds of errors when it's done just for resource management, where the error is reraised later. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Feb 25 17:29:34 CET 2012 on sn-devel-104
2012-02-23s4-provision: Fix typo in 9b9fdeefb47f2657c9bb4c2f48318550da510209Andrew Bartlett1-3/+3
This was not found to to a bug in the selftest system. Andrew Bartlett
2012-02-21s4-provision: dns: Add txt DNS recordAmitay Isaacs1-0/+9
2012-02-21s4-provision: dns: Do not re-calculate ntdsguid, use from namesAmitay Isaacs1-15/+1
2012-02-21s4-provision: dns: Refactor population of dns data codeAmitay Isaacs1-56/+98
Code is split in 4 functions - create_dns_legacy - fill_dns_data_legacy - create_dns_partitions - fill_dns_data_partitions This is useful to upgrade dns provision from file based DNS backend to AD based DNS backend.
2012-01-24python: Change except: statement to except Exception:Amitay Isaacs1-2/+2
This way we only catch true exceptions and keyboard interrupts are not caught here. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 24 03:32:40 CET 2012 on sn-devel-104
2012-01-03s4-provision: Fix the problem of DnsProperty values not being set correctlyAmitay Isaacs1-0/+7
DnsProperty can have empty 'data' member. To parse Dnsproperty with empty data, dnsp.idl has a hack as follows: [switch_is(wDataLength?id:DSPROPERTY_ZONE_EMPTY)] dnsPropertyData data; This implies, to set 'data' value, wDataLength has to be set to a non-zero value first. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 3 05:26:32 CET 2012 on sn-devel-104
2012-01-02s4-provision: Fix tdbdump path lookup in make test.Andreas Schneider1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-23s4-provision: Set dNSProperty attribute for dns zonesAmitay Isaacs1-2/+71
2011-12-13s4-provision: Do not guess partition file names, use @PARTITION recordAmitay Isaacs1-59/+76
This is to avoid duplicating the logic of generating partition file names. (partition file names are encoded partially as per RFC1738). Also, use tdb_copy() instead of filesystem copy function to copy database files, which guarantees correct database copy. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Dec 13 03:28:03 CET 2011 on sn-devel-104
2011-12-13s4-provision: Extract common utility routines in separate fileAmitay Isaacs1-40/+12
2011-12-13s4-provision: CN=MicrosoftDNS,CN=System container is in forest and not domainAmitay Isaacs1-10/+10
2011-11-29s4-provision: Fix the security ace for DnsAdmins group on DNS recordsAmitay Isaacs1-12/+19
Find the objectSid for DnsAdmins group and use that instead of a fixed sid. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Nov 29 07:38:06 CET 2011 on sn-devel-104
2011-11-29s4-provision: Create a samdb copy for access by dlz_bind9 moduleAmitay Isaacs1-55/+100
This creates a copy of rootdse, configuration and schema partitions for dlz_bind9 use in dns/ directory. Since dlz_bind9 requires write access to DNS partitions (DomainDnsZones and ForestDnsZones), those partitions are hard-linked (or symlinked) to the actual partitions. An empty domain partition is created so samdb layer can work.
2011-11-16provision: Set the security descriptor while creating partitionsAmitay Isaacs1-12/+2
With Matthieu's patch, the setting of security descriptor on partition dn at create time works correctly. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Nov 16 08:54:25 CET 2011 on sn-devel-104
2011-11-09s4-provision: Create ldap records for DNS partitions similar to windowsAmitay Isaacs1-1/+1
this allows easy comparison between windows and samba ldap trees Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Nov 9 08:27:46 CET 2011 on sn-devel-104
2011-11-09s4-provision: Set security descriptor for DNS recordsAmitay Isaacs1-17/+102
2011-11-08s4-provision: site is passed as an argument to setup_ad_dns()Amitay Isaacs1-1/+0
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Nov 8 06:07:46 CET 2011 on sn-devel-104
2011-11-04s4 provision/dns: Move DNS-related setup to sambadns moduleKai Blin1-3/+189
Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Nov 4 09:15:54 CET 2011 on sn-devel-104
2011-11-04s4 provision/dns: Move secretsdb_setup_dns to the AD DNS specific setupKai Blin1-2/+60
2011-10-20s4-provision: Provision DNS records with correct rankAmitay Isaacs1-18/+23
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-17s4 provision/dns: Clean up os level handlingKai Blin1-10/+12
2011-10-17s4 provision/dns: Clean up backend handlingKai Blin1-6/+13
2011-10-17s4 provision: Reword opinionated dns backend help text, add NONE backendKai Blin1-2/+2
2011-10-17s4 provision: Rename bind9 flatfile backend to BIND9_FLATFILEKai Blin1-2/+2
2011-09-19s4-provision: use get_config_basedn() in DNS setupAndrew Tridgell1-1/+1
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-12s4-provision: Fix the informational message from dns provisioningAmitay Isaacs1-1/+1
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-09-08s4-provision: Fill msDS-NC-Replica-Locations attribute in DNS provisioningAmitay Isaacs1-0/+1
This attribute is required by the hosting requirement. [MS_ADTS].pdf 7.1.2.3.1 DC and Application NC Replica Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Sep 8 02:04:51 CEST 2011 on sn-devel-104
2011-09-08s4-provision: Make DNS entries consistent with dns_update scriptAmitay Isaacs1-4/+4
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-09-08s4-provision: Reworked DNS provisioning to support AD DNS schemaAmitay Isaacs1-114/+435
This changes configure DNS partitions used by AD DNS and populate with relevant entries. This has an advantage that Windows can replicate these partitions and set up dns server using them. In addition, these partitions are used by bind9_dlz module to query zone information directly and do not need to create text database for dynamic zones. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-07s4 provision: Add some of the AD-specific DNS records to the directoryKai Blin1-0/+231
Signed-off-by: Kai Blin <kai@samba.org> Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Thu Jul 7 02:29:53 CEST 2011 on sn-devel-104