Skip to content
Snippets Groups Projects
Commit a3e4377c authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

Some TSL changes Martin did I would think. Comitting for new TG3.0 auth... can...

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
parent c56fba7b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment