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

Re: binary



At 10:29 AM 3/9/00 +0100, Vincent RABAH wrote:
>How to add or modify an object that contain binary fields (like jpegphoto,
>sound, ...)

I assume you are using "binary" in the generic sense... as in binary
computer data and not "binary" in the LDAPv3 sense meaning data
encoded using BER.

>I've tried using ldapadd, ldapmodify, and also Net::LDAP without success !

ldapadd and ldapmodify generally expect LDIF which supports
base64 encoded attribute values.  LDIF also supports use
of files to contain attribute values.  One of these approaches
should be used when interchanging "binary" (in both senses) data.

Note that there are two significant varients of LDIF in use.
Traditional (U-Mich/OpenLDAP) and LDIFv1 (most LDAPv3 implementations).
The syntax differs so be sure to read the manuals of the tools
you are using.

FYI, OpenLDAP provides a tool, ldif(1), which may be used
for generating base64 encoding attribute value pair suitable
for use with tools which support LDIF.

For specific examples, I suggest search the archives of this
list and/or the list specific to your software (ie: openldap-softare
for OpenLDAP software).