on 02-25-2016 10:25 AM
Hi everyone!
We implemented customized portal logon app, using this guide
No we want to implement NTLM authorisation, for this purpose I need to set HTTP header
I am trying to do it with such code in logonPage.jsp:
response.setHeader("WWW-Authenticate", "NTLM");
But server returns no WWW-Authenticate HTTP header to client, I guess becouse we have
some wrapper classe instead of HttpServletRequest and HttpServletResponse in our portal logon app.
This wrapper class erase any http header that I try to set I guess for security reasons.
So the question is how to configure portal logon app (or maybe some other portal environment)
to accept headers that we set at portal logon page jsp.
Thanks in advance!
Hi Mikhail, a task like this is typically done with a JAAS login module I guess.
Do you really mean NTLM and not Kerberos/SPNego? There is a completely configurable solution for SPNego by calling the wizard https://portal.domain.com/spnego without any coding needed.
Regards,
Lutz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lutz!
There are some troubles with user domain name and portal user ID mapping, our basis team figured out that we have to implement NTLM by custom code like this Get username using NT Challenge (NTLM) - Real's Java How-to
So I have to set http header. Actually I tried to get original servlet response with this code
HttpServletResponse servletResponse = request.getServletResponse(false);
//gets the original servlet response
But this method also returns wrapper class and this class also erase header.
This code just do nothing (as far as I can see there are even no errors in log so cant figure out what is wrong)
HttpServletResponse servletResponse = request.getServletResponse(true);
I even tried to get original HttpServletrequest/response with reflection, but It is fragile attemp because
I have to call some non-pulic methods of wraper objects.
Regards,
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.