Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1353969 - ipa-client-install should overwrite or prompt for changes in /etc/openldap/ldap.conf
Summary: ipa-client-install should overwrite or prompt for changes in /etc/openldap/ld...
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Kaleem
Depends On:
Blocks: 1354528
TreeView+ depends on / blocked
Reported: 2016-07-08 14:45 UTC by Luc de Louw
Modified: 2019-03-25 16:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1354528 (view as bug list)
Last Closed:
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

Description Luc de Louw 2016-07-08 14:45:05 UTC
Description of problem:
When installing an IPA server or client, any existing ldap.conf is not overwritten but the IPA ldap servers are appended and commented out.

This can cause confusion when running ldap operations such as ldapadd/ldapmodify and the like.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. configure /etc/openldap/ldap.conf pointing to an ldap server. I.e.

BASE   dc=example,dc=com
URI    ldap://

2. Run ipa-client-install
3. Finding the ldap config as follow:
BASE   dc=example,dc=com
URI    ldap://

#URI ldaps:// # modified by IPA
#BASE dc=ipa,dc=example,dc=com # modified by IPA

Actual results:
LDAP operations on the IPA server will fail.

Expected results:
LDAP config should comment out the original BASE and URI and put in place the new IPA ldap config.

Additional info:
On clients, it can be a valid configuration pointing /etc/openldap/ldap.conf to a different LDAP server used by an application on the server. A nice solution would be adding a switch to ipa-client-install i.e --overwrite-config or similar. This switch should be used as default when ipa-server-install triggers the client config part.

Comment 2 Petr Vobornik 2016-07-12 16:04:28 UTC
Upstream ticket:

Comment 3 Petr Vobornik 2016-07-12 16:04:58 UTC
Was clone upstream to Future release milestone. This behavior is undefined in IPA and therefore it will need a design page.

A suggestion from Jan Pazdiora:
Could we check that the content of the file is the rpm-default/vanilla,  not touched yet, and overwrite if the file was not touched yet but not  overwrite if it was somehow modified by the admin?

Note You need to log in before you can comment on or make changes to this bug.