24 define (
'APACHE_AUTH_TYPE_DIRECT_MAPPING', 1);
25 define (
'APACHE_AUTH_TYPE_EXTENDED_MAPPING', 2);
26 define (
'APACHE_AUTH_TYPE_BY_FUNCTION', 3);
55 public function __construct($a_container,$a_addition_options = array())
62 $this->apache_settings =
new ilSetting(
'apache_auth');
69 $_POST[
'password'] =
'yyy';
72 $_POST[
'cmd[butSubmit]'] =
'Submit';
74 if (
$_POST[
'username'] !=
'anonymous') {
76 switch($this->apache_settings->get(
'apache_auth_username_config_type'))
79 $_POST[
'username'] = $_SERVER[$this->apache_settings->get(
'apache_auth_username_direct_mapping_fieldname')];
82 throw new ilException(
"APACHE_AUTH_TYPE_EXTENDED_MAPPING not yet implemented");
84 include_once
'Services/AuthApache/classes/custom_username_func.php';
93 $_POST[
'username'] =
'§invalid';
94 $_POST[
'password'] =
'anonymous';
105 if (!$this->apache_settings->get(
'apache_auth_authenticate_on_login_page') && preg_match(
'/.*login\.php$/', $_SERVER[
'SCRIPT_NAME'])) {
109 if (!isset(
$_GET[
'passed_sso']) && (!defined(
'IL_CERT_SSO') ||
IL_CERT_SSO ==
false)) {
114 $path = $_SERVER[
'REQUEST_URI'];
116 if (
$path{0} ==
'/') {
120 if (substr(
$path, 0, 4) !=
'http') {
121 $parts = parse_url(ILIAS_HTTP_PATH);
122 $path = $parts[
'scheme'] .
'://' . $parts[
'host'] .
'/' .
$path;