summaryrefslogtreecommitdiffstats
path: root/source4/scripting/bin/samba_dnsupdate
Commit message (Collapse)AuthorAgeFilesLines
* samba_dnsupdate: Allow the tool to work in 'make test'.Andreas Schneider2014-12-181-2/+5
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* samba_dnsupdate: Always fill out the nameservers of a dns object.Andreas Schneider2014-12-181-3/+7
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Move dnspython to third_party.Jelmer Vernooij2014-11-121-1/+1
| | | | | | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Nov 12 22:40:53 CET 2014 on sn-devel-104
* samba_dnsupdate: Look for ForestDnsZones in the right placeAndrew Bartlett2014-09-271-1/+3
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Sep 27 22:09:29 CEST 2014 on sn-devel-104
* s4:samba_dnsupdate: provide more substitution variables e.g. IF_RODCStefan Metzmacher2014-08-261-0/+57
| | | | | | | | | This will make the dns_update_list more flexible. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9831 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:samba_dnsupdate: don't try to be smart when verifying NS recordsStefan Metzmacher2014-08-261-19/+0
| | | | | | | | | | | We can't rely on the DNS delegation to be correct in the parent domain. What we really want is to check if we already have registered ourself as a NS record in our own domain. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9831 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:samba_dnsupdate: cache the already registered recordsStefan Metzmacher2014-08-261-16/+101
| | | | | | | | | | | This way we can delete records which are not used anymore. E.g. if the ip address changed. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9831 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:samba_dnsupdate: fix dnsobj.__str__()Stefan Metzmacher2014-08-261-5/+5
| | | | | | | | | We should not implicitly use the global variable 'd'. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9831 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:samba_dnsupdate: don't lower case the registered namesStefan Metzmacher2014-08-261-5/+5
| | | | | | | | | This matches Windows... Bug: https://bugzilla.samba.org/show_bug.cgi?id=9831 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Avoid leaking temp file if an exception is raisedJean Raby2013-04-111-1/+5
| | | | | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Apr 11 06:06:03 CEST 2013 on sn-devel-104
* Remove incomplete check for IPv6 link-local addresses.Landon Fuller2013-03-021-3/+1
| | | | | | | | | | | | | This has been superceded by a check for link-local addresses in get_interfaces() Signed-Off-By: Landon Fuller <landonf@bikemonkey.org> Reviewed-By: Richard Sharpe <realrichardsharpe@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Mar 2 08:38:54 CET 2013 on sn-devel-104
* samba_dnsupdate: set KRB5_CONFIG for nsupdate commandBjörn Baumbach2013-01-091-4/+5
| | | | | | | | | Let nslookup use krb5.conf, which is set in our KRB5_CONFIG. Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4-python: Various formatting fixes.Jelmer Vernooij2012-09-271-5/+10
| | | | | | * Trailing whitespace * use of "==" where "is" should be used * double spaces
* samba_dnsupdate: Safely update/create names for Samba3 targets as wellAndrew Bartlett2012-09-261-4/+14
| | | | | | | | | | This avoids unlocked writes to the dns_hosts_file, and may fix some of our issues on the build farm where large numbers of tests fail due to failed name resolution. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Sep 26 05:48:25 CEST 2012 on sn-devel-104
* samba_dnsupdate: Move to using tmpfile/rename to keep the dns_hosts_file ↵Andrew Bartlett2012-09-261-3/+10
| | | | | | | | consistent This may be the cause of some of the large failure modes on the build farm. Andrew Bartlett
* samba_dnsupdate: Mention contents of invalid line when encountering parsing ↵Jelmer Vernooij2012-03-131-2/+5
| | | | | | error. Bug: https://bugzilla.samba.org/show_bug.cgi?id=8809
* samba_dnsupdate: Raise proper exception when getting unexpected DNS reply.Jelmer Vernooij2012-03-131-2/+1
|
* samba_dnsupdate: Use docstrings, which show up nicely in API docs.Jelmer Vernooij2012-03-131-21/+17
|
* s4-dnsupdate: Do not attempt to add the PDC names if we are not a PDCAndrew Bartlett2011-12-071-5/+11
|
* s4-dns: added --no-credentials option to samba_dnsupdateAndrew Tridgell2011-11-221-3/+10
| | | | | | | | this is for a user who is doing DNS updates via key files rather than GSSAPI. This allows the update to go through without a kerberos error Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Nov 22 06:34:59 CET 2011 on sn-devel-104
* s4-dns: started adding support for auto-creation of NS glue recordAndrew Tridgell2011-09-221-1/+37
| | | | | when we create a new subdomain we need to create a NS glue record in the parent domain pointing at our subdomain
* s4-dns: cope with duplicate entries in dns_update_listAndrew Tridgell2011-08-251-1/+5
| | | | | | this is needed for when DNSFOREST and DNSDOMAIN are the same Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* s4-dns/spn: fixed DNS and SPN scripts to setup forest DNS nameAndrew Tridgell2011-08-251-3/+3
|
* s4-dns: fixed base search on domain NCAndrew Tridgell2011-08-251-1/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-samba_dnsupdate: set environment via the env parameterMatthieu Patou2011-06-221-1/+1
| | | | | I faced a situation where the os.environ("KRB5CCNAME") = ... didn't seems to be effective
* s4-param Remove 'sam database' parameterAndrew Bartlett2011-06-061-1/+1
| | | | | | This now just relies on the private dir parameter, which remains. Andrew Bartlett
* s4-ipv6: don't add link local addresses to DNSAndrew Tridgell2011-06-061-1/+3
| | | | these make no sense as DNS addresses
* s4-ipv6: added IPv6 support to samba_dnsupdateAndrew Tridgell2011-06-061-7/+31
|
* s4-samba_dnsupate Fix syntax errorAndrew Bartlett2011-04-071-2/+1
| | | | | | | | | | This particular sub-part of the script isn't tested in 'make test' due to it making real changes to DNS. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 7 08:51:11 CEST 2011 on sn-devel-104
* samba_dnsupdate: Don't use subprocess.check_call, it isn't in python 2.4Andrew Bartlett2011-04-071-1/+8
| | | | RHEL5 and clones use python 2.5
* python: use os.environ[] instead of os.putenv()Andrew Tridgell2011-02-221-4/+4
| | | | | | | using os.putenv() causes too much confusion, as it doesn't update os.getenv() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-param Allow +foo syntax in smb.conf list parsingAndrew Bartlett2010-12-081-2/+3
| | | | | | | | | | The idea here is to allow an smb.conf file to work from the defaults, rather than override them. For example, 'server services = +openchange'. Pair-Programmed-With: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Dec 8 09:39:06 CET 2010 on sn-devel-104
* s4-dns: catch all DNS exceptions in samba_dnsupdateAndrew Tridgell2010-12-011-4/+8
|
* s4-dns: added support for --fail-immediately for RODC netlogon dns updatesAndrew Tridgell2010-11-181-0/+7
|
* s4-dns: catch more expections in samba_dnsupdateAndrew Tridgell2010-11-171-1/+5
|
* s4-dns: added --fail-immediately option to samba_dnsupdateAndrew Tridgell2010-11-151-1/+13
| | | | this is useful for manual testing
* s4-dns: fixed registration of multiple IPs in samba_dnsupdateAndrew Tridgell2010-11-151-1/+1
| | | | | | bitten by python object references again! Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dns: send A record updates via TKEYAndrew Tridgell2010-09-301-1/+6
|
* s4-kerberos: use TZ=GMT when we are invoking krb5 code in helpersAndrew Tridgell2010-09-291-0/+6
| | | | | | | | | | | Our helper scripts can fail on Fedora with the PDT timezone (Western USA). This is the same issue we found with Heimdal earlier today, the 24 second difference between GMT and UTC, but this time in MIT Kerberos as linked into bind9. By forcing TZ=GMT in these scripts we avoid the problem Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dns: added --update-list option to samba_dnsupdateAndrew Tridgell2010-09-271-8/+14
| | | | this allows us to use it for RODC netlogon updates
* s4-dns: use the generated krb5.conf in samba_dnsupdateAndrew Tridgell2010-09-271-0/+5
| | | | | | | this gives one less thing that an admin can get wrong Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Sep 27 02:35:29 UTC 2010 on sn-devel-104
* s4-dns: fixed the dns_domain_info_type for netlogon DNS callsAndrew Tridgell2010-09-191-3/+14
| | | | w2k8r2 does check this field (WSPP docs need an update)
* s4-dns: added --all-names option to samba_dnsupdateAndrew Tridgell2010-09-191-1/+2
| | | | this forces the re-registration of all names
* s4-rodc: added RODC DNS update support to samba_dnsupdateAndrew Tridgell2010-09-191-3/+70
| | | | for DNS updates that have a netlogon equivalent, send via netlogon
* s4-dns: use a non-forwardable ticket in samba_dnsupdateAndrew Tridgell2010-09-161-2/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dns: cope better with comments in dns_update_listAndrew Tridgell2010-04-271-7/+4
|
* s4-dns: use neater python for reading linesAndrew Tridgell2010-04-191-7/+2
| | | | files are line iterators
* s4-python: More cleanups.Jelmer Vernooij2010-04-081-7/+2
|
* s4-python: Move samdb_ntds_objectGUID to pydsdb.Jelmer Vernooij2010-04-071-3/+3
|
* s4-python: Install external packages to a different directory but import intoJelmer Vernooij2010-04-011-1/+1
| | | | the normal namespace when the system doesn't have it available.