38 dol_syslog(
"functions_http::check_user_password_http _SERVER[REMOTE_USER]=".(empty($_SERVER[
"REMOTE_USER"]) ?
'' : $_SERVER[
"REMOTE_USER"]));
41 if (!empty($_SERVER[
"REMOTE_USER"])) {
42 $login = $_SERVER[
"REMOTE_USER"];
44 require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
64 $encoded_basic_auth = substr($value, 6);
65 $decoded_basic_auth = base64_decode($encoded_basic_auth);
66 $credentials_basic_auth = explode(
':', $decoded_basic_auth);
69 'username'=> $credentials_basic_auth[0],
70 'password' => $credentials_basic_auth[1]
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
check_user_password_http($usertotest, $passwordtotest, $entitytotest)
Check validity of user/password/entity If test is ko, reason must be filled into $_SESSION["dol_login...
decodeHttpBasicAuth($value)
Decode the value found into the Authorization HTTP header.