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: 
> 
> " 
> 
> <LoadError>
> <EntityId>/SOGo/dav/alex/Contacts/directory/User1%20CSM</EntityId>
> <Error>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&amp; vcard, WebResourceName uriOfAddressbookForLogging, 
> vCardStandardReader deserializer, ILoadEntityLogger logger)</Error>
> <IsAEntity>false</IsAEntity>
> </LoadError> 
> 
> " 
> 
> 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/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECA
> wQFBgcICQoL/8QAtRAAnAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII
> 0KxwRVS0fAkM2JyggkKnFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZna
> Glqc3R1dnd4eXqDhIWGnh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJy
> tLT1NXW19jZ2uHi4+Tln5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECA
> wQFBgcICQoL/8QAtREAnAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRo
> bHBCSMzUvAVYnLRChYknNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ
> 2hpanN0dXZ3eHl6goOEnhYaHiImKkpOUl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KCMZB6HAzRcCSKXakitnkY6U
> y9ile3CAqDGM7ucnnqfnw4oaTVmMfFOfmXIU5AI6An3xSuwaMmMbvaoUWJ33OmQcED0PrUzFI
> U3HucYAoAI0YJsLgHrnnFSRyNFnaRz14pisT8wQ4Lbc1JFsWYLIuRnkUATC4hyMvx34NWLK83
> Sh5WGORkD24qhKyM5Man4HYVJbSKSqAH5clvfigD/9k=
> END:VCARD" 
> 
> I am using Outlook 2016, CalDavSynchronizer 2.13.00. 
> 
> If I remove the photo mapping, the error disappears. 
> 
> Someone else had a similar problem, which was posted in CalDavSynchronizer 
> forum, and the answer leads to understand that is a file generation problem, 
> not something related to CalDav itself: 
> 
> https://sourceforge.net/p/outlookcaldavsynchronizer/discussion/general/thread/d6640b37/
>  
> 
> The mapping is working fine on SOGo web interface, except that it shows the 
> contacts images only in the Catalog page, it doesn't show their images in the 
> e-mail (INBOX) page for example, it shows generic icons instead - but that 
> wouldn't be a big deal for now. 
> 
> It's very important that it also work with CalDav and Outlook. So, I am again 
> unabled to put SOGo in a production environment. It is just a detail, but it 
> is important for our users and I have to take the chance to deal with any 
> kind of issue, problems or missing features while it is still in tests fase. 
> Don't get me wrong, SOGo is brilliant and all the features that it already 
> has is amazing, the problem that I am "reporting/asking for help" is just a 
> detail, but as I said, it is an important detail for our users. 
> 
> 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 11:08, Szládovics Péter escreveu: 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
>  [3]
> 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

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

Links:
------
[1] http://www.csmcalderaria.com.br
[2] http://www.csmcalderaria.com.br/
[3]
https://sogo.nu/files/docs/SOGoInstallationGuide.html#_ldap_attributes_mapping
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to