Re: [SOGo] AD avatar - How to?

2017-01-13 Thread Alexandre Zuotoski Neto
 

Hi! 

 After trying to solve the OutlookCalDavSynchronizer issue with its
developer, he found something related to SOGo itself. Alexander
Nimmervoll, OutlookCaldavSynchronizer developer, said: 

"SOGo converts the LDAP photo somehow and exports it as PHOTO attribute
via CardDAV, in this process somewhere n gets inserted which causes this
problem. When I manually remove them and add tab stops between the
encoded photo lines the contact gets synced correctly, but that
workaround won't help you of course. You should create a ticket in the
SOGo bugtracker or ask in the mailing list there, if photos from ldap
adressbook should work via CardDAV." 

Reference:
https://sourceforge.net/p/outlookcaldavsynchronizer/discussion/general/thread/d6640b37/


 Please, is there anything I can do, to make it work? 

Thank you! 

--- 

 [1] 
ALEX ZUOTOSKI
Tecnologia da Informação
Fones: +5541-3641-4250 / Ramal 229
E-mails: a...@csmcalderaria.com.br / t...@csmcalderaria.com.br 
 [1] 

http://www.csmcalderaria.com.br [2] 

Em 2017-01-10 09:09, Alexandre Zuotoski Neto escreveu: 

> Hello. 
> 
> After a few tries, I can confirm that mapping the AD photo, causes an error 
> on CalDavSynchronizer, like this: 
> 
> " 
> 
> 
> /SOGo/dav/alex/Contacts/directory/User1%20CSM
> System.FormatException: The input is not a valid Base-64 string as it 
> contains a non-base 64 character, more than two padding characters, or an 
> illegal character among the padding characters. 
> at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, 
> Byte* startDestPtr, Int32 destLength)
> at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
> at System.Convert.FromBase64String(String s)
> at Thought.vCards.vCardStandardReader.ReadProperty(TextReader reader)
> at Thought.vCards.vCardStandardReader.ReadInto(vCard card, TextReader reader)
> at 
> CalDavSynchronizer.Implementation.Contacts.CardDavRepository.Deserialize(String
>  vcardData, vCardStandardReader serializer)
> at 
> CalDavSynchronizer.Implementation.Contacts.CardDavRepository.TryDeserialize(String
>  vcardData, vCard vcard, WebResourceName uriOfAddressbookForLogging, 
> vCardStandardReader deserializer, ILoadEntityLogger logger)
> false
>  
> 
> " 
> 
> This is the VCARD: 
> 
> " 
> 
> BEGIN:VCARD
> UID:User1 CSM
> VERSION:3.0
> CLASS:PUBLIC
> PROFILE:VCARD
> PRODID:-//Inverse inc./SOGo 3.2.4//EN
> N:CSM;User1
> TITLE:Contador
> FN:Fabiano CSM
> ADR;TYPE=work:;;;Araucária;PR;83707-067;BR
> TEL;TYPE=work:222
> EMAIL;TYPE=work:fabi...@csmcalderaria.com.br
> X-SOGO-CONTACTINFO:Contador
> NOTE:Contador
> PHOTO;ENCODING=BASE64:/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQEBAQIBAQECAgICA
> gQDAgICAgUEBAMEBgUGnBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDA
> QICAgICAgUDAwUKBwYHnCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKC
> goKCgoKCgoKCgr/wAARnCABgAGADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECA
> wQFBgcICQoL/8QAtRAAnAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII
> 0KxwRVS0fAkM2JyggkKnFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZna
> Glqc3R1dnd4eXqDhIWGnh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJy
> tLT1NXW19jZ2uHi4+Tln5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECA
> wQFBgcICQoL/8QAtREAnAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRo
> bHBCSMzUvAVYnLRChYknNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ
> 2hpanN0dXZ3eHl6goOEnhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO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8Efs
> 22nga+g1rUrhZb04eNUnY4zvwQvrxXzUqlOVK3U/S8PgsQmuaWh6l8afjv4m+HPheLVbKxh81
> 4x5YlfHmNn7uBXil5+3nF8VJNVsYvEF1BocOp2rXFg1hoxuVkhUkMxdJNyAbTk7eMV658YfB1
> n4+ubfRtQeVRNbKYCsmnNh9cH8q53w7+y1Lojm3vobK4tiSYlnyWTIwVyO3tWEJQaaZrisDU5
> 04y0PPvH/ie8/aF8I6vn4T8VmK6WWxL2mqWbYRnClkYnHDAgfXNfYv8AwSEFvpP7G+ieDhok9
> neaReS/2q8sm5bi5mxOnzjgYwHUEdiPevANc+Hui/DvR57G0ktlNxJ5kzQw/KueOPcV9mfsY+
> EU8J/APSpTbiKXV2fUZnYx/CJT8gPqdgWvbymUuey2PjOKcLSo4ZOWrbVv1PWzIRzioknL3BT
> 

Re: [SOGo] AD avatar - How to?

2017-01-10 Thread Alexandre Zuotoski Neto
 

Hello. 

 After a few tries, I can confirm that mapping the AD photo, causes an
error on CalDavSynchronizer, like this: 

" 


 /SOGo/dav/alex/Contacts/directory/User1%20CSM
 System.FormatException: The input is not a valid Base-64 string
as it contains a non-base 64 character, more than two padding
characters, or an illegal character among the padding characters. 
 at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32
inputLength, Byte* startDestPtr, Int32 destLength)
 at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
 at System.Convert.FromBase64String(String s)
 at Thought.vCards.vCardStandardReader.ReadProperty(TextReader reader)
 at Thought.vCards.vCardStandardReader.ReadInto(vCard card, TextReader
reader)
 at
CalDavSynchronizer.Implementation.Contacts.CardDavRepository.Deserialize(String
vcardData, vCardStandardReader serializer)
 at
CalDavSynchronizer.Implementation.Contacts.CardDavRepository.TryDeserialize(String
vcardData, vCard vcard, WebResourceName uriOfAddressbookForLogging,
vCardStandardReader deserializer, ILoadEntityLogger logger)
 false
  

" 

This is the VCARD: 

" 

BEGIN:VCARD
UID:User1 CSM
VERSION:3.0
CLASS:PUBLIC
PROFILE:VCARD
PRODID:-//Inverse inc./SOGo 3.2.4//EN
N:CSM;User1
TITLE:Contador
FN:Fabiano CSM
ADR;TYPE=work:;;;Araucária;PR;83707-067;BR
TEL;TYPE=work:222
EMAIL;TYPE=work:fabi...@csmcalderaria.com.br
X-SOGO-CONTACTINFO:Contador
NOTE:Contador
PHOTO;ENCODING=BASE64:/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQEBAQIBAQECAgICA

gQDAgICAgUEBAMEBgUGnBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDA

QICAgICAgUDAwUKBwYHnCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKC

goKCgoKCgoKCgr/wAARnCABgAGADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAECA

wQFBgcICQoL/8QAtRAAnAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII

0KxwRVS0fAkM2JyggkKnFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZna

Glqc3R1dnd4eXqDhIWGnh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJy

tLT1NXW19jZ2uHi4+Tln5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQECA

wQFBgcICQoL/8QAtREAnAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRo

bHBCSMzUvAVYnLRChYknNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ

2hpanN0dXZ3eHl6goOEnhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHy

MnK0tPU1dbX2Nna4uPkn5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD99ELBgX9F/kKnV

gwyDUDlguUAJ2jAJ9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pnr4U/a7/4Lh/s1/Ay61Dwz4T12TxH4gtWED6fou2URyhR8rzn9yhB4

IBdl9PT8uf2rP8AgsD+n03+0Rq80EviiXwzoruVXTNBndTIOp8yc4kk+g2qOfloUKs03sa0sL

VW5+2X7Qn/BVb9lH9nSndbXxh8TbU3yoT/Z1oxmnOPWOPLKP94LX5z/8FDv+C9ll8c/Aeq/B3

4B6HqFnbarps9tfeILsniB7aFzsZbeNWJ3OoIMjkYDHaueR+WviD4mXl9Bc3d1cSO0jMwMsm4

k57k9frXPv4jklsfPIbndLwzbvugZwPfk1UcNzq0n9520aNOlVU7XZ+m/wAIPjXqGtfDPSfGd

nfN9hvdNgE+xSTbzoAjnK+T0LA8+teveAvEV74xvdkWozQXHlYUWuCCSOp9ccGvhr/gm18Txr


Re: [SOGo] AD avatar - How to?

2017-01-09 Thread Alexandre Zuotoski Neto
 

Hi! 

 Unfortunatelly it is not working with CaldavSynchronizer. When photo
mapping is enabled, CalDav returns the following error:
"System.FormatException: Invalid length for a Base-64 char array or
string.". 

 Somebody already had this issue, but the answer wasn't very good:
https://sourceforge.net/p/outlookcaldavsynchronizer/discussion/general/thread/d6640b37/


 Is there anything that we can do to make it work with
CalDavSynchronizer, too? 

Thank you. 

---

 [1] 
ALEX ZUOTOSKI
Tecnologia da Informação
Fones: +5541-3641-4250 / Ramal 229
E-mails: a...@csmcalderaria.com.br / t...@csmcalderaria.com.br 
 [1] 

http://www.csmcalderaria.com.br [2] 

Em 2017-01-09 10:46, Christoph Kreutzer escreveu: 

> Hi Alex, 
> 
> That's easy. 
> SOGo by default uses the photo LDAP attribute. You need to create a Mapping 
> from photo to thumbnailPhoto or jpegPhoto, or both. See the documentation for 
> LDAP UserSource mapping, I don't have it in my mind. 
> 
> It should look somehow like 
> photo = ("thumbnailPhoto", "jpegPhoto") 
> 
> Best regards, 
> Christoph 
> 
> Am 09.01.2017 um 13:03 schrieb Alexandre Zuotoski Neto 
> (t...@csmcalderaria.com.br) :
> 
> Hi! 
> 
> Thanks for reply. If I understood, your examples are on how to add images to 
> AD. My MS-AD already have users images, I wanna use them in SOGo, like I 
> alredy do in Roundcube, GLPI, Openfire, etc. 
> 
> How can I import/show my AD users images into SOGo? 
> 
> Cheers. 
> 
> ---
> 
> [1] 
> ALEX ZUOTOSKI
> Tecnologia da Informação
> Fones: +5541-3641-4250 / Ramal 229
> E-mails: a...@csmcalderaria.com.br / t...@csmcalderaria.com.br 
> [1] 
> 
> http://www.csmcalderaria.com.br [2] 
> 
> Em 2017-01-09 09:48, Szládovics Péter escreveu: 2017-01-09 12:29 keltezéssel, 
> Alexandre Zuotoski Neto (t...@csmcalderaria.com.br) írta:
> 
> Hi! 
> 
> I saw that SOGo now supports active directory avatars (I guess that it also 
> supports MS-AD thumbnalPhoto/jpegPhoto attribute). Is it correct? If so, how 
> to do it, please? 
> 
> Thanks you! 
> Hi Alexandre,
> 
> For example: if you have a thumbnail in /path/example.jpg, then you can do it 
> with the following method.
> echo "dn: cn=example.user,dc=example,dc=com
> changetype: modify
> add: jpegPhoto
> jpegPhoto:< file://path/example.jpg [3]
> -
> add: thumbnailPhoto
> thumbnailPhoto:< file://path/example.jpg [3]" | ldapmodify -D 
> cn=administrator,dc=example,dc=com -W It adds both attribute to the user's 
> attributes after you give the administrator' password.
> You need the ldap-utils package for do that.
> 
> If user have an other jpeg thumbnail avater, then you need to use the 
> "replace" command instead of "add". I think you can use the ldbmodify instead 
> of ldapmodify with similar syntax, but not sure to same. I usually use above.
> 
> Cheers,
> Peti
> 
> -- 
> users@sogo.nu
> https://inverse.ca/sogo/lists [4]

-- 
users@sogo.nu
https://inverse.ca/sogo/lists [4] 
-- 
users@sogo.nu
https://inverse.ca/sogo/lists 

Links:
--
[1] http://www.csmcalderaria.com.br
[2] http://www.csmcalderaria.com.br/
[3] file://path/example.jpg
[4] https://inverse.ca/sogo/lists
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] AD avatar - How to?

2017-01-09 Thread p...@szladovics.hu
2017-01-09 13:46 keltezéssel, Christoph Kreutzer 
(kreutzer.christ...@gmail.com) írta:

Hi Alex,

That's easy.
SOGo by default uses the photo LDAP attribute. You need to create a 
Mapping from photo to thumbnailPhoto or jpegPhoto, or both. See the 
documentation for LDAP UserSource mapping, I don't have it in my mind.


It should look somehow like
photo = ("thumbnailPhoto", "jpegPhoto")


You're right! 
https://sogo.nu/files/docs/SOGoInstallationGuide.html#_ldap_attributes_mapping
I searched 'jpegphoto' and 'thumbnailphoto', but neither on the doc. But 
this link contains the "photo" part. :) Thanks.

--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] AD avatar - How to?

2017-01-09 Thread Alexandre Zuotoski Neto
 

Hi Christoph, 

 Thanks, that did the trick. Actually I had added the mapping, but I
guess that that I've chosen the wrong attribute, now to be sure that it
will bring the image, I used both (like in your example). The
documentation like that explains how to do it is here:
https://sogo.nu/files/docs/SOGoInstallationGuide.html#_ldap_attributes_mapping


Here is how my sogo.conf looks like now - I just replaced some personal
data, like server names and passwords, by uppercase words, like
MY_AD_DOMAIN, for example: 

" 

SOGoUserSources = (
 {
 type = ldap;
 hostname = "ldap://MY_AD_SERVER_ADDRESS_GOES_HERE;;
 baseDN = "CN=users,DC=MY_AD_DOMAIN";
 //bindAsCurrentUser = YES;
 bindDN = "ADUSER_TO_READ_MY_AD@MY_DOMAIN";
 bindPassword = "MY_AD_USER_THAT_READS_AD";
 filter = "((memberOf='CN=SOME_AD_LEVEL,CN=Users,DC=MY_AD_DOMAIN' AND
NOT useraccountcontrol:1.2.840.113556.1.4.803:='2') OR
(memberOf='CN=SOME_AD_LEVEL_FOR_GROUPS,CN=Users,DC=MY_AD_DOMAIN'))";
 //filter = "mail='*'";
 scope = SUB; 

// The algorithm used for password encryption when changing
 // passwords without Password Policies enabled.
 // Possible values are: plain, crypt, md5-crypt, ssha, ssha512.
 userPasswordAlgorithm = plain; 

IDFieldName = cn;
 bindFields = (sAMAccountName);
 CNFieldName = cn;
 // value of UID field must be unique on whole server.
 UIDFieldName = sAMAccountName;
 IMAPLoginFieldName = mail;
 SearchFieldNames = (cn, sn, displayName, mail, otherMailbox, name);
 canAuthenticate = YES;
 displayName = "THE NAME FOR MY GLOBAL CATALOG THAT WILL SHOW UP IN SOGO
INTERFACE";
 id = directory;
 isAddressBook = YES;
 mapping = {
 photo = ("thumbnailPhoto","jpegPhoto");
 }; 

} 

); 

" 

 Now I'll try to make it work with CalDavSynchronizer with Outlook and
if it works, that will be just perfect. 

Thank you! 

--- 

 [1] 
ALEX ZUOTOSKI
Tecnologia da Informação
Fones: +5541-3641-4250 / Ramal 229
E-mails: a...@csmcalderaria.com.br / t...@csmcalderaria.com.br 
 [1] 

http://www.csmcalderaria.com.br [2] 

Em 2017-01-09 10:46, Christoph Kreutzer escreveu: 

> Hi Alex, 
> 
> That's easy. 
> SOGo by default uses the photo LDAP attribute. You need to create a Mapping 
> from photo to thumbnailPhoto or jpegPhoto, or both. See the documentation for 
> LDAP UserSource mapping, I don't have it in my mind. 
> 
> It should look somehow like 
> photo = ("thumbnailPhoto", "jpegPhoto") 
> 
> Best regards, 
> Christoph 
> 
> Am 09.01.2017 um 13:03 schrieb Alexandre Zuotoski Neto 
> (t...@csmcalderaria.com.br) :
> 
> Hi! 
> 
> Thanks for reply. If I understood, your examples are on how to add images to 
> AD. My MS-AD already have users images, I wanna use them in SOGo, like I 
> alredy do in Roundcube, GLPI, Openfire, etc. 
> 
> How can I import/show my AD users images into SOGo? 
> 
> Cheers. 
> 
> ---
> 
> [1] 
> ALEX ZUOTOSKI
> Tecnologia da Informação
> Fones: +5541-3641-4250 / Ramal 229
> E-mails: a...@csmcalderaria.com.br / t...@csmcalderaria.com.br 
> [1] 
> 
> http://www.csmcalderaria.com.br [2] 
> 
> Em 2017-01-09 09:48, Szládovics Péter escreveu: 2017-01-09 12:29 keltezéssel, 
> Alexandre Zuotoski Neto (t...@csmcalderaria.com.br) írta:
> 
> Hi! 
> 
> I saw that SOGo now supports active directory avatars (I guess that it also 
> supports MS-AD thumbnalPhoto/jpegPhoto attribute). Is it correct? If so, how 
> to do it, please? 
> 
> Thanks you! 
> Hi Alexandre,
> 
> For example: if you have a thumbnail in /path/example.jpg, then you can do it 
> with the following method.
> echo "dn: cn=example.user,dc=example,dc=com
> changetype: modify
> add: jpegPhoto
> jpegPhoto:< file://path/example.jpg [3]
> -
> add: thumbnailPhoto
> thumbnailPhoto:< file://path/example.jpg [3]" | ldapmodify -D 
> cn=administrator,dc=example,dc=com -W It adds both attribute to the user's 
> attributes after you give the administrator' password.
> You need the ldap-utils package for do that.
> 
> If user have an other jpeg thumbnail avater, then you need to use the 
> "replace" command instead of "add". I think you can use the ldbmodify instead 
> of ldapmodify with similar syntax, but not sure to same. I usually use above.
> 
> Cheers,
> Peti
> 
> -- 
> users@sogo.nu
> https://inverse.ca/sogo/lists [4]

-- 
users@sogo.nu
https://inverse.ca/sogo/lists [4] 
-- 
users@sogo.nu
https://inverse.ca/sogo/lists 

Links:
--
[1] http://www.csmcalderaria.com.br
[2] http://www.csmcalderaria.com.br/
[3] file://path/example.jpg
[4] https://inverse.ca/sogo/lists
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] AD avatar - How to?

2017-01-09 Thread Christoph Kreutzer
Hi Alex,

That's easy.
SOGo by default uses the photo LDAP attribute. You need to create a Mapping 
from photo to thumbnailPhoto or jpegPhoto, or both. See the documentation for 
LDAP UserSource mapping, I don't have it in my mind.

It should look somehow like
photo = ("thumbnailPhoto", "jpegPhoto")

Best regards,
Christoph

> Am 09.01.2017 um 13:03 schrieb Alexandre Zuotoski Neto 
> (t...@csmcalderaria.com.br) :
> 
> Hi!
> 
>Thanks for reply. If I understood, your examples are on how to add images 
> to AD. My MS-AD already have users images, I wanna use them in SOGo, like I 
> alredy do in Roundcube, GLPI, Openfire, etc. 
> 
>How can I import/show my AD users images into SOGo?
> 
> Cheers.
> 
>  
> 
> ---
> 
> Alex Zuotoski
> Tecnologia da Informação
> Fones: +5541-3641-4250 / Ramal 229
> E-mails: a...@csmcalderaria.com.br / t...@csmcalderaria.com.br
> 
> http://www.csmcalderaria.com.br
> 
> Em 2017-01-09 09:48, Szládovics Péter escreveu:
> 
>> 2017-01-09 12:29 keltezéssel, Alexandre Zuotoski Neto 
>> (t...@csmcalderaria.com.br) írta:
>>> Hi!
>>> 
>>>I saw that SOGo now supports active directory avatars (I guess that it 
>>> also supports MS-AD thumbnalPhoto/jpegPhoto attribute). Is it correct? If 
>>> so, how to do it, please?
>>> 
>>> Thanks you!
>>> 
>> 
>> Hi Alexandre,
>> 
>> For example: if you have a thumbnail in /path/example.jpg, then you can do 
>> it with the following method.
>>> echo "dn: cn=example.user,dc=example,dc=com
>>> changetype: modify
>>> add: jpegPhoto
>>> jpegPhoto:< file://path/example.jpg
>>> -
>>> add: thumbnailPhoto
>>> thumbnailPhoto:< file://path/example.jpg" | ldapmodify -D 
>>> cn=administrator,dc=example,dc=com -W
>> It adds both attribute to the user's attributes after you give the 
>> administrator' password.
>> You need the ldap-utils package for do that.
>> 
>> If user have an other jpeg thumbnail avater, then you need to use the 
>> "replace" command instead of "add". I think you can use the ldbmodify 
>> instead of ldapmodify with similar syntax, but not sure to same. I usually 
>> use above.
>> 
>> Cheers,
>> Peti
>> -- 
>> users@sogo.nu
>> https://inverse.ca/sogo/lists
> -- 
> users@sogo.nu
> https://inverse.ca/sogo/lists
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] AD avatar - How to?

2017-01-09 Thread p...@szladovics.hu
2017-01-09 12:29 keltezéssel, Alexandre Zuotoski Neto 
(t...@csmcalderaria.com.br) írta:


Hi!

   I saw that SOGo now supports active directory avatars (I guess that 
it also supports MS-AD thumbnalPhoto/jpegPhoto attribute). Is it 
correct? If so, how to do it, please?


Thanks you!



Hi Alexandre,

For example: if you have a thumbnail in /path/example.jpg, then you can 
do it with the following method.


   echo "dn: cn=example.user,dc=example,dc=com
   changetype: modify
   add: jpegPhoto
   jpegPhoto:< file://path/example.jpg
   -
   add: thumbnailPhoto
   thumbnailPhoto:< file://path/example.jpg" | ldapmodify -D
   cn=administrator,dc=example,dc=com -W

It adds both attribute to the user's attributes after you give the 
administrator' password.

You need the ldap-utils package for do that.

If user have an other jpeg thumbnail avater, then you need to use the 
"replace" command instead of "add". I think you can use the ldbmodify 
instead of ldapmodify with similar syntax, but not sure to same. I 
usually use above.


Cheers,
Peti
--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] AD avatar

2016-07-13 Thread Chris Coleman



On 7/13/2016 3:26 PM, Alexandre Zuotoski Neto (t...@csmcalderaria.com.br) 
wrote:

Do you mean from jpegPhoto and/or thumbnailPhoto attribute?
I'm interested in this method too :)

If isn't any way for set it, then it should be a fancy feature request (like 
the LDAP Attributes Mapping method).


Yes, that's what I mean. It works for Roundcube, Openfire, GLPI, etc.



Similar to a feature request I made, which was added to sogo, to show 
the public gravatar.com thumbnail photo, associated with any email 
address found in the header of any email message...


As I said, there's open source code for getting and displaying the 
jpegPhoto and thumbnailPhoto from the AD / LDAP attributes.  This should 
be easily added to sogo.  Every email address should show the small 
picture of the person next to it, it's a great way to make messaging 
more user-friendly today.


--
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] AD avatar

2016-07-13 Thread Alexandre Zuotoski Neto
 

> Do you mean from jpegPhoto and/or thumbnailPhoto attribute?
> I'm interested in this method too :)
> 
> If isn't any way for set it, then it should be a fancy feature request (like 
> the LDAP Attributes Mapping method).

Yes, that's what I mean. It works for Roundcube, Openfire, GLPI, etc. 
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] AD avatar

2016-07-13 Thread p...@szladovics.hu
2016-07-13 18:35 keltezéssel, Alexandre Zuotoski Neto 
(t...@csmcalderaria.com.br) írta:
Hi! Is there any way to map avatar from AD? I already use the AD 
avatar in Roundcube, GLPI, Spark, etc., but couldn't find the field to 
map in SOGo.


Do you mean from jpegPhoto and/or thumbnailPhoto attribute?
I'm interested in this method too :)

If isn't any way for set it, then it should be a fancy feature request 
(like the LDAP Attributes Mapping method).

--
users@sogo.nu
https://inverse.ca/sogo/lists