3. Groovy LDAP Implementation has been edited by Stefan Zoerner (Feb 16, 2009).

(View changes)



Currently, the implementation is comprised of some Java classes and two enumerations (search scopes and modification types). The class LDAP is the main entry point for scripts, just as the class LDAPConnection in the Netscape SDK. It provides the operations implemented so far. I have decided to omit methods for connecting and disconnecting explicitly (bind, unbind in LDAP). Instead all methods handle the connection themselves, which makes the Groovy source code shorter. Class DirContextToMapObjectFactory acts under the hood. It transforms a DirContext object from JNDI search results and lookups into a Java map. This trick enables the script writer to use expressions like tori.cn in order to retrieve an attribute value. There are probably better solutions to accomplish this task.

Source code

Source code of the proof of concept is currently available for review here : http://svn.apache.org/repos/asf/directory/sandbox/szoerner/groovyldap

Powered by Atlassian Confluence (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request

Unsubscribe or edit your notifications preferences