LDAP Authentication faulty
The LDAP Authentication only test the POST authentication however we're allowed to authenticate using the function (for example via WebServices).
This commit is contained in:
parent
2dc3e5b104
commit
cc0d91bf2b
@ -55,7 +55,7 @@ function check_user_password_ldap($usertotest,$passwordtotest,$entitytotest)
|
|||||||
$login='';
|
$login='';
|
||||||
$resultFetchUser='';
|
$resultFetchUser='';
|
||||||
|
|
||||||
if (! empty($_POST["username"]))
|
if (!empty($_POST["username"]) || $usertotest)
|
||||||
{
|
{
|
||||||
// If test username/password asked, we define $test=false and $login var if ok, set $_SESSION["dol_loginmesg"] if ko
|
// If test username/password asked, we define $test=false and $login var if ok, set $_SESSION["dol_loginmesg"] if ko
|
||||||
$ldaphost=$dolibarr_main_auth_ldap_host;
|
$ldaphost=$dolibarr_main_auth_ldap_host;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user