Bug 860317

Summary: patch update: MozNSS certificate database in SQL format cannot be used
Product: [Fedora] Fedora Reporter: Jan Vcelak <jvcelak>
Component: openldapAssignee: Jan Vcelak <jvcelak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jsynacek, jvcelak, rmeggins, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openldap-2.4.33-1.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 857373 Environment:
Last Closed: 2012-12-20 15:08:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Vcelak 2012-09-25 15:05:02 UTC
There is a better patch for this bug. It is already submitted upstream:
http://www.openldap.org/its/index.cgi?findid=7388

+++ This bug was initially created as a clone of Bug #857373 +++

Description of problem:

MozNSS certificate database in newer SQL format cannot be used. Database prefix is recognized incorrectly.


Version-Release number of selected component (if applicable):
openldap-2.4.32-2.fc17


How reproducible:
always


Steps to Reproduce:
1. certutil -d sql:/tmp/certdb -N
2. certutil -d sql:/tmp/certdb -A -n ca -t TC,, -a -i /tmp/ca.pem
3. LDAPTLS_CACERTDIR=sql:/tmp/certdb ldapsearch -x -ZZ -d1
  
Actual results:

...
TLS: certdb config: configDir='sql:/tmp' tokenDescription='ldap(0)' certPrefix='certdb' keyPrefix='certdb' flags=readOnly
TLS: cannot open certdb 'sql:/tmp', error -8018:Unknown PKCS #11 error.
TLS: could not get info about the CA certificate directory sql:/tmp/certdb - error -5950:File not found.
...
ldap_start_tls: Connect error (-11)
        additional info: TLS error -8172:Peer's certificate issuer has been marked as not trusted by the user.


Expected results:

...
TLS: certdb config: configDir='sql:/tmp/certdb' tokenDescription='ldap(0)' certPrefix='' keyPrefix='' flags=readOnly
TLS: using moznss security dir sql:/tmp/certdb prefix .
...


Additional info:

Not a regression, this seems to be a problem since switching to MozNSS.

--- Additional comment from jvcelak on 2012-09-14 11:00:18 CEST ---

Created attachment 612778 [details]
patch

Upstream submission will follow.

--- Additional comment from jvcelak on 2012-09-14 11:57:19 CEST ---

Upstream report:
http://www.openldap.org/its/index.cgi?findid=7388

--- Additional comment from updates on 2012-09-19 11:11:51 CEST ---

openldap-2.4.32-3.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/openldap-2.4.32-3.fc17

--- Additional comment from updates on 2012-09-19 11:13:22 CEST ---

openldap-2.4.32-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/openldap-2.4.32-3.fc18

--- Additional comment from updates on 2012-09-20 07:58:21 CEST ---

Package openldap-2.4.32-3.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openldap-2.4.32-3.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-14390/openldap-2.4.32-3.fc18
then log in and leave karma (feedback).

Comment 1 Jan Vcelak 2012-10-11 11:18:13 UTC
Resolved in: openldap-2.4.33-1.fc17

Comment 2 Fedora Update System 2012-10-11 11:22:12 UTC
openldap-2.4.33-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/openldap-2.4.33-1.fc18

Comment 3 Fedora Update System 2012-10-11 11:22:45 UTC
openldap-2.4.33-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/openldap-2.4.33-1.fc17

Comment 4 Fedora Update System 2012-10-11 17:18:43 UTC
Package openldap-2.4.33-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openldap-2.4.33-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-15910/openldap-2.4.33-1.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-12-20 15:08:29 UTC
openldap-2.4.33-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.