1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

s4-dns: use a non-forwardable ticket in samba_dnsupdate

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andrew Tridgell 2010-09-16 14:13:48 +10:00
parent 89827af525
commit 7e729c4f6a

View File

@ -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)