summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/samba_dnsupdate
AgeCommit message (Collapse)AuthorFilesLines
2013-03-02Remove incomplete check for IPv6 link-local addresses.Landon Fuller1-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
2013-01-09samba_dnsupdate: set KRB5_CONFIG for nsupdate commandBjörn Baumbach1-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>
2012-09-27s4-python: Various formatting fixes.Jelmer Vernooij1-5/+10
* Trailing whitespace * use of "==" where "is" should be used * double spaces
2012-09-26samba_dnsupdate: Safely update/create names for Samba3 targets as wellAndrew Bartlett1-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
2012-09-26samba_dnsupdate: Move to using tmpfile/rename to keep the dns_hosts_file ↵Andrew Bartlett1-3/+10
consistent This may be the cause of some of the large failure modes on the build farm. Andrew Bartlett
2012-03-13samba_dnsupdate: Mention contents of invalid line when encountering parsing ↵Jelmer Vernooij1-2/+5
error. Bug: https://bugzilla.samba.org/show_bug.cgi?id=8809
2012-03-13samba_dnsupdate: Raise proper exception when getting unexpected DNS reply.Jelmer Vernooij1-2/+1
2012-03-13samba_dnsupdate: Use docstrings, which show up nicely in API docs.Jelmer Vernooij1-21/+17
2011-12-07s4-dnsupdate: Do not attempt to add the PDC names if we are not a PDCAndrew Bartlett1-5/+11
2011-11-22s4-dns: added --no-credentials option to samba_dnsupdateAndrew Tridgell1-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
2011-09-22s4-dns: started adding support for auto-creation of NS glue recordAndrew Tridgell1-1/+37
when we create a new subdomain we need to create a NS glue record in the parent domain pointing at our subdomain
2011-08-25s4-dns: cope with duplicate entries in dns_update_listAndrew Tridgell1-1/+5
this is needed for when DNSFOREST and DNSDOMAIN are the same Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-08-25s4-dns/spn: fixed DNS and SPN scripts to setup forest DNS nameAndrew Tridgell1-3/+3
2011-08-25s4-dns: fixed base search on domain NCAndrew Tridgell1-1/+1
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-06-22s4-samba_dnsupdate: set environment via the env parameterMatthieu Patou1-1/+1
I faced a situation where the os.environ("KRB5CCNAME") = ... didn't seems to be effective
2011-06-06s4-param Remove 'sam database' parameterAndrew Bartlett1-1/+1
This now just relies on the private dir parameter, which remains. Andrew Bartlett
2011-06-06s4-ipv6: don't add link local addresses to DNSAndrew Tridgell1-1/+3
these make no sense as DNS addresses
2011-06-06s4-ipv6: added IPv6 support to samba_dnsupdateAndrew Tridgell1-7/+31
2011-04-07s4-samba_dnsupate Fix syntax errorAndrew Bartlett1-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
2011-04-07samba_dnsupdate: Don't use subprocess.check_call, it isn't in python 2.4Andrew Bartlett1-1/+8
RHEL5 and clones use python 2.5
2011-02-22python: use os.environ[] instead of os.putenv()Andrew Tridgell1-4/+4
using os.putenv() causes too much confusion, as it doesn't update os.getenv() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-12-08s4-param Allow +foo syntax in smb.conf list parsingAndrew Bartlett1-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
2010-12-01s4-dns: catch all DNS exceptions in samba_dnsupdateAndrew Tridgell1-4/+8
2010-11-18s4-dns: added support for --fail-immediately for RODC netlogon dns updatesAndrew Tridgell1-0/+7
2010-11-17s4-dns: catch more expections in samba_dnsupdateAndrew Tridgell1-1/+5
2010-11-15s4-dns: added --fail-immediately option to samba_dnsupdateAndrew Tridgell1-1/+13
this is useful for manual testing
2010-11-15s4-dns: fixed registration of multiple IPs in samba_dnsupdateAndrew Tridgell1-1/+1
bitten by python object references again! Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-30s4-dns: send A record updates via TKEYAndrew Tridgell1-1/+6
2010-09-29s4-kerberos: use TZ=GMT when we are invoking krb5 code in helpersAndrew Tridgell1-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>
2010-09-27s4-dns: added --update-list option to samba_dnsupdateAndrew Tridgell1-8/+14
this allows us to use it for RODC netlogon updates
2010-09-27s4-dns: use the generated krb5.conf in samba_dnsupdateAndrew Tridgell1-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
2010-09-19s4-dns: fixed the dns_domain_info_type for netlogon DNS callsAndrew Tridgell1-3/+14
w2k8r2 does check this field (WSPP docs need an update)
2010-09-19s4-dns: added --all-names option to samba_dnsupdateAndrew Tridgell1-1/+2
this forces the re-registration of all names
2010-09-19s4-rodc: added RODC DNS update support to samba_dnsupdateAndrew Tridgell1-3/+70
for DNS updates that have a netlogon equivalent, send via netlogon
2010-09-16s4-dns: use a non-forwardable ticket in samba_dnsupdateAndrew Tridgell1-2/+3
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-27s4-dns: cope better with comments in dns_update_listAndrew Tridgell1-7/+4
2010-04-19s4-dns: use neater python for reading linesAndrew Tridgell1-7/+2
files are line iterators
2010-04-08s4-python: More cleanups.Jelmer Vernooij1-7/+2
2010-04-07s4-python: Move samdb_ntds_objectGUID to pydsdb.Jelmer Vernooij1-3/+3
2010-04-01s4-python: Install external packages to a different directory but import intoJelmer Vernooij1-1/+1
the normal namespace when the system doesn't have it available.
2010-03-29s4-python: Simplify mechanism for finding included Python modules.Jelmer Vernooij1-2/+2
2010-03-29s4-python: Move dnspython to lib/, like the other Python modulesJelmer Vernooij1-5/+3
This also avoids it from being installed if it's already present on the system.
2010-03-25python: use '#!/usr/bin/env python' to cope with varying install locationsAndrew Tridgell1-1/+1
this should be much more portable
2010-03-11s4:samba_dnsupdate Add a 'file based' mode to samba_dnsupdateAndrew Bartlett1-21/+55
For the testsuite to use DNS like names, we need to write these names to a file. Also, to have this run in 'make test' the usual rules about 'no 127.*' IP addresses in DNS must be skipped, so glue.interface_ips takes two arguments now
2010-03-05s4-dns: use samba.external to pull in the dns.resolver libraryAndrew Tridgell1-3/+5
2010-03-03dns: make dns update script use unbuffered IOAndrew Tridgell1-0/+4
Otherwise we can lose debug output when a timeout happens
2010-02-26s4-dns: fixed CNAME automatic DNS updatesAndrew Tridgell1-1/+1
2010-02-26dns: auto-delete incorrect SRV entries for our hostnameAndrew Tridgell1-8/+15
2010-02-26s4-dns: add automatic dynamic DNS updating scriptAndrew Tridgell1-1/+223
This script checks a list of DNS names that we should have, and does dynamic DNS updates using our machine account credentials to add any missing DNS entries. This allows us to correctly add all the DNS entries we need when we join an existing domain as a DC Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-26dns: dummy samba_dnsupdate scriptAndrew Tridgell1-0/+38
The merge from metze of my dns tree means we now depend on this. This is a placeholder until Andrew and I have finished the full script.