logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



How to get mod_ldap authenticated user information in Java

 
Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules



View previous topic :: View next topic  
Author Message
somakd



Joined: 26 May 2016
Posts: 1
Location: Pune, India

PostPosted: Thu 26 May '16 16:32    Post subject: How to get mod_ldap authenticated user information in Java Reply with quote

I am trying to setup authentication against a LDAP server and then obtain few more details about the user in a Servlet.

This is my httpd.conf http://apaste.info/e3a

The authentication is successful and I am able to get user email id in request.getRemoteUser(). I need to obtain more information like cn, dept which I have mentioned as AuthLDAPURL attributes. So now, that data should be available in my Servlet as System.getenv("AUTHENTICATE_CN") OR System.getProperty("AUTHENTICATE_CN"), but all I get is NULL.

Am I missing any configuration or do I need to add more modules ? Please help.

Thanks.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Sat 28 May '16 16:36    Post subject: Reply with quote

You have to forward it since apache does not share internal variables.

If I remember correctly it was

Code:

RequestHeader set AUTHENTICATE_CN %{AUTHENTICATE_CN}e
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules
Page 1 of 1