diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-01-21 04:34:44 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:44 +0100 |
commit | c613caab67337293a410c07713c89345d0124f2c (patch) | |
tree | fc0712cd0c5bcb367d53897679e4efdc030578b8 /ipaserver/install/replication.py | |
parent | b2dd8d7f0512dff47bd5b1b973da50dd56a2e99e (diff) | |
download | freeipa-c613caab67337293a410c07713c89345d0124f2c.tar.gz freeipa-c613caab67337293a410c07713c89345d0124f2c.tar.xz freeipa-c613caab67337293a410c07713c89345d0124f2c.zip |
Replace entry.getValues() by entry.get()
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipaserver/install/replication.py')
-rw-r--r-- | ipaserver/install/replication.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index 52db8c7ab..c017bbdac 100644 --- a/ipaserver/install/replication.py +++ b/ipaserver/install/replication.py @@ -326,7 +326,7 @@ class ReplicationManager(object): try: entry = conn.getEntry(dn, ldap.SCOPE_BASE) - managers = entry.getValues('nsDS5ReplicaBindDN') + managers = entry.get('nsDS5ReplicaBindDN') for m in managers: if replica_binddn == DN(m): return @@ -466,7 +466,7 @@ class ReplicationManager(object): # Add it to the list of users allowed to bypass password policy extop_dn = DN(('cn', 'ipa_pwd_extop'), ('cn', 'plugins'), ('cn', 'config')) entry = conn.getEntry(extop_dn, ldap.SCOPE_BASE) - pass_mgrs = entry.getValues('passSyncManagersDNs') + pass_mgrs = entry.get('passSyncManagersDNs') if not pass_mgrs: pass_mgrs = [] if not isinstance(pass_mgrs, list): @@ -1033,7 +1033,7 @@ class ReplicationManager(object): entry = self.conn.getEntry(dn, ldap.SCOPE_BASE) - objectclass = entry.getValues("objectclass") + objectclass = entry.get("objectclass") for o in objectclass: if o.lower() == "nsdswindowsreplicationagreement": |