Recently I had to deal with a LDAP server using my old beloved LotusScript language.
After some search I found the following free LotusScript extension (LSX) that is really useful for my needs:
From the IBM Sandbox:
LotusScript Directory Service is a small LotusScript Extension utility which is developed for testing LDAP protocol in Domino 5.0. It provides a simple and direct access to LDAP protocol using LotusScript. It facilitates four LotusScript classes to manipulate basic LDAP protocol, including search directory, add, modify and delete operation. Further operations like compare and rename will be available soon in future implementation.
Here's a sample code from Robein Shi (IBM) written in 1999!
Things I'm worried about that utility are:
- it is a LSX written for the Windows OS, so I cannot use it on Linux;
- it's a little bit old code, published in year 2000;
- some users in the Sandox complain about some bugs (memory leaks, http crashes)
I wrote a small Java class, taking advantage of JNDI classes, to:
- connect to any LDAP server, using authentication ;
- get one specific (text) attribute (eg "cn") for a Distinguished Name (DN)
The Java class will be available in LotusScript via LS2J, I guess...
I know, that's really too little for a utility, but it's just the beginning ;-)
What I would like to add later to the Java class:
- reading any LDAP attribute, text or binary type, for a specific DN;
- writing some binary attribute, e.g. uploading images to a Domino LDAP server for Sametime contacts photos.. ( see previous Italian post )