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

RE: About openldap and mysql databases



Title: Message
Hi Manuel
I think that you would have
1) What are the tables
2)How you want in your openldap and how organized (I suppose that you will use the ldif file to insert in openldap)
3)I have to filter the info from mysql to ldif
For example
 
Table 1                              Table 2                                table 3
id    name   unit                 name mail                            name        password
01    carlos     IT                carlos  user1@ex.cu                carlos      secure1
02    pedro      IT                pedro user2@ex.cu                  pedro      secure2
03    juan      Logistic         juan user3@ex.cu                    juan        secure3
 
 
uid=01,ou=it,dc=ex,c=cu
objectclass: top
objectclass: qmailuser
objectclass: inetOrgperson
mail: user1@ex.cu
accountstatus: active
sn: carlos
cn: carlos
password: {clear}secure1
 
 
-----Original Message-----
From: owner-openldap-software@OpenLDAP.org [mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of Manuel Mely
Sent: lunedì 29 dicembre 2003 19.57
To: openldap-software@OpenLDAP.org
Subject: About openldap and mysql databases

Hi all there...
 
I'm working on a project about convert mysql databases to the ldap format (ldif).
i'm trying to write a script in perl to do that, but i have no idea of how to start.
Any idea?
 
Manuel