05-09-2008 3:42 PM
Hello,
I've seen several posts similar in nature to what I want to do, but no resolution.
We have implemented SPNego, and in the normal progression, if SPNego authentication fails, the BasicPasswordLoginModule is invoked.
We want to create a custom Login Module that will redirect users to a Siteminder server instead of invoking the BasicPasswordLoginModule.
The following code snippet is what I found in other threads, but does not seem to have any effect. I verified via log statements that the code is being executed, but it just continues on to the next login module with no re-direct:
HttpSetterCallback hsc = new HttpSetterCallback();
HttpSetterCallback hsc1 = new HttpSetterCallback();
try {
hsc.setType(HttpCallback.SET_HEADER);
hsc.setName("Location");
hsc.setValue("<SiteminderURL>" + "\r\n");
hsc1.setType(HttpCallback.RESPONSE_CODE);
hsc1.setName("Response Code");
hsc1.setValue("302");
callbacks[0] = hsc1;
callbacks[1] = hsc;
callback_handler.handle(callbacks);
} catch (IOException e1) {
e1.printStackTrace();
} catch (UnsupportedCallbackException e1) {
e1.printStackTrace();
}
Am I missing something?
Any ideas would appreciated.
Thanks,
Doug
07-24-2008 1:46 PM
Hello,
Please check the [Link|http://help.sap.com/saphelp_nw04s/helpdata/en/cd/1aad4abcb98c4597f9e395a6b62f43/frameset.htm]. Hope this points you in the right direction.
Regards,
Srihari