[Date Prev][Date Next] [Chronological] [Thread] [Top]

multiple certificates gives segfault with certificateExactMatch (ITS#2702)



Full_Name: Szilveszter Juhos
Version: 2.1.22
OS: Linux
URL: 
Submission from: (NULL) (212.97.0.82)


Unable to upload multiple certificates since the second one gives a segfault.
Also deleting one gives a segfault also. In core.schema I have the matching
rule:

 attributetype ( 2.5.4.36 NAME 'userCertificate'
         EQUALITY certificateExactMatch
         DESC 'RFC2256: X.509 user certificate, use ;binary'
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.8 )


$ ldapmodify  -x -w passwd -D "cn=admin, o=acme" -f add1
modifying entry "uid=szilva,ou=People,o=acme"

$ ldapmodify  -x -w passwd -D "cn=admin, o=acme" -f add2
modifying entry "uid=szilva,ou=People,o=acme"
ldapmodify: update failed: uid=szilva,ou=People,o=acme
ldap_modify: Can't contact LDAP server (81)

Adding two certificates in one file is OK.

Furthermore deleting a cert is also gives a segfault:
$ ldapmodify  -x -w passwd -D "cn=admin, o=acme" -f del1   
modifying entry "uid=szilva,ou=People,o=acme"
ldapmodify: update failed: uid=szilva,ou=People,o=acme
ldap_modify: Can't contact LDAP server (81

$ head add1
dn: uid=szilva,ou=People,o=acme
changetype: modify
add: userCertificate;binary
userCertificate;binary:: MIIDBzC...

$ head del1
dn: uid=szilva,ou=People,o=acme
changetype: modify
delete: userCertificate;binary
userCertificate;binary:: MIIDBzC...

Note after the segfault the database is inconsistent (Berkley db-4.1.25,
compiled from source).