I'm using ldap with NTLM to do SSO "LOGON UNIQUE" but I'm having a hard time, LDAP_BIND does not accept the hashed password I get from the browser,
My class working with NTLM has the following variables:
$auth = getAuth(); //RETORNA O NTLM TRABALHADO
//$auth['user'] = $user;
//$auth['domain'] = $domain;
//$auth['workstation'] = $workstation;
//$auth['clientblob'] = $clientblob;
//$auth['clientblobhash'] = $clientblobhash;
$con = ldap_connect('meudominio.com');
ldap_set_option($con, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($con, LDAP_OPT_REFERRALS, 0);
ldap_bind($con, 'dominio\user', $auth['clientblob']);
ERROR > Warning: ldap_bind () [function.ldap-bind]: Unable to bind to server: Invalid credentials in ... Note: LDAP_BIND works only if I use the string password;