Results 1 to 2 of 2

Thread: Sharing, Mounting and Distribution Lists

  1. #1
    Join Date
    Jan 2009
    Posts
    2
    Rep Power
    6

    Default Sharing, Mounting and Distribution Lists

    Hi!
    My Problem:
    I want to share a lot of things to my users - to different groups wich may contain other groups(3k).
    Here's the script I'm using for managing the shares (atm the script does only the sharing, the permissions have to be set in the gui.)

    #!/usr/bin/perl

    print "Groupname? ";
    chomp ($distributionlist = <>);
    print "Domain of the Group? (without @) ";
    chomp ($listdomain = <>);
    print "Name of the Share? ";
    chomp ($share = <>);
    print "Name of Mountpoint? ";
    chomp ($name = <>);
    print "Account Name of the original Share? ";
    chomp ($accountname = <>);
    print "Domain of the Account? (without @) ";
    chomp ($domainname = <>);
    my $gdl = `/opt/zimbra/bin/zmprov gdl $distributionlist\@$listdomain|grep zimbraMailForwardingAddress:`;
    my @dlmembers = split('\n', $gdl);
    foreach $member(@dlmembers){
    $member =~ s/zimbraMailForwardingAddress:\s*|\s*$//g;
    print " - Got member '$member'.\n";
    system("zmmailbox -z -m $member createMountpoint /$name $accountname\@$domainname /$share");
    }

    It works fine with groups which do not have other groups included.
    Is there any way to get all accounts of a "group-hierarchy"?

    thanks!

  2. #2
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    having just learned what this does this morning, the command zmprov gdlm listname will get you all distribution lists that are a member of that parent. does this help you?

Posting Permissions

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