[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: AW: script for adding users information in ldap database



Kristen Walker wrote:
I have a question along similar lines.  We use Uportal and Moodle and I want
to set up an LDAP server for those applications to authenticate users.  I
want to take the users in the Uportal MySQL database and migrate them to an
LDIF file.  Has anyone done this?  I am assuming I will have to write some
sort of script to create the LDIF file.  Does anyone have an example of a
script that does something similar?  Anything that involves getting data out
of a MySQL database and creating an LDIF file with it would be really
helpful.

This should give you an idea:

http://www.stroeder.com/pylib/egadr2ldap.py

But it's syncing from mySQL to OpenLDAP via LDAP. And there's no data sanitizing at all.

Ciao, Michael.