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

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



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

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-----
 MIHxMIGoBgcqhkjOOAQBMIGcAkEA/KaCzo4Syrom78z3EQ5SbbB4sF7ey80etKII
 864WF64B81uRpH5t9jQTxeEu0ImbzRMqzVDZkVG9xD7nN1kuFwIVAJYu3cw2nLqO
 uyYO5rahJtk0bjjFAkBnhHGyepz0TukaScUUfbGpqvJE8FpDTWSGkx0tFCcbnjUD
 C3H9c9oXkGmzLik1Yw4cIGI1TQ2iCmxBblC+eUykA0QAAkEAtySSO449SjAuEKHQ
 cJYtD1LQMjxz96soVwXdpwLYbExhxGte4SLfexYXAaN1bdA43xV8AVlujuCr9lNc
 ZVB4jQ==
 -----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/