This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Querying LDAP for User Name

Jul 27th, 2010, 11:55 AM

Hi -

I am new to LDAP. I have an implementation working well using the DefaultSpringSecurityContextSource.

I do have one issue, though - my application requires that the user who enters data into the application store their user ID, along with the data, in the DBMS. The application data is entered into a JSP form and ultimately saved via a servlet.

Is there any way for the servlet to query LDAP, during the save process, to determine the user's LDAP user name? Or do I have to pass that information from form-to-form, starting with the log-in form?