Tim Crouch wrote:
I need a web form that a user can enter something unique (DOB, ID, etc.) then the backend (cgi,perl, whatever) will search my directory and return their uid. I can script everything using ldapsearch on the command line and use cut, etc. however, I am lost on how to pass the user input to the ldapsearch variable then return the results in a web page. Anyone doing this?

I was out of town, so sorry I'm late to the party. I've got a web framework that can get you what you ask. For instance, it just takes these three lines:

http://www.mentata.com/ldaphttp/examples/bigten/context_umn.txt

To get this:

http://www.mentata.com/ds/retrieve/umn/inetorgperson

(Note: UMN has a large population and narrow directory search limits, so try more obscure name for best results)

You can tweak the context file to accommodate directory configuration, customize your people objects with your own subclasses, rename attributes with new label properties, add a stylesheet or header/footer HTML, and change web pages by overriding the search or display JSP. Among other things.

> I am beating my head against the wall because I cannot find something
> simple:

Simple is subjective; I understand if my solution is not what you want, but it works well for me. For more, see:

http://www.mentata.com/ldaphttp/

Let me know if you want to give it a spin and need any assistance.

Jon Roberts
www.mentata.com

---
You are currently subscribed to [email protected] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the 
SUBJECT of the message.

Reply via email to