RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1527020 - nsslapd-sasl-max-buffer-size is hardcoded to '2097152' during install even if another value was provided in an LDIF ( --dirsrv-config-file )
Summary: nsslapd-sasl-max-buffer-size is hardcoded to '2097152' during install even if...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 1477664
TreeView+ depends on / blocked
 
Reported: 2017-12-18 11:17 UTC by François Cami
Modified: 2018-10-30 10:58 UTC (History)
9 users (show)

Fixed In Version: ipa-4.6.4-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 10:57:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3187 0 None None None 2018-10-30 10:58:18 UTC

Description François Cami 2017-12-18 11:17:34 UTC
Description of problem:

# ipa-server-install --dirsrv-config-file params.ldif
with params.ldif:
~~~
dn: cn=config
changetype: modify
replace: nsslapd-maxsasliosize
nsslapd-maxsasliosize: 50000000
replace: nsslapd-sasl-max-buffer-size
nsslapd-sasl-max-buffer-size: 50000000
~~~
ends up with nsslapd-sasl-max-buffer-size at 2MB anyway due to:
https://bugzilla.redhat.com/show_bug.cgi?id=1044193

So during install the new value is correctly taken into account, but reset to 2M at the end:
~~~
2017-12-13T16:53:18Z DEBUG only: set nsslapd-sasl-max-buffer-size to '2097152', current value [u'50000000']
2017-12-13T16:53:18Z DEBUG only: updated value [u'2097152']
~~~

The default value of 2MB is proving too low in some environments for initial replication, so overriding it safely is a must.


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


How reproducible:
Always


Steps to Reproduce:
1. Install IPA server with "--dirsrv-config-file params.ldif" as above
2. Watch the log

Actual results:
~~~
2017-12-13T16:53:18Z DEBUG only: set nsslapd-sasl-max-buffer-size to '2097152', current value [u'50000000']
2017-12-13T16:53:18Z DEBUG only: updated value [u'2097152']
~~~


Expected results:
Custom value is not overridden by hardcoded default value.

Additional info:

We should detect if the value was changed.

Known workaround:
* set the parameter nsslapd-sasl-max-buffer-size to 50000000 on the first IdM server right after installation
* install all replica with ipa-replica-install --dirsrv-config-file params.ldif
* once installation is done, set the nsslapd-sasl-max-buffer-size to 50000000 in the replica as well.

As initial replication is done after the new value (50MB) is used, but before the hardcoded value of 2MB is set, the parameter's value goes from:

dirserv default => 50MB => 2MB => 50MB

Comment 3 Florence Blanc-Renaud 2017-12-20 17:09:00 UTC
The value of nsslapd-sasl-max-buffer-size is overwritten at the end of the installation, because of the step upgrading the server. The upgrade is loading the content from the file 10-config.update which contains the following:
 
# Default SASL buffer size was too small and could lead for example to
# migration errors
# Can be removed when https://fedorahosted.org/389/ticket/47457 is fixed
dn: cn=config
only:nsslapd-sasl-max-buffer-size:2097152

Note that ticket 47457 has been fixed in  389-ds-base-1.3.2 and 389-ds-base-1.2.11, and the default value for nsslapd-sasl-max-buffer-size is already 2097152 in 389-ds. This means that we can safely remove nsslapd-sasl-max-buffer-size from 10-config.update. In this case, any value supplied with ipa-server-install --dirsrv-config-file will be taken into account.

Comment 4 Florence Blanc-Renaud 2018-01-02 14:38:33 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/7341

Comment 6 Christian Heimes 2018-01-10 08:35:50 UTC
ipa-4-6:
    2212fb5 10-config.update: remove nsslapd-sasl-max-buffer-size override as https://pagure.io/389-ds-base/issue/47457 was fixed directly in 389 Directory Server.
ipa-4-5:
    8a0e790 10-config.update: remove nsslapd-sasl-max-buffer-size override as https://pagure.io/389-ds-base/issue/47457 was fixed directly in 389 Directory Server.

Comment 11 Sudhir Menon 2018-08-24 11:40:58 UTC
nsslapd-sasl-max-buffer-size was set to 50000000 when specified ldif was provided input to the ipa-server-install command.

Verified on Red Hat Enterprise Linux Server release 7.6 Beta (Maipo)
using 

[root@master ~]# rpm -q ipa-server sssd samba krb5-server pki-server selinux-policy 389-ds-base
ipa-server-4.6.4-6.el7.x86_64
sssd-1.16.2-12.el7.x86_64
samba-4.8.3-4.el7.x86_64
krb5-server-1.15.1-34.el7.x86_64
pki-server-10.5.9-6.el7.noarch
selinux-policy-3.13.1-219.el7.noarch
389-ds-base-1.3.8.4-11.el7.x86_64

[root@master ~]# ipa-server-install --dirsrv-config-file params.ldif
.......
.......
Configured /etc/openldap/ldap.conf
Configured /etc/ssh/ssh_config
Configured /etc/ssh/sshd_config
Configuring apollo.test as NIS domain.
Client configuration complete.
The ipa-client-install command was successful

/var/log/ipaserver-install.log
2018-08-24T10:51:43Z DEBUG nsslapd-sasl-max-buffer-size:
2018-08-24T10:51:43Z DEBUG      50000000

Comment 13 errata-xmlrpc 2018-10-30 10:57:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3187


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