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

Re: (ITS#5090) Error with attribute "jpegPhoto"



Hello,

nicolas.sandraz@gmail.com wrote:
> when i use a LDIF file with the falowing attribute jpegPhoto associate with the
> object class inetOrgPerson i have this error:
> 
> slapadd : /tmp/build/openldap2.3-2.3.30/servers/slapd/schema_check.c:87 :
> entry_schema_check: Assertion `a->a_vals[0].bv_val != ((void *)0)' failed.
> 
> i use this line (on my ldif file) to add a picture on my LDAP directory:
> 
> jpegPhoto: < file///etc/ldap/pictures/test.jpg

Are you sure that you aren't missing a colon (':')? According to the
manpage of ldapadd the line should look like this:

jpegPhoto: < file:///etc/ldap/pictures/test.jpg

Oh, and that special syntax is a function of ldapadd/ldapmodify, not
some standard way of importing images - so using it with slapadd won't work.

bye
Christian
-- 
Christian Marg                    mail  : mailto:marg@rz.tu-clausthal.de
Dezernat 2 TU Clausthal           web   : http://www.tu-clausthal.de
D-38678 Clausthal-Zellerfeld      fon   : 05323/72-2107
Germany                           jabber: ifcma@jabber.tu-clausthal.de