diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-02-27 10:33:50 +0100 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-02-27 12:54:37 +0100 |
commit | 96f87e548af5107e33f33cdb3af9fd542d0aa413 (patch) | |
tree | a3d59b56b065935551738e31a052658fa09b39a9 /ipaserver | |
parent | 4fda432050e9b12ec9d48c2c80b9fd69faa54480 (diff) | |
download | freeipa-96f87e548af5107e33f33cdb3af9fd542d0aa413.tar.gz freeipa-96f87e548af5107e33f33cdb3af9fd542d0aa413.tar.xz freeipa-96f87e548af5107e33f33cdb3af9fd542d0aa413.zip |
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>
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/dcerpc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py index 5cc168be4..c3ae00ef3 100644 --- a/ipaserver/dcerpc.py +++ b/ipaserver/dcerpc.py @@ -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() |