LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Importing data in OpenLDAP from remote Active Directory (https://www.linuxquestions.org/questions/linux-general-1/importing-data-in-openldap-from-remote-active-directory-794387/)

shahzad.fatehali 03-10-2010 02:14 AM

Importing data in OpenLDAP from remote Active Directory
 
Hi Friends,

I am running an openldap server on fedora core 10 and now running into a need of get all users data from Active Directory. Actually I have a php based application which will be using that data from OpenLDAP and it will need to be updated on weekly bases.

Can you please suggest me how can I do it and any script which can help me.

TB0ne 03-10-2010 10:18 AM

Quote:

Originally Posted by shahzad.fatehali (Post 3892551)
Hi Friends,

I am running an openldap server on fedora core 10 and now running into a need of get all users data from Active Directory. Actually I have a php based application which will be using that data from OpenLDAP and it will need to be updated on weekly bases.

Can you please suggest me how can I do it and any script which can help me.

There are threads on here that touch on this:
http://www.linuxquestions.org/questi...errerid=154107

As well as hints on Google. In the past, I've had to use pwdump, and write a script to take what it gives me, and insert that data into my LDAP schema. That's something that you'll have to write on your own, since there's too much site-specific information for it to be a 'generic' script that can be open-sourced. I'd recommend Perl for it, since it has LDAP and Active Directory hooks. This article:
http://www.perl.com/pub/a/2001/12/19/xmlrpc.html

is a bit dated, but still relevant. If you create an LDAP schema that matches (as closely as it can) your AD schema, you could even do a direct import over the network...reading from AD, modifying the data, and doing an LDAP insert.


All times are GMT -5. The time now is 12:25 PM.