Re: Rails saving on LDAP (or directly on a mailserver)

Jerry Van Baren
Tue, 19 Jan 2010 02:28:14 -0000

Simone R. wrote:
> Hi everybody,

[snip]

> My idea (i''m helping my frined on the computer and web parts) is
to have
> all this people registering themself on the gym website and have theyr
> account saved on an LDAP server ( the badge & access system will run on
> LDAP)
>
> there is some way to use LDAP as rails database ?

Not that I''m aware of.  Rails is sql-oriented and LDAP is a totally
different animal.

Having said that, OpenLDAP can use a sql database as the store for the
information that it serves up.  This requires you to turn your problem
around, using mysql/postgresql for your ldap database and then using
rails to interact with the mysql/postgresql database that happens to
have ldap data in it.  It also assumes that you can use OpenLDAP, e.g.
you aren''t already using ActiveDirectory.

<http://www.openldap.org/doc/admin24/backends.html#SQL>
<http://serverfault.com/questions/53608/how-do-i-configure-openldap-to-use-mysql-ubuntu-9-04>

Good luck,
gvb