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 Display Modes
  #11 (permalink)  
Old 08-18-2009, 03:57 AM
Advanced Member
 
Posts: 197
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, 04:05 AM
Junior Member
 
Posts: 9
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, 01:41 PM
Special Member
 
Posts: 107
Default

How do you run this script in zimbra?
Reply With Quote
  #14 (permalink)  
Old 08-28-2009, 02:05 PM
Junior Member
 
Posts: 9
Default

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

Well, I was refering to my ubuntu box as my zimbra server
Reply With Quote
  #16 (permalink)  
Old 09-01-2009, 11:08 AM
Active Member
 
Posts: 46
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 -
Zimbra Freak (since 2004).

Caracas - Venezuela
Reply With Quote
  #17 (permalink)  
Old 09-01-2009, 03:11 PM
Active Member
 
Posts: 46
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 -
Zimbra Freak (since 2004).

Caracas - Venezuela
Reply With Quote
  #18 (permalink)  
Old 10-16-2009, 12:46 PM
Starter Member
 
Posts: 1
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, 03:42 AM
Junior Member
 
Posts: 9
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
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0