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:
parent
89827af525
commit
7e729c4f6a
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user