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

Re: jpegPhoto link to a filesystem file



Jehan PROCACCIA wrote:
> 
> I know that I can include a photo in ldif with the following attribute:
> 
> jpegPhoto:<file:///photos/userphoto.jpg
> 
> but in that case the photo data  is itsef in the directory.

Fortunately, yes. ;-)

Note that commonly used LDAP clients won't display the photo if it's
not stored in the directory itself.

> I thought that I could only store a link to a jpeg file somewhere in the
> filesystem tree (/photos for example) so that I could only change the
> files in the filesystem to change a photo .

Use attribute type labeledURI.

labeledURI: file:///photos/userphoto.jpg This user's photo

Ciao, Michael.