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
  #11 (permalink)  
Old 08-18-2009, 02:57 AM
Elite Member
 
Posts: 296
Default

in most LDAP server or client query(via ldapsearch), it will limit the maximum returned results to 20000, may i learn from you that if this script has such limit ?

Thanks.
Reply With Quote
  #12 (permalink)  
Old 08-18-2009, 03:05 AM
Trained Alumni
 
Posts: 32
Default

have a look at

Nordic Edge Knowledge Base :: NSD1122 How to change the LDAP search limit limitation of 1000 objects in AD LDS

What the Maximum Limit is, I don't know....

But you could break the script up to look at each OU in turn....
Reply With Quote
  #13 (permalink)  
Old 08-28-2009, 12:41 PM
Advanced Member
 
Posts: 191
Default

How do you run this script in zimbra?
Reply With Quote
  #14 (permalink)  
Old 08-28-2009, 01:05 PM
Trained Alumni
 
Posts: 32
Default

You cannot run this from within Zimbra. This is for any Linux (Redhat etc)
Reply With Quote
  #15 (permalink)  
Old 08-29-2009, 07:02 PM
Advanced Member
 
Posts: 191
Default

Well, I was refering to my ubuntu box as my zimbra server
Reply With Quote
  #16 (permalink)  
Old 09-01-2009, 10:08 AM
Senior Member
 
Posts: 58
Default

Just put the script on any directory of the server filesystem, set the owner to zimbra and run it as zimbra user. For example:

su - root
chown root:zimbra /opt/zimbra/zsync_ad.sh
chmod 750 /opt/zimbra/zsync_ad.sh
su - zimbra
/opt/zimbra/zsync_ad.sh

Then, you can schedule it with cron.
__________________
- dgamez -

Netnovation Vzla, S.A.
Zimbra VAR

Caracas - Venezuela
Reply With Quote
  #17 (permalink)  
Old 09-01-2009, 02:11 PM
Senior Member
 
Posts: 58
Thumbs up Active Directory Script to import users to Zimbra

Que tal Eduardo, tu script es la CAÑA!!

Regarding to your comment:

"Maybe to simplify the script should create 2 output files, one with just the email, to make the diff, and other one with the attributes, which can be grep-ed on real time just before zmprov command.

Hey! This mod sounds quite interesting, as it will make a powerful script.

I will also add a previous modification I made in a recent zimbra installation so that the script checks the availability of both ldap servers to make sure they're online."

Did you success with both issues ?

Saludos!
__________________
- dgamez -

Netnovation Vzla, S.A.
Zimbra VAR

Caracas - Venezuela
Reply With Quote
  #18 (permalink)  
Old 10-16-2009, 11:46 AM
Junior Member
 
Posts: 5
Default

please could somebody help me?
your script can help me out creating account directly from AD. But is it possible to automatically get aliases (in zimbra) filled in with "email address" from AD ldap?

in fact in my AD actually usernames are 4 char. four@domain.tld
but my actual mail server (courier imap under centos) usernames are n.surname@domain.tld. my AD is filled up with email address..

so i want to migrate to zimbra OSS. (in test progress)
bulk create user from AD so user will have same password to acces AD and zimbra... but
want that they are still reachable with their old mail address so need to fill zimbra aliase automatically with AD email address field.

Is ist possible? please can some one help modify the scrip in that way?
Reply With Quote
  #19 (permalink)  
Old 11-11-2009, 02:42 AM
Trained Alumni
 
Posts: 32
Default

Quote:
Originally Posted by khiloc View Post
please could somebody help me?
your script can help me out creating account directly from AD. But is it possible to automatically get aliases (in zimbra) filled in with "email address" from AD ldap?
Yep

See my script I used AD LDAP to create all aliases....
Reply With Quote
  #20 (permalink)  
Old 11-26-2009, 01:45 PM
Intermediate Member
 
Posts: 15
Default

Quote:
Originally Posted by sgros View Post
Maybe someone could find this useful. I wrote a python script to do that, but instead of deleting account I put it into closed state in order to be able to perform archival steps prior to removal but also to protect account from bugs that could cause it to be removed (loosing all the mails) while in fact it is still active.

In the course of this, I also wrote Python class to handle Zimbra administration connections that wraps SOAP messages. It's not finished as I don't have time now, but if anyone is interested the code can be found here:

Stjepan Groš - Homepage

S
I've checked your web and there is only the class used for Zimbra Admin, but not the script you refer on you post. Would it be possible for you to share it with us ?

Regards,
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.