summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/provision/sambadns.py
Commit message (Collapse)AuthorAgeFilesLines
* Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij2013-03-021-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
* scripting: Make tdb_copy a common util function in samba.tdb_utilAndrew Bartlett2013-02-191-20/+1
| | | | | | | | This will allow samba_upgradeprovision to also call it. Andrew Bartlett Reviewed-by: Matthieu Patou <mat@samba.org>
* scripting: Make tdb_copy use the python subprocess moduleAndrew Bartlett2013-02-191-7/+9
| | | | | | | | This makes the code more robust to spaces in the file names (etc). Andrew Bartlett Reviewed-by: Matthieu Patou <mat@samba.org>
* provision: fix nTSecurityDescriptor of containers in the DnsZones (bug #9481)Stefan Metzmacher2013-01-271-11/+19
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* samba.provision.sambadns: Use == to compare strings, not 'is'.Jelmer Vernooij2012-10-111-1/+1
|
* samba.provision.sambadns: Fix formatting.Jelmer Vernooij2012-09-161-57/+126
|
* s4-join: Setup correct DNS configurationAndrew Bartlett2012-06-241-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
* s4-provision: Update configuration lines for dlz_bind9Amitay Isaacs2012-04-161-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
* provision: dns: TXT Records need a list of strings as inputAmitay Isaacs2012-03-021-2/+5
|
* Partially revert 1f0298dd1b1a939cb215e7b474178b217f8347f4Jelmer Vernooij2012-02-251-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
* s4-provision: Fix typo in 9b9fdeefb47f2657c9bb4c2f48318550da510209Andrew Bartlett2012-02-231-3/+3
| | | | | | This was not found to to a bug in the selftest system. Andrew Bartlett
* s4-provision: dns: Add txt DNS recordAmitay Isaacs2012-02-211-0/+9
|
* s4-provision: dns: Do not re-calculate ntdsguid, use from namesAmitay Isaacs2012-02-211-15/+1
|
* s4-provision: dns: Refactor population of dns data codeAmitay Isaacs2012-02-211-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.
* python: Change except: statement to except Exception:Amitay Isaacs2012-01-241-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
* s4-provision: Fix the problem of DnsProperty values not being set correctlyAmitay Isaacs2012-01-031-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
* s4-provision: Fix tdbdump path lookup in make test.Andreas Schneider2012-01-021-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-provision: Set dNSProperty attribute for dns zonesAmitay Isaacs2011-12-231-2/+71
|
* s4-provision: Do not guess partition file names, use @PARTITION recordAmitay Isaacs2011-12-131-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
* s4-provision: Extract common utility routines in separate fileAmitay Isaacs2011-12-131-40/+12
|
* s4-provision: CN=MicrosoftDNS,CN=System container is in forest and not domainAmitay Isaacs2011-12-131-10/+10
|
* s4-provision: Fix the security ace for DnsAdmins group on DNS recordsAmitay Isaacs2011-11-291-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
* s4-provision: Create a samdb copy for access by dlz_bind9 moduleAmitay Isaacs2011-11-291-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.
* provision: Set the security descriptor while creating partitionsAmitay Isaacs2011-11-161-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
* s4-provision: Create ldap records for DNS partitions similar to windowsAmitay Isaacs2011-11-091-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
* s4-provision: Set security descriptor for DNS recordsAmitay Isaacs2011-11-091-17/+102
|
* s4-provision: site is passed as an argument to setup_ad_dns()Amitay Isaacs2011-11-081-1/+0
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Nov 8 06:07:46 CET 2011 on sn-devel-104
* s4 provision/dns: Move DNS-related setup to sambadns moduleKai Blin2011-11-041-3/+189
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Nov 4 09:15:54 CET 2011 on sn-devel-104
* s4 provision/dns: Move secretsdb_setup_dns to the AD DNS specific setupKai Blin2011-11-041-2/+60
|
* s4-provision: Provision DNS records with correct rankAmitay Isaacs2011-10-201-18/+23
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4 provision/dns: Clean up os level handlingKai Blin2011-10-171-10/+12
|
* s4 provision/dns: Clean up backend handlingKai Blin2011-10-171-6/+13
|
* s4 provision: Reword opinionated dns backend help text, add NONE backendKai Blin2011-10-171-2/+2
|
* s4 provision: Rename bind9 flatfile backend to BIND9_FLATFILEKai Blin2011-10-171-2/+2
|
* s4-provision: use get_config_basedn() in DNS setupAndrew Tridgell2011-09-191-1/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: Fix the informational message from dns provisioningAmitay Isaacs2011-09-121-1/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-provision: Fill msDS-NC-Replica-Locations attribute in DNS provisioningAmitay Isaacs2011-09-081-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
* s4-provision: Make DNS entries consistent with dns_update scriptAmitay Isaacs2011-09-081-4/+4
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-provision: Reworked DNS provisioning to support AD DNS schemaAmitay Isaacs2011-09-081-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>
* s4 provision: Add some of the AD-specific DNS records to the directoryKai Blin2011-07-071-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