Originally Posted by shahzad.fatehali
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:
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:
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.