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

Re: str2entry: invalid value for attributeType userCertificate #0 (syntax ???

Marcum, Bob wrote:
I am attempting to add some records to an ldap using slapadd and an ldif

Here is the ldif entry:

objectclass: inetorgperson
objectclass: person
objectclass: top
dn: uid=12382227,ou=merchant,dc=telecheck,dc=com
ou: merchant
cn: 1238227
sn: 12382227
uid: 12382227
userPassword: xxxxxx
userCertificate: -----BEGIN PUBLIC KEY-----
 -----END PUBLIC KEY-----
displayName: " "
businessCategory: " "
description: " "

When I execute slapadd I get the error message shown above in the
subject line and the report that "slapadd: could not parse entry
(line=59)", which is the line after the compete entry, that is, after
'description: "" '.

I do not understand what is going on.  I have done this before
successfully many times with the very same ldif file (I am sure!)  What
is happening?

That's pretty unlikely. A userCertificate attribute requires its values to be in raw DER form, not PEM.

  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP     http://www.openldap.org/project/