ADSI Lookup From Java or LotusScript

Can anyone help with a problem that I have?I need to return a list of all the names stored in the active directory to a field on a Form.

Initially I thought that this was possible by creating a webQueryOpen agent that used java to connect to ADSI and then loop though all the entries. However microsoft’s java support for ADSI is in the form of two files called “activeds.tlb” & “activeds.dll” these files obviously can’t be used with my java agent and when I try to add “import.activeds.*;” I get an error that says “Package activeds not found on import”

My question is this, has anyone successfully returned a list of names from active directory to an Item in Lotus Domino? If so how?

Thanks in advance

SM

Subject: ADSI Lookup From Java or LotusScript

Stephen,Does it have to be a Java agent? If not, there is an LDAP LSX which I have used in the past to access an Active Directory. I think I got it from the archived section of the Notes Knowledge Base. I can’t remember exactly where but maybe if you do a search there.

nwilkins@hmi.co.uk

Subject: ADSI Lookup From Java or LotusScript

Mr. Mitchell!

I’d say don’t rely on MS stuff to support your Java code. Instead, I would look in to the Java Naming & Directory Interface (JNDI) classes. Here are some links that should help (the tutorial covers linking to MS AD):

Sun JNDI Tutorial

http://forum.java.sun.com/thread.jsp?forum=51&thread=524631&tstart=0&trange=15

HTH

Subject: ADSI Lookup From Java or LotusScript

Stephen,In Java you need to use JNDI. This can query ADSI.

Regards

Rolf Pfotenhauer