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