Results 1 to 2 of 2

Thread: Single GAL for multiple domains

  1. #1
    Join Date
    Jan 2014
    Location
    Netherlands
    Posts
    4
    Rep Power
    1

    Default Single GAL for multiple domains

    Hi All,

    I created 2 domains and a admin user for the first domain. Used
    NE_admin_guide_8.Creating_Delegated_Administrator_ Roles
    to give the admin rights to created users for both domains.

    With the admin user created 2 users for each domain.

    If a created user now logs in and searches in the addressbook, only
    users from his own domain are returned. Where i would expected that
    users from both domains are listed.

    How can i config this?

  2. #2
    Join Date
    Jan 2014
    Location
    Netherlands
    Posts
    4
    Rep Power
    1

    Default

    Till https://bugzilla.zimbra.com/show_bug.cgi?id=7426 is implemented, i can live with the following script...

    Code:
    #! /bin/sh
    
    domains1=( domainA.eu domainB.eu)
    domains2=( domainC.eu domainD.eu domainE.eu )
    
    for j in {1..2}
    do
      n="domains$j[@]"
      arr=("${!n}")
      echo "Share GAL Domains: ${!n}"
      for (( k = 0 ; k < ${#arr[@]} ; k++ ))
      do
        echo "Processing: ${arr[$k]}"
        for (( d = 0 ; d < ${#arr[@]} ; d++ ))
        do
          sourcedomain=`echo ${arr[$k]} | cut -f1 -d'.'`
          sourceext=`echo ${arr[$k]} | cut -f2 -d'.'`
    
          if [ ${arr[$k]} != ${arr[$d]} ]; then
            echo " ${arr[$k]} --> ${arr[$d]}"
    
            targetdomain=`echo ${arr[$d]} | cut -f1 -d'.'`
            targetext=`echo ${arr[$d]} | cut -f2 -d'.'`
    
            zmgsautil addDataSource -a galsync@${arr[$k]} \
                                    -n ${sourcedomain}${sourceext}${targetdomain}${targetext}Gal \
                                    --domain ${arr[$k]} \
                                    -t ldap \
                                    -f _${sourcedomain}${sourceext}${targetdomain}${targetext}Gal \
                                    -p 1m \
                                    2>/dev/null 1>&2
    
    
            zmprov mds galsync@${arr[$k]} ${sourcedomain}${sourceext}${targetdomain}${targetext}Gal \
                       zimbraGalSyncLdapBindDn <binddn> \
                       zimbraGalSyncLdapBindPassword <password> \
                       zimbraGalSyncLdapFilter '(&(|(sn=%s*)(gn=%s*)(mail=%s*)))' \
                       zimbraGalSyncLdapSearchBase dc=${targetdomain},dc=${targetext} \
                       zimbraGalSyncLdapURL ldap://<zimbraldapserver>:389
    
            zmgsautil forceSync -a galsync@${arr[$k]} -n ${sourcedomain}${sourceext}${targetdomain}${targetext}Gal
          fi
        done
      done
      echo
    done
    GAL should be set to both in the admin interface.

    This wil make that DomainA and DomainB see each other users, the same for DomainC, DomainD and DomainE.
    Drawback (for which i can find at this moment) is that resources from DomainB are shown as users at DomainA

Similar Threads

  1. Replies: 1
    Last Post: 05-20-2014, 07:46 AM
  2. configuring multiple domains on a single server
    By forexmgr in forum Installation
    Replies: 45
    Last Post: 01-08-2013, 11:31 PM
  3. Single zimbra mail server with multiple domains
    By Rk_Raj in forum Administrators
    Replies: 6
    Last Post: 03-15-2012, 03:57 AM
  4. [SOLVED] A single server and multiple domains, how?
    By thiagopassamani in forum Administrators
    Replies: 6
    Last Post: 10-21-2010, 03:38 AM
  5. Multiple domains, single account
    By roastpork in forum Administrators
    Replies: 1
    Last Post: 02-08-2006, 08:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •