[Samba] adding jpeg to active directory user

Marc Muehlfeld mmuehlfeld at samba.org
Sat Feb 14 11:30:38 MST 2015


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


More information about the samba mailing list