1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/python/samba
Andrew Bartlett 75eb2e3a09 join.py Add DNS records at domain join time
This avoids issues getting replication going after the DC first starts
as the rest of the domain does not have to wait for samba_dnsupdate to
run successfully

We do not just run samba_dnsupdate as we want to strictly
operate against the DC we just joined:
 - We do not want to query another DNS server
 - We do not want to obtain a Kerberos ticket for the new DC
   (as the KDC we select may not be the DC we just joined,
   and so may not be in sync with the password we just set)
 - We do not wish to set the _ldap records until we have started
 - We do not wish to use NTLM (the --use-samba-tool mode forces
   NTLM)

The downside to using DCE/RPC rather than DNS is that these will
be regarded as static entries, and (against windows) have a the ACL
assigned for static entries.  However this is still better than no
DNS at all.

Because some tests want a DNS record matching their own name
this fixes some tests and removes entires from knownfail

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sun Jun 11 02:04:52 CEST 2017 on sn-devel-144
2017-06-11 02:04:51 +02:00
..
kcc KCC: avoid infinite recursion when edgelist contains self 2016-12-01 05:54:24 +01:00
netcmd provision: Move default handler for site=None down into dc_join object creation 2017-06-10 21:48:21 +02:00
provision provision: Update root DNS servers list 2017-06-09 05:43:21 +02:00
samba3 python: Remove ntdb references 2015-03-17 11:30:51 +01:00
subunit python: samba.subunit.run: Fix Python 3 compatibility. 2016-12-01 05:54:21 +01:00
tests selftest: Add test confirming join-created DNS entries can be modified as the DC 2017-06-10 21:48:22 +02:00
web_server Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
__init__.py python: Add provisioning support for MIT KDC in samba-tool 2017-04-29 23:31:11 +02:00
common.py python/dsdb_dn: Add a generic get_bytes method on DNs 2017-03-13 05:10:10 +01:00
compat.py python: Make top-level samba modules Python 3 compatible 2017-03-10 07:31:11 +01:00
dbchecker.py dbcheck: Improve dbcheck to find (and may fix) dangling msDS-RevealedUsers 2017-03-13 05:10:12 +01:00
descriptor.py join.py: Set NT ACL on crossRef object for new partition 2014-09-02 14:15:54 +02:00
dnsserver.py python: Move dnsserver helper functions into samba.dnsserver 2017-02-23 11:36:21 +01:00
drs_utils.py python: Move partial replication logic into drs_utils.py 2017-02-23 11:36:21 +01:00
getopt.py python: samba.getopt: Port module to Python 3 compatible form 2017-03-10 07:31:12 +01:00
hostconfig.py Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
idmap.py Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
join.py join.py Add DNS records at domain join time 2017-06-11 02:04:51 +02:00
ms_display_specifiers.py Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
ms_schema.py Add missing import of sys in ms_schema.py 2017-02-21 09:51:18 +01:00
ndr.py python:ndr: add ndr_{pack,unpack,print}_{in,out} helper functions 2016-10-26 11:20:19 +02:00
ntacls.py samba-tool: add command to dump dosinfo xattr from a file 2015-09-29 06:00:49 +02:00
remove_dc.py pydns: Also return the DN of the LDB object when finding a DNS record 2017-06-10 21:48:20 +02:00
samdb.py dns_server: clobber MNAME in the SOA 2017-06-10 21:48:21 +02:00
schema.py Fix more pep8 issues in code I touched recently. 2014-10-14 06:44:06 +02:00
sd_utils.py python: Allow sd_utils to take a Dn object, not just a string DN 2017-06-10 21:48:20 +02:00
sites.py python/sites: Rework site DN construction 2015-12-24 04:09:29 +01:00
subnets.py samba-tool: add sites subnet subcommands 2015-12-24 04:09:29 +01:00
tdb_util.py Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
upgrade.py classicupgrade: Avoid needing to quote CN values in an DN, use dn.set_component() 2016-05-11 03:47:04 +02:00
upgradehelpers.py samba-tool:provision: use generate_random_machine_password() for machine passwords 2017-02-21 16:09:22 +01:00
xattr.py Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00