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

Re: SQL backend for OpenLDAP

sj2@myflat.com wrote:

> Hi,
> I have compiled OpenLDAP 2.0.3 with support for SQL backend
> support with the iodbc driver. I am using Mysql as the backend DB server.
> But i don't know how to get OpenLDAP talk to the DB server. Any pointers
> or help is welcome.


Why, just as any other backend, back-sql has its own section in slapd conf,
where among other things, you must define the subtree it is responsible of
(see suffix directive). Then, when a LDAp client makes a query to this
subtree, back-sql routine is called to serve it...

Anyway, see Administratior's Guide for general slapd setup, and
back-sql/docs directory of source tree for back-sql specific instructions.

BTW, it is unclear from your message, why you want to use back-sql... If you
already have some info in mySQL db that you want to access through LDAP,
that is back-sql made for. But if you set up plain new LDAP service, and are
going to use back-sql as storage, take a look at

http://www.openldap.org/faq/data/cache/378.html - you might change your mind

WBW, Dmitry