[Freeipa-devel] [PATCH] 0043 Allow-PKI-CA-Replica-Installs-when-CRL-exceeds-default

JR Aquino JR.Aquino at citrix.com
Wed Dec 19 22:41:24 UTC 2012


On Dec 19, 2012, at 2:32 PM, Simo Sorce wrote:

> On Wed, 2012-12-19 at 20:52 +0000, JR Aquino wrote:
>> Due to a limitation with 389 DS, the nsslapd-maxbersize cannot be set dynamically.
>> This causes an issue during IPA PKI-CA Replica installs, when the master has a CRL that exceeds the default limit.
>> The cainstance.py code attempts to set this value prior to performing the initial PKI-CA replication, however, since the value cannot be set dynamically, the installation fails.
>> 
>> This patch works around the issue by adding the ldif to the original initialization values bootstrapped by the call to setup-ds.pl
> 
> Why are we not simply restarting the instance after setting the value ?
> 
> What's in database.ldif ? What produces it ?

/usr/share/pki/ca/conf/database.ldif is part of the dogtag installation and it contains the following entry:
dn: cn=config
changetype: modify
replace: nsslapd-maxbersize
nsslapd-maxbersize: 209715200

It's purpose is to increase the limit for maxbersize from 2097152 to 209715200.

The ldif is inserted via the jars that are wrapped by pkisilent... So this leaves 3 options:

#1 Add code to perform the ldap insert followed by a dirsrv restart into the cainstance.py code
#2 Add recode the jar files from DogTag to require a dirsrv restart after the insert, but prior to the replication
#3 Just initialize the dirsrv database with the correct value to begin with. <1 line fix>
#4 Ask 389 to allow maxbersize to be a dynamically initialized variable

#3 Seemed the path of least resistance.
I did take the time to code #1 and verify that it worked as well.
I have a ticket open for #4
Alee hinted that the jar modifications for #2 might not be trivial...



> Simo.
> 
> -- 
> Simo Sorce * Red Hat, Inc * New York
> 





More information about the Freeipa-devel mailing list