summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-16 14:13:48 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-16 16:08:46 +1000
commit7e729c4f6a374f5fa1e348404e370dbf122a5a0b (patch)
treedc437721361e2f22c536d23eb5619f37a2eb7c04 /source4/scripting
parent89827af5250a0e65e19ee3752cfe407a6e01856f (diff)
downloadsamba-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>
Diffstat (limited to 'source4/scripting')
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate5
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)