dolibarr 21.0.0-alpha
functions_ldap.php File Reference

Authentication functions for LDAP. More...

Go to the source code of this file.

Functions

 check_user_password_ldap ($usertotest, $passwordtotest, $entitytotest)
 Check validity of user/password/entity If test is ko, reason must be filled into $_SESSION["dol_loginmesg"].
 

Detailed Description

Authentication functions for LDAP.

Definition in file functions_ldap.php.

Function Documentation

◆ check_user_password_ldap()

check_user_password_ldap ( $usertotest,
$passwordtotest,
$entitytotest )

Check validity of user/password/entity If test is ko, reason must be filled into $_SESSION["dol_loginmesg"].

Parameters
string$usertotestLogin
string$passwordtotestPassword
int$entitytotestNumero of instance (always 1 if module multicompany not enabled)
Returns
string Login if OK, '' if KO

Definition at line 37 of file functions_ldap.php.

References dol_syslog(), dol_trunc(), getDolGlobalInt(), and getDolGlobalString().