20100228 using openldap schema in red hat directory - plembo/onemoretech GitHub Wiki

title: Using OpenLDAP schema in Red Hat Directory link: https://onemoretech.wordpress.com/2010/02/28/using-openldap-schema-in-red-hat-directory/ author: lembobro description: post_id: 188 created: 2010/02/28 17:21:54 created_gmt: 2010/02/28 17:21:54 comment_status: open post_name: using-openldap-schema-in-red-hat-directory status: publish post_type: post

Using OpenLDAP schema in Red Hat Directory

Just the other day I finally got started working on building a real personal address book backend in the home LDAP database. Almost immediately I realized the base schema was going to have to be extended because there were no attributes for date of birth or anniversary, two data points that would be useful to have in an address book.

A quick Google search came up with a few alternatives, but the one that seemed to make the most sense was to import the evolutionperson schema from the Gnome Evolution project. This LDAP schema contained both birthDate and anniversary, among other useful attributes. Since the schema file provided was formatted for OpenLDAP and I’m now using CentOS Directory Server (identical to Red Hat Directory Server, only free), some conversion work would be needed.

Going on over to port389.org (new versions of the Red Hat product are developed through the open source 389 Directory Server project), I found a How To entitled Migrating from OpenLDAP to Fedora Directory Server. That page contains links to a wealth of scripts for the job. The one I used as ol-schema-migrate.pl, which did a flawless job of converting from OpenLDAP schema format to Red Hat’s (CentOS).

The command line to do the conversion was simple,

ol-schema-migrate.pl -b evolutionperson.schema >61evolution.ldif

All I had to do to load the schema was shut down the directory server, copy the resulting file into the node schema folder (in this case /etc/dirserv/slapd-example/schema) and restart the directory server.

Copyright 2004-2019 Phil Lembo