This is a LDAP Datasource for Xpages that uses the standard exstensiblity API to implement a read-only LDAP datasource. It is implemented as an extension Library and allows the end user to put in standard LDAP queries like "(&(objectClass=user)(department=IT))" and it will return back a list that can be iterated using a repeat control or datatable. Future plans for the control would be to make it editable. I have tested this on Domino 8.5.3 and Microsoft Active Directory as the LDAP backend.
The source of this can also be found on my github at https://github.com/tsamples/ldapdatasource