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

cert2ldap error



Hi all

Openldap version: 2.1.3
OS: RedHat Linux 6.2

I'm trying to run the following command:

cert2ldap -i -n \-D "uid=Jose,ou=AuthzLDAPCertmap,o=mycompany" -w test
\-b "cn=admin,dc=mycompany,dc=co,dc=za" \-o
"cn=Jose,ou=users,o=mycompany" <client.crt

but I'm getting this error:

cannot add target: Object class violation (65)
        additional info: no structural object classes provided

Is the error complaining about the certificate (client.crt) or the
database? And if so what's missing?

In the database I have:

dn:ou=users,o=mycompany
ou:users
objectClass:top
objectClass:organizationalUnit
description:Mycompany users

dn:cn=Jose,ou=users,o=mycompany
objectClass:top
objectClass:person
objectClass:organizationalPerson
objectClass:inetOrgPerson
cn:Jose
uid:users
userPassword:whatever
sn:Correia
ou:users
description:user

#Create certmap
dn:ou=AuthzLDAPCertmap,o=mycompany
objectClass:top
objectClass:organizationalUnit
ou:AuthzLDAPCertmap

Thanks in advance
Jose Correia