Script to extract data from Active Directory and import in Zimbra Ldap


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Script to extract data from Active Directory and import in Zimbra Ldap
# 1  
Old 06-03-2016
Script to extract data from Active Directory and import in Zimbra Ldap

Hello Experts,

I have this specific requirment where i need to download/extract from AD (Firstname, LastName, etc) and upload the same to Ldap used by Zimbra mail server running on Suse Linux.

I know how to manually do that, but that is the not the solution. I am not yet sure on how to start and automate this with a shell script. Thanks in advance.

-S
# 2  
Old 06-03-2016
Hi Siddheshk,

you may query your AD-Server with ldapsearch and may import that at your linux-ldap-server again with ldapadd or ldapmodify. Maybe there's also possible that your zarafa can query the AD himself(Probably only if you have the commercial version of zarafa installed).

A first google led me to this:

5.3. Configure ZCP Active Directory integration
# 3  
Old 06-03-2016
Hi,

We are using the Zimbra and it does not fetch all the parameters from AD. so i need to write a script to get the required data.

-S
# 4  
Old 06-03-2016
Ups. Sorry. Read error on my side. Zimbra instead of zarafa.

Maybe this may help?

Configure authentication with Active Directory - Zimbra :: Tech Center
LDAP Authentication - Zimbra :: Tech Center
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Using bash script : How to Import data from a dsv file into multiple tables in mysql

HI I have a dsv file that looks like: <<BOF>> record_number|id_number|first name|last name|msisdn|network|points|card number|gender 312|9101011234011|Test Junior|Smith|071 123 4321|MTN|73|1241551413214444|M 313|9012023213011|Bob|Smith|27743334321|Vodacom|3|1231233232323244|M... (4 Replies)
Discussion started by: tera
4 Replies

2. UNIX for Beginners Questions & Answers

Active Directory OR LDAP

Hi, How can we check users added through LDAP or AD. Users added through a group of AD or LDAP group. (2 Replies)
Discussion started by: Nishit
2 Replies

3. Shell Programming and Scripting

Import Maildir (Postfix) to zimbra

Dear, I want to migrate mailbox from ISP Config (postfix) to zimbra. and have tried import maildir to zimbra with script : #!/bin/bash # # Maildir to Zimbra import # Drop in your user root and run as superuser. # ZMM="/opt/zimbra/bin/zmmailbox" domain="psmti.org" # change to... (0 Replies)
Discussion started by: arsyam
0 Replies

4. Solaris

LDAP Problem during Kerberos setting for Win server 03 Active Directory

Hi, FYI, I'm new in Solaris I'm trying to use Kerberos on authenticating LDAP Client with the Active Directory on Windows Server 2003 on both Solaris 10 5/08 and Solaris 10 9/10 by referring to the pdf file kerberos_s10.pdf available at sun official site. ... (0 Replies)
Discussion started by: chongzh
0 Replies

5. Red Hat

ldap and active directory

Hi Friends, I need your help to get some solution of one of my problem. Ours is a mixed domain. Most of the servers are windows and very little linux servers. We are using the MS AD for authentication. My problem is, I want to authenticate linux servers against AD. I donot want to use any... (1 Reply)
Discussion started by: arumon
1 Replies

6. Shell Programming and Scripting

UNIX Script to query Active Directory: give cn (NT login name) and receive mail (Email address)

Hi folks I need to write UNIX script (with ldapsearch) to query Active Directory. Input is NT login name and output is Email address. Attached a screenshot of Sysinternals "AD Explorer". I need to do the same in CLI. http://i.imgur.com/4s6FB.png I am absolute LDAP/ldapsearch noob. (0 Replies)
Discussion started by: slashdotweenie
0 Replies

7. UNIX for Advanced & Expert Users

Compiling Samba from Source on AIX, Active Directory, LDAP, Kerberos

Hello, I asked this question in the AIX subforum but never received an answer, probably because the AIX forum is not that heavily trafficked. Anyway, here it is.. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs... (9 Replies)
Discussion started by: raidzero
9 Replies

8. Shell Programming and Scripting

Data Import perl script

Hi, I have a requirement for creating a Perl Script which will perform Data Import process in an automated way and I am elaborating herewith : Section 1 ) - use the following command line format : "./import.pl -h hostname -p port -f datafile.txt" Section 2) datafile.txt will... (3 Replies)
Discussion started by: scott_apc
3 Replies

9. UNIX for Advanced & Expert Users

LDAP request from unix into Active Directory

Hi all, I experienced a problem when making a LDAP search from Unix Netscape or Unix Mozilla adressbooks into my Active Directory LDAP db for email addresses. I add my Domain Controller hostname and the LDAP root dir to search in. For example: Name: AD LDAP server: gullvi Search Root:... (0 Replies)
Discussion started by: tonlu
0 Replies
Login or Register to Ask a Question