mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
install: remove adhoc dis/connect from services
Remove ldap_connect and ldap_disconnect from services. admin_conn is just an alias to api.Backend.ldap2 and therefore the connection should be managed elsewhere. https://fedorahosted.org/freeipa/ticket/6461 Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
c51b04fae7
commit
03d113cdd7
@@ -1614,10 +1614,8 @@ def upgrade_configuration():
|
||||
ds.suffix = ipautil.realm_to_suffix(api.env.realm)
|
||||
ds.principal = "ldap/%s@%s" % (ds.fqdn, ds.realm)
|
||||
|
||||
ds.ldap_connect()
|
||||
ds_enable_sidgen_extdom_plugins(ds)
|
||||
ds.update_dna_shared_config()
|
||||
ds.ldap_disconnect()
|
||||
|
||||
# Now 389-ds is available, run the remaining http tasks
|
||||
if not http.is_kdcproxy_configured():
|
||||
@@ -1627,7 +1625,6 @@ def upgrade_configuration():
|
||||
ds.start()
|
||||
http.ldapi = True
|
||||
http.suffix = ipautil.realm_to_suffix(api.env.realm)
|
||||
http.ldap_connect()
|
||||
httpinstance.create_kdcproxy_user()
|
||||
http.create_kdcproxy_conf()
|
||||
http.enable_kdcproxy()
|
||||
|
||||
Reference in New Issue
Block a user