Hi Technically +1
Looks interesting. I would assume the LDAP bind is currently anonymous ? This would probably benefit from the ResourceProviderFactory approach which are called to create the ResourceProvider using the provided user credentials ... What frightens me a bit is the list of embedded dependencies. I always thought the L in LDAP stands for light-weight ;-) Nit-picking on the code: I think the LdapResource should not copy all methods from the Resource interface. Regards Felix Am Mittwoch, den 10.08.2011, 16:08 +0100 schrieb Vidar Ramdal: > Hi, I have been working on an LDAP web client, and found that it could > be a nice thing if Sling supported LDAP directories. > > So I wrote up a rudimentary LDAP resource provider, which basically > serves up an LDAP directory as a Sling resource tree. > > The first objectClass value of an LDAP entry is used as > sling:resourceType, so that a GUI can be supplied by putting scripts > in /apps/ldap/organizationalPerson, /apps/ldap/organizationalUnit and > so on. > The entry's attributes are available by adapting the LdapResource to ValueMap. > > I have committed the code to my whiteboard directory: > http://svn.apache.org/viewvc/sling/whiteboard/vramdal/ldapresource/ > > Would this be something that should be added to sling/samples? >
