mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
KCC: fix KCC.import_ldif() use of forced_local_dsa
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
9f0209a486
commit
94094d0c91
@ -2656,7 +2656,7 @@ class KCC(object):
|
||||
|
||||
return 0
|
||||
|
||||
def import_ldif(self, dburl, lp, creds, ldif_file):
|
||||
def import_ldif(self, dburl, lp, creds, ldif_file, forced_local_dsa=None):
|
||||
"""Import all objects and attributes that are relevent
|
||||
to the KCC algorithms from a previously exported LDIF file.
|
||||
|
||||
@ -2673,7 +2673,7 @@ class KCC(object):
|
||||
"""
|
||||
try:
|
||||
self.samdb = ldif_import_export.ldif_to_samdb(dburl, lp, ldif_file,
|
||||
self.forced_local_dsa)
|
||||
forced_local_dsa)
|
||||
except ldif_import_export.LdifError, e:
|
||||
print e
|
||||
return 1
|
||||
|
Reference in New Issue
Block a user