From ca6bf5e9eb1e5ac18436a8f8dbde2a561138b9ae Mon Sep 17 00:00:00 2001
From: Martin Haase <martin.haase@daasi.de>
Date: Tue, 20 Jul 2010 13:16:17 +0000
Subject: [PATCH] Added SLC configurable support to core WebAuth; commented TLS
 as WebAuthNhost==LDAPAuthNhost

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@6727 7c539038-3410-0410-b1ec-0f2a7bf1c452
---
 .../WebAuthN/TextGrid-WebAuth-displaySID.php        | 13 +++++++++++++
 .../WebAuthN/authenticate.php                       |  2 +-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 info.textgrid.middleware.tgauth.webauth/WebAuthN/TextGrid-WebAuth-displaySID.php

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 0000000..82f8d8d
--- /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 76cf728..d06162a 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);
-- 
GitLab