mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
trusts: Remove usage of deprecated LDAP API
Remove a reference to the old deprecated LDAP API invoked by the usage of trust_add method. https://fedorahosted.org/freeipa/ticket/4204 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
committed by
Petr Viktorin
parent
4fda432050
commit
96f87e548a
@@ -1102,9 +1102,9 @@ class TrustDomainJoins(object):
|
||||
|
||||
realm_domains = self.api.Command.realmdomains_show()['result']
|
||||
# Use realmdomains' modification timestamp to judge records last update time
|
||||
(dn, entry_attrs) = self.api.Backend.ldap2.get_entry(realm_domains['dn'], ['modifyTimestamp'])
|
||||
entry = self.api.Backend.ldap2.get_entry(realm_domains['dn'], ['modifyTimestamp'])
|
||||
# Convert the timestamp to Windows 64-bit timestamp format
|
||||
trust_timestamp = long(time.mktime(time.strptime(entry_attrs['modifytimestamp'][0][:14], "%Y%m%d%H%M%S"))*1e7+116444736000000000)
|
||||
trust_timestamp = long(time.mktime(time.strptime(entry['modifytimestamp'][0][:14], "%Y%m%d%H%M%S"))*1e7+116444736000000000)
|
||||
|
||||
for dom in realm_domains['associateddomain']:
|
||||
ftinfo = dict()
|
||||
|
||||
Reference in New Issue
Block a user