LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-26-2012, 05:53 PM   #1
melive
LQ Newbie
 
Registered: Sep 2012
Location: Bogotá - Colombia
Posts: 10

Rep: Reputation: Disabled
how to migrate OID to OpenLDAP


Hi, need to use OpenLDAP instead of OID, so I have been searching how to load the ldif file from OID to OpenLDAP, I tried including some oid schemas (oidbase.schema, oidnet.schema, oidrdbms.schema
alias.schema)

in my slapd.conf file but it's not enough to solve the problem.

Does anybody know what can I do?

Thanks
 
Old 10-15-2012, 07:03 PM   #2
Matthew Hardin
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Rep: Reputation: 5
It's difficult, but possible. There are certainly no cookbook answers to this.

The basic premise is to first make sure that the directory information trees (DITs) match, which you've probably already figured out.

The next step is to make sure that the OID and OpenLDAP schemas match, which is somewhat less well-understood. OpenLDAP will help you with a lot of this by telling you about object classes, attributes, and syntaxes that it doesn't understand. It tells you this as it tries to load the LDIF from OID. Here's where things get tricky. If you do a straight dump from OID including operational attributes there will be a lot of attributes present in the LDIF that won't translate to and are not needed in OpenLDAP. Some common ones, though, like modifyTimestamp are good to carry over unless you just don't care. In that case you might just do a search of the entire OID db, sans operational attributes, and dump that to a file. Then use it to load the OpenLDAP database with a tool like ldapadd.

Whatever you do, you'll need to understand the object classes, attributes, and syntaxes that *your* data uses (as opposed to what OID uses- its operational attributes). Once you have a grasp of these you'll find it pretty easy to write a perl script to filter the OID LDIF file and make it load perfectly.

Any way you look at it it's an iterative process, but if you buckle down and just do it you'll find there are relatively few differences.

I hope this helps.

Cheers,

-Matt

Matthew Hardin
Symas - The LDAP Guys
http://www.symas.com
 
1 members found this post helpful.
  


Reply

Tags
openldap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Openldap migrate from v2.3.30-5 to v2.4.24 daniela1611 Linux - Server 2 03-23-2012 12:19 PM
migrate OpenLDAP V1.8.8.7 to the latest don_wombat Linux - Software 0 08-26-2005 02:04 PM
migrate to openldap egyptian Linux - Networking 0 01-25-2005 07:20 AM
Migrate Active Directory to OpenLDAP mafelipe Linux - Software 0 06-03-2004 09:32 AM
migrate unix passwd to openldap deathstar Linux - Software 0 10-30-2003 04:26 AM


All times are GMT -5. The time now is 11:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration