summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-csreplica-manage
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-30 06:46:48 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:46 +0100
commit334a0cdcdc16ac50de2be1f751262bd87d0e5e86 (patch)
tree80882ce2180354b9c2f4520791381ac9d226f027 /install/tools/ipa-csreplica-manage
parentf7a4cceb97f829ad2e1f8853c0e4414dcebf731e (diff)
downloadfreeipa-334a0cdcdc16ac50de2be1f751262bd87d0e5e86.tar.gz
freeipa-334a0cdcdc16ac50de2be1f751262bd87d0e5e86.tar.xz
freeipa-334a0cdcdc16ac50de2be1f751262bd87d0e5e86.zip
Remove IPAdmin.unbind_s(), keep unbind()
The unbind and unbind_s functions do the same thing (both are synchronous). In the low-level IPASimpleLDAPObject, unbind_s rather than unbind is kept. Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'install/tools/ipa-csreplica-manage')
-rwxr-xr-xinstall/tools/ipa-csreplica-manage4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/tools/ipa-csreplica-manage b/install/tools/ipa-csreplica-manage
index bb557f485..c088bba1a 100755
--- a/install/tools/ipa-csreplica-manage
+++ b/install/tools/ipa-csreplica-manage
@@ -224,7 +224,7 @@ def list_replicas(realm, host, replica, dirman_passwd, verbose):
except Exception, e:
sys.exit("Failed to get data from '%s' while trying to list replicas: %s" % (host, convert_error(e)))
finally:
- conn.unbind_s()
+ conn.unbind()
if not replica:
for k, p in peers.iteritems():
@@ -395,7 +395,7 @@ def add_link(realm, replica1, replica2, dirman_passwd, options):
dn = DN(('cn', 'CA'), ('cn', replica2), ('cn', 'masters'), ('cn', 'ipa'), ('cn', 'etc'),
ipautil.realm_to_suffix(realm))
conn.get_entries(dn, ldap.SCOPE_ONELEVEL)
- conn.unbind_s()
+ conn.unbind()
except errors.NotFound:
sys.exit('%s does not have a CA configured.' % replica2)
except errors.NetworkError, e: