diff --git a/info.textgrid.middleware.tgauth.webauth/WebAuthN/TextGrid-WebAuth-displaySID.php b/info.textgrid.middleware.tgauth.webauth/WebAuthN/TextGrid-WebAuth-displaySID.php new file mode 100644 index 0000000000000000000000000000000000000000..82f8d8d41275a91f38ec2912154a7ac08ee74ef2 --- /dev/null +++ b/info.textgrid.middleware.tgauth.webauth/WebAuthN/TextGrid-WebAuth-displaySID.php @@ -0,0 +1,13 @@ +<?php + +//phpinfo(); +$ePPNplusSID = $_GET["ePPNplusSID"]; + +echo "<HTML><HEAD>\n"; +echo "<meta name=\"ePPNplusSID\" content=\"". $ePPNplusSID ."\"/>\n"; +?> +</HEAD><BODY> + +Please see the source code of this page for the Session ID. If you just authenticated within the TextGridLab, the Lab should have found these values already and you shold not see this. As you do see it, either you are using a normal browser or something is broken, so please contact TextGrid support. + +</BODY></HTML> \ No newline at end of file diff --git a/info.textgrid.middleware.tgauth.webauth/WebAuthN/authenticate.php b/info.textgrid.middleware.tgauth.webauth/WebAuthN/authenticate.php index 76cf72873b0b85c7167405ec3205e225450139d1..d06162aa4586867aca284335aea8d14115e63423 100644 --- a/info.textgrid.middleware.tgauth.webauth/WebAuthN/authenticate.php +++ b/info.textgrid.middleware.tgauth.webauth/WebAuthN/authenticate.php @@ -31,7 +31,7 @@ $password = $_REQUEST["password"]; $ldapconn = ldap_connect( $ldaphost, $ldapport ) or die( "Cannot connect to {$ldaphost}!" ); ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3); -ldap_start_tls( $ldapconn ); +#ldap_start_tls( $ldapconn ); $binddn = preg_replace ('/\${login}/', $login, $binddn); $bound = ldap_bind($ldapconn, $binddn , $password);