Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Principal object null after authentication |
|
Author |
|
somakd
Joined: 26 May 2016 Posts: 2 Location: Pune, India
|
Posted: Fri 21 Jun '19 9:00 Post subject: Principal object null after authentication |
|
|
I am trying to set up IBM HTTP Server 8.5 as a front and a web application in Geronimo (geronimo-tomcat6-javaee5-2.1.4) as the backend. IHS handles user authentication and then forwards the request to Geronimo.
Here is my httpd.conf :
Code: |
AuthType Basic
AuthBasicProvider ldap
AuthLDAPUrl ldap://xxxx:389/ou=bluepages,o=abc.com?mail,cn,dept
AuthzLDAPAuthoritative off
Require ldap-group cn=test_bit,ou=memberlist,ou=ibmgroups,o=abc.com
RequestHeader set AUTHENTICATE_MAIL %{AUTHENTICATE_mail}e
RequestHeader set AUTHENTICATE_CN %{AUTHENTICATE_cn}e
RequestHeader set DEPARTMENT %{AUTHENTICATE_dept}e
ProxyPass http://localhost:8080/principal/hello
|
There is no HTTPS, no SSL. The authentication works perfectly and my servlet in localhost:8080/principal/hello is called.
The problem I am facing is although i get all the header data that has been set using RequestHeader, I am not getting the Principal object.
request.getUserPrincipal() returns null.
Is SSL/HTTPS must to get the Principal object ? Any additional configuration needs to be done in httpd.conf to populate the Principal object ?
Thanks for your help in advance. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|