Hello Robert,
Am 14.02.2015 um 18:32 schrieb Robert Watson:> anyone know how to do this from the linux cli?
http://www.openldap.org/doc/admin24/dbtools.html#The%20LDIF%20text%20entry%20format
* Place your pic in e. g. /tmp/demo.jpg
* Create an LDIF file "test.ldif":
dn: CN=Administrator,CN=Users,DC=samdom,DC=example,DC=com
changetype: modify
add: jpegPhoto
jpegPhoto:< file:///tmp/demo.jpg
-
* Import it via ldbmodify:
# ldbmodify -H /usr/local/samba/private/sam.ldb test.ldif
Modified 1 records successfully
Regards,
Marc