diff options
author | Martin Basti <mbasti@redhat.com> | 2015-03-23 12:59:16 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2015-04-14 19:25:47 +0200 |
commit | b605ccc94bef9a280aa500d57caa74d95e230b4b (patch) | |
tree | 8d87d0b8b852dc489aa913336b29e2dce3ff4230 /ipaserver/install | |
parent | 4aec9d2280a5ebbf1acae3abee215cd7a28f23c2 (diff) | |
download | freeipa-b605ccc94bef9a280aa500d57caa74d95e230b4b.tar.gz freeipa-b605ccc94bef9a280aa500d57caa74d95e230b4b.tar.xz freeipa-b605ccc94bef9a280aa500d57caa74d95e230b4b.zip |
Server Upgrade: use ldap2 connection in fix_replica_agreements
https://fedorahosted.org/freeipa/ticket/4904
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/install')
-rw-r--r-- | ipaserver/install/plugins/fix_replica_agreements.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ipaserver/install/plugins/fix_replica_agreements.py b/ipaserver/install/plugins/fix_replica_agreements.py index 413bf877d..a2aa4bce4 100644 --- a/ipaserver/install/plugins/fix_replica_agreements.py +++ b/ipaserver/install/plugins/fix_replica_agreements.py @@ -37,9 +37,7 @@ class update_replica_attribute_lists(Updater): def execute(self, **options): # We need an IPAdmin connection to the backend self.log.debug("Start replication agreement exclude list update task") - conn = ipaldap.IPAdmin(self.api.env.host, ldapi=True, - realm=self.api.env.realm) - conn.do_external_bind(pwd.getpwuid(os.geteuid()).pw_name) + conn = self.api.Backend.ldap2 repl = replication.ReplicationManager(self.api.env.realm, self.api.env.host, |