User Tools

Site Tools


zimbragal

This is an old revision of the document!


Lo mas importate es que todo el trabajo con una GAL debe hacerse en el storage donde este guardada la GAL

https://wiki.zimbra.com/wiki/Steps_to_make_two_domains%27_GAL_available_for_each_other

https://wiki.zimbra.com/wiki/Steps_to_add_and_remove_datasource_from_GAL_account

zmprov getDataSources galsync@uclv.edu.cu


cd /opt/zimbra
source bin/zmshutil; zmsetvars

zmgsautil addDataSource -a galsync@uclv.edu.cu -n AnotherGAL --domain uclv.edu.cu -t ldap -f _AnotherGAL -p 6h

#para borrar un datasource
zmprov deleteDataSource galsync@uclv.edu.cu AnotherGAL

#para ver los contactos en el dominio zimbra.uclv.cu
zmprov mds galsync@uclv.edu.cu  AnotherGAL zimbraGalSyncLdapBindDn $zimbra_ldap_userdn zimbraGalSyncLdapBindPassword $zimbra_ldap_password zimbraGalSyncLdapFilter '(&(mail=*)(zimbraAccountStatus=active)(!(zimbraHideInGAL=TRUE)))' zimbraGalSyncLdapSearchBase dc=zimbra,dc=uclv,dc=cu zimbraGalSyncLdapURL ldap://mail-ldap-1.uclv.cu:389

después de esto debe verse algo asi mas o menos

zmprov getDataSources galsync@uclv.edu.cu

# name AnotherGAL
# type gal
objectClass: zimbraDataSource
objectClass: zimbraGalDataSource
zimbraCreateTimestamp: 20170902142734.920Z
zimbraDataSourceEnabled: TRUE
zimbraDataSourceFolderId: 15971
zimbraDataSourceId: 80ebe048-a1f0-4cb2-9050-6c8d90e001e6
zimbraDataSourceName: AnotherGAL
zimbraDataSourcePollingInterval: 6h
zimbraDataSourceType: gal
zimbraGalStatus: enabled
zimbraGalSyncLdapBindDn: uid=zimbra,cn=admins,cn=zimbra
zimbraGalSyncLdapBindPassword: lI45AEsW6
zimbraGalSyncLdapFilter: (&(mail=*)(zimbraAccountStatus=active)(!(zimbraHideInGAL=TRUE)))
zimbraGalSyncLdapSearchBase: dc=zimbra,dc=uclv,dc=cu
zimbraGalSyncLdapURL: ldap://mail-ldap-1.uclv.cu:389
zimbraGalType: ldap

si no está habilitada hacerlo

 zmprov mds galsync@uclv.edu.cu AnotherGAL zimbraDataSourceEnabled TRUE

forzar la sincronización

 zmgsautil forceSync -a galsync@uclv.edu.cu -n AnotherGAL 

mostrar las cantidades

root@mail-storage-1:/opt/zimbra# zmmailbox -z -m galsync@uclv.edu.cu gaf
        Id  View      Unread   Msg Count  Path
----------  ----  ----------  ----------  ----------
         1  unkn           0           0  /
     15971  cont           0           3  /_AnotherGAL
       257  cont           0        1405  /_zimbra
        16  docu           0           0  /Briefcase
        10  appo           0           0  /Calendar
        14  mess           0           0  /Chats
         7  cont           0       13432  /Contacts
         6  mess           0           0  /Drafts
        13  cont           0           0  /Emailed Contacts
         2  mess           0           0  /Inbox
         4  mess           0           0  /Junk
         5  mess           0           0  /Sent
        15  task           0           0  /Tasks
         3  unkn           0           0  /Trash
root@mail-storage-1:/opt/zimbra#
zimbragal.1504363228.txt.gz · Last modified: 2017/09/02 10:40 by moliver