Rails as an LDAP server or CardDAV?

I am working on an internal Rails application, which (among other things) is a CRM application, so that it contains names, addresses, etc. for customers and other contacts.
An optimal feature would be to allow these contacts to retrieve or search for clients such as email programs and address book applications (i.e., Simple read-only access).

The idea would be to use LDAP or CardDAV for this, but I have not been able to get much (recent) information on how to achieve it.

I did not find anything for CardDAV.

For LDAP, I found many gems and LDAP client plugins, but only a few LDAP server implementations. What I have found so far is a simple Ruby LDAP server and LDAP-ActiveRecord-gateway , which is built on top of the first.

The latter sounds as if it matched the tickets, but it clearly says "Deprecated without replacement" (in June this year). It can still work, but I can’t say that I use it too much, now that it has been abandoned.

So I was wondering if there is anything more recent? Is there any automatic jewel or plugin that I can use? Or some hints, tips or tutorials that I can delve into? Although I am not over writing everything myself, I would rather avoid it.

+7
source share
2 answers

Instead of looking for an implementation of Ruby LDAP Server, it will probably be easier to start a real LDAP server if you can, and just update your directory from your Rails application when data changes. This has several advantages:

  • You can use an LDAP server with regular security updates.
  • You can use the superior and built -in Ruby operations to update the LDAP server data by writing the LDIF files ("LDAP Data Interchange Format") and then sending them to the server.

Some resources:

+4
source

I did some research on the same thing and found this! This is a Rails based CardDAV server. I know that it is not packed in a gemstone ... but maybe you can bend it as you wish? https://github.com/inferiorhumanorgans/meishi

Also, since it was a while, how did your LDAP implementation come about?

+2
source

All Articles