diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-16 14:13:48 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-16 16:08:46 +1000 |
commit | 7e729c4f6a374f5fa1e348404e370dbf122a5a0b (patch) | |
tree | dc437721361e2f22c536d23eb5619f37a2eb7c04 | |
parent | 89827af5250a0e65e19ee3752cfe407a6e01856f (diff) | |
download | samba-7e729c4f6a374f5fa1e348404e370dbf122a5a0b.tar.gz samba-7e729c4f6a374f5fa1e348404e370dbf122a5a0b.tar.bz2 samba-7e729c4f6a374f5fa1e348404e370dbf122a5a0b.zip |
s4-dns: use a non-forwardable ticket in samba_dnsupdate
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rwxr-xr-x | source4/scripting/bin/samba_dnsupdate | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate index 70fec25933..b295224ddc 100755 --- a/source4/scripting/bin/samba_dnsupdate +++ b/source4/scripting/bin/samba_dnsupdate @@ -80,13 +80,14 @@ if len(IPs) == 0: ######################################################## # get credentials if we haven't got them already def get_credentials(lp): - from samba.credentials import Credentials + from samba import credentials global ccachename, creds if creds is not None: return - creds = Credentials() + creds = credentials.Credentials() creds.guess(lp) creds.set_machine_account(lp) + creds.set_krb_forwardable(credentials.NO_KRB_FORWARDABLE) (tmp_fd, ccachename) = tempfile.mkstemp() creds.get_named_ccache(lp, ccachename) |