29 return _(
'HTTP Header');
35 global $config, $message, $ui;
42 $header = $config->get_cfg_value(
'httpHeaderAuthHeaderName',
'AUTH_USER');
44 static::$username = $_SERVER[
'HTTP_'.$header];
46 if (!static::$username) {
49 _(
'No value found in HTTP header "%s"'),
60 _(
'Header user "%s" could not be found in LDAP'),
64 } elseif (is_string($ui)) {
67 _(
'Login with user "%s" triggered error: %s'),
76 $success = static::runSteps([
77 'checkForLockingBranch',
78 'loginAndCheckExpired',
87 if (!empty($message)) {
90 _(
'Login with user "%s" triggered error: %s'),
htmlescape(string $str)
Escape string for HTML output.
static getLdapUser(string $username)
Get user from LDAP directory.
static get_dialogs()
Accessor of the message dialog rendered HTML.
Base class for login methods.
Fatal error class. Does not extend FusionDirectoryError.