You can call javax.servlet.http.HttpServletRequest.getRemoteUser(). This will return the username if the user has been authenticated otherwise null.
Regards Jim. > -----Original Message----- > From: Christoph Fischer [mailto:[EMAIL PROTECTED]] > Sent: 05 February 2003 13:24 > To: Tomcat Users List > Subject: Apache+Tomcat+Ldap > > > Hello, > > I have tomcat linked to apache server. To get to the > tomcat server the user has to authenticate himself > to a web-site on the apache server which checks the password > against a ldap-server. > Is it possible to get the user name from the apache/ldap login > in my tomcat application ? > > Chris > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
