Hi Experts,
I am facing some issue when trying to authenticate ISAM users through EAI application. After I enter username and password in text fields and click login, the application(
test_sso) just loads for few seconds and then returns error:
DPWWA1235E Could not read the response status line sent by a third-party server. Possible causes 3A non-spec HTTP headers 2C connection timeout 2C no data returned. This is not a problem with the WebSEAL server.
EAI login
EAI login error-
I checked script logs and found that Query_String arguments are not getting passed from test_sso.pl(EAI login app) to check_user.pl(trigger url). Or I think it could be due to some important configuration that I might have missed in the process.
Below are the details of webseal configuration and EAI scripts:
-------------------------------------------------
For EAI, I have used perl scripts which are deployed on IIS server.
I have made all the necessary changes in webseal configuration file to support EAI authentication mechanism.
Below are the changes that I have done in webseal config file:
check_user.pl (trigger url)
use CGI;
$last_login_failed = 0;
$error_txt = "";
open OF, ">>c:\\eailogs\\test_ck.out";
$qstring = $ENV{QUERY_STRING};
print OF "\n QUERY_STRING: $qstring";
print OF "\n";
@arg_list = split('&',$qstring);
print OF "ARGS: $#arg_list \n";
for ($i=0; $i<=$
print OF "\n $i: $arg_list[$i]";
($tmp1,$tmp2) = split('=',$arg_list[$i]);
if ($tmp1 eq 'ERROR_CODE' && $tmp2 ne "0x00000000") {
$last_login_failed = 1;
}
if ($last_login_failed && $tmp1 eq 'ERROR_TEXT') {
$error_txt = $tmp2;
}
}
print OF "START STDIN: \n";
my @key;
while (<STDIN>) {
@key = split(/&/, $_);
print OF " Key/Value pair for Username is $key[0] \n";
print OF " probably blank line ==>> $_ \n";
}
print OF "END STDIN: \n";
my @username = split(/=/, $key[0]);
print OF " (ext) User name after second split, hopefully not blank, $username[1] \n";
close OF;
"am-eai-ext-user-id: $username[1]\n";
print "am-eai-user-id: $username[1]\n";
print "am-eai-xattrs: eai-orig-user\n";
print "eai-orig-user: $username[1]\n";
print "Server: Apache-Coyote/1.1\n";
print "Content-Type: text/html;charset=utf-8\n";
print "Content-Length: 1048\n";
print "Date:.Thu, 20.Sept 2017 04:39:57.GMT\n";
print "Connection:.close\n";
print "\n";
Thanks,
Vishnu
------------------------------
vishnu nautiyal
------------------------------