From d4f1406fbd9349c9f64247bd3aeb1a3e0134e018 Mon Sep 17 00:00:00 2001 From: amitkuma Date: Mar 28 2019 20:48:44 +0000 Subject: RFE: ipa client should setup openldap for GSSAPI The IPA client installer currently edits /etc/openldap/ldap.conf, setting up the client to consume LDAP data from IPA. It currently sets: URI BASE TLS_CACERT This PR makes ipa-client to add this AV pair: SASL_MECH GSSAPI Resolves: https://pagure.io/freeipa/issue/7366 Reviewed-By: Christian Heimes Reviewed-By: Florence Blanc-Renaud Reviewed-By: Christian Heimes --- diff --git a/ipaclient/install/client.py b/ipaclient/install/client.py index babebfc..ca404ab 100644 --- a/ipaclient/install/client.py +++ b/ipaclient/install/client.py @@ -523,8 +523,12 @@ def configure_openldap_conf(fstore, cli_basedn, cli_server): { 'name': 'comment', 'type': 'comment', - 'value': ' URI, BASE and TLS_CACERT have been added if they ' - 'were not set.' + 'value': ' URI, BASE, TLS_CACERT and SASL_MECH' + }, + { + 'name': 'comment', + 'type': 'comment', + 'value': ' have been added if they were not set.' }, { 'name': 'comment', @@ -575,6 +579,12 @@ def configure_openldap_conf(fstore, cli_basedn, cli_server): 'type': 'option', 'value': paths.IPA_CA_CRT }, + { + 'action': 'addifnotset', + 'name': 'SASL_MECH', + 'type': 'option', + 'value': 'GSSAPI' + }, ] target_fname = paths.OPENLDAP_LDAP_CONF