ruby-ldapserver

From PALDAP

Jump to: navigation, search

From the RAA entry:

ruby-ldapserver is a lightweight, pure Ruby skeleton for implementing LDAP server applications. It is intended primarily for when you wish to build a gateway from LDAP queries into some other protocol or database; it does not attempt to be a full implementation of the standard LDAP data model itself (although you could build one using this as a frontend)
The Connection class handles incoming connections, decodes ASN1-formatted LDAP requests, and creates an Operation object for each request. The Operation object further parses the ASN1 request and invokes methods which you override to perform useful work. Responses and exceptions are converted back into ASN1 and returned to the client. Optionally, a collection of objects can be used to implement a Schema (e.g. normalize attribute names, validate add and modify operations, perform appropriate matching operations)
Since it's written entirely in Ruby, it benefits from Ruby's threading engine.

[edit] Experience and opinion

I'd dare say that ruby-ldapserver is //the// perfect solution for providing LDAP access to any data store. I found coding a custom replacement for slapd's back-sql to be much less work than I had already spent on learning to operate the not-very-well-documented back-sql and to try to make either back-shell, back-perl or back-sql run without crashing. –Rowan Rodrik van der Molen 2006/09/18 03:01

[edit] Further reading and references

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox