Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-20-2011, 04:48 AM
Senior Member
 
Posts: 63
Default Photos in global address list

Hi,

somebody know how to give to Zimbra GAL photos from external LDAP? I have photo in jpegPhoto, but there is no photo in Zimbra Address book, people search etc.

Thank you,
Meesha

Last edited by meesha; 06-20-2011 at 04:49 AM.. Reason: typo
Reply With Quote
  #2 (permalink)  
Old 06-21-2011, 12:06 PM
Active Member
 
Posts: 32
Default

I believe this is only possible using Zimbra's internal GAL (AFAIK). You can technically sync to Active Directory (using a GAL sync account) and then modify the GAL from the GAL sync account (via ZimbraAdmin) -- however, it's worth noting that any changes will be overwritten when the account synchronizes with AD again...

The photos DO show and CAN be added via your GAL Sync Account, but they'll be removed after your external GAL resyncs w/ AD/OpenLDAP. I'm hoping a Zimbra staff member might tell me I'm wrong (because I'd really love to map this attribute, too), but I haven't been able to find a Zimbra LDAP attribute to map jpegPhoto or thumbnailPhoto (AD) to...
Reply With Quote
  #3 (permalink)  
Old 06-21-2011, 12:22 PM
Senior Member
 
Posts: 63
Default

I am going to test add special scheme with "photo" item like in zimbra LDAP scheme. I'll let you know if is it working.

It would be good, if some zimbra stuff let here know if we can use GAL photos directly from external account without sync and next photo adding operations.
Reply With Quote
  #4 (permalink)  
Old 06-21-2011, 01:08 PM
Active Member
 
Posts: 32
Default

If you try to map the attributes using

zmprov mcf +zimbraGalLdapAttrMap thumbnailPhoto=photo

OR

zmprov mcf +zimbraGalLdapAttrMap thumbnailPhoto=jpegPhoto

It will only yield a bunch of jibberish in your contact entries that contain a photo... I tried mapping to the 'image' attribute, too, but that yielded no result.
Reply With Quote
  #5 (permalink)  
Old 06-22-2011, 12:37 AM
Senior Member
 
Posts: 63
Default

Mapping attributes like o=company etc. is working. Map jpegPhoto=photo or thumbnailphoto display raw jpeg data in others. I will test storage format and compare saved photo in local LDAP with external LDAP.
Reply With Quote
  #6 (permalink)  
Old 06-22-2011, 03:47 AM
Senior Member
 
Posts: 63
Default

So there is no other idea. Mapping works fine, but zimbra can't work with data in the photo/jpegPhoto item and displays them as raw data to the Other section. Is GAL photo display supported from external LDAP?

I have found Contacs are saved in the mysql DB and photos are stored like email in store folder, like email attachement.

I have no other idea.
Reply With Quote
  #7 (permalink)  
Old 08-04-2011, 07:54 AM
Outstanding Member
 
Posts: 708
Default

When I created a dummy domain, I noticed that the default maps for 7.1.1 now include:

zimbraGalLdapAttrMap: (certificate) userCertificate=userCertificate
zimbraGalLdapAttrMap: (binary) userSMIMECertificate=userSMIMECertificate

Alas, defining a map (binary) jpegPhoto=photo just pastes the base64-encoded photo, which is probably what you meant by "a bunch of jibberish in your contact entries." But clearly the infrastructure is 90% there now.
Reply With Quote
  #8 (permalink)  
Old 08-04-2011, 08:43 AM
Outstanding Member
 
Posts: 708
Default

From com/zimbra/cs/account/AttributeType.java, the allowable types are

Code:
    TYPE_BOOLEAN("boolean"),
    TYPE_BINARY("binary"),
    TYPE_CERTIFICATE("certificate"),
    TYPE_DURATION("duration"),
    TYPE_GENTIME("gentime"),
    TYPE_EMAIL("email"),
    TYPE_EMAILP("emailp"),
    TYPE_CS_EMAILP("cs_emailp"),
    TYPE_ENUM("enum"),
    TYPE_ID("id"),
    TYPE_INTEGER("integer"),
    TYPE_PORT("port"),
    TYPE_PHONE("phone"),
    TYPE_STRING("string"),
    TYPE_ASTRING("astring"),
    TYPE_OSTRING("ostring"),
    TYPE_CSTRING("cstring"),
    TYPE_REGEX("regex"),
    TYPE_LONG("long");
It's possible that I missed some combination or missed the flush cache/force sync (zmprov fc all;zmgsautil forceSync -a gal_sync@example.com -n external), but I don't think any of them work. They definitely do affect processing -- sometimes I see binary gunk in mailbox.log's complaints about inability to index binary data, sometimes I see base64 encoding, and sometimes I see what could be a mktemp filename.

Looks like the only thing to do today is slurp down LDAP on my own and use ModifyContactRequest SOAP calls to shove jpeg's into the galsync account's contacts.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.