From a3e4377c78fab655fdfbfdb138464e461ad680da Mon Sep 17 00:00:00 2001 From: "Stefan E. Funk" <stefan.funk@daasi.de> Date: Fri, 20 Sep 2013 16:27:14 +0000 Subject: [PATCH] Some TSL changes Martin did I would think. Comitting for new TG3.0 auth... can be re-done if it doesn't work... git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@14427 7c539038-3410-0410-b1ec-0f2a7bf1c452 --- .../WebAuthN/authenticate.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/info.textgrid.middleware.tgauth.webauth/WebAuthN/authenticate.php b/info.textgrid.middleware.tgauth.webauth/WebAuthN/authenticate.php index 49decc7..2cf5653 100644 --- a/info.textgrid.middleware.tgauth.webauth/WebAuthN/authenticate.php +++ b/info.textgrid.middleware.tgauth.webauth/WebAuthN/authenticate.php @@ -26,12 +26,14 @@ $authZinstance = $_REQUEST["authZinstance"]; $login = $_REQUEST["loginname"]; $password = $_REQUEST["password"]; - // LDAP $ldapconn = ldap_connect( $ldaphost, $ldapport ) or die( "Cannot connect to {$ldaphost}!" ); ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3); -#ldap_start_tls( $ldapconn ); +$return = ldap_start_tls( $ldapconn ); +$file = fopen ("/tmp/ssstls", "a+"); +fwrite ($file, serialize($return)); +fclose($file); $binddn = preg_replace ('/\${login}/', $login, $binddn); $bound = ldap_bind($ldapconn, $binddn , $password); -- GitLab