summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-02-25 18:37:45 -0500
committerSimo Sorce <ssorce@redhat.com>2011-03-01 11:02:55 -0500
commit2028695d88cad856d3051abc76fa9254dd3598e2 (patch)
tree8afc023649613a644ce5f8e973defae7393d9ebc /install
parent09dd05b49ac8b5bcb0adcc193e9b943be6471f70 (diff)
downloadfreeipa-2028695d88cad856d3051abc76fa9254dd3598e2.tar.gz
freeipa-2028695d88cad856d3051abc76fa9254dd3598e2.tar.xz
freeipa-2028695d88cad856d3051abc76fa9254dd3598e2.zip
Use wrapper for sasl gssapi binds so it behaves like other binds
By calling directly sasl_interactive_bind_s() we were not calling __lateinit() This in turn resulted in some variables like dbdir not to be set on the IPAadmin object. Keep all bind types in the same place so the same common sbind steps can be performed in each case. Related to: https://fedorahosted.org/freeipa/ticket/1022
Diffstat (limited to 'install')
-rwxr-xr-xinstall/tools/ipa-replica-manage2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage
index 19ff1f90..931b1392 100755
--- a/install/tools/ipa-replica-manage
+++ b/install/tools/ipa-replica-manage
@@ -142,7 +142,7 @@ def list_masters(realm, host, replica, dirman_passwd, verbose):
if dirman_passwd:
conn.do_simple_bind(bindpw=dirman_passwd)
else:
- conn.sasl_interactive_bind_s('', ipaldap.sasl_auth)
+ conn.do_sasl_gssapi_bind()
dn = 'cn=masters,cn=ipa,cn=etc,%s' % util.realm_to_suffix(realm)
entries = conn.search_s(dn, ldap.SCOPE_ONELEVEL)