mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 01:12:17 +00:00
Neuer Config Eintrag AUTH_NAME für htaccess Authentifizierung
This commit is contained in:
@@ -67,6 +67,8 @@ define('URLAUB_TOOLS',true);
|
||||
// auth_mixed - htaccess mit LDAP (Default)
|
||||
// auth_session - Sessions mit LDAP (Testbetrieb)
|
||||
define("AUTH_SYSTEM", "auth_mixed");
|
||||
// Gibt den Namen fuer die htaccess Authentifizierung an (muss mit dem Attribut AuthName im htaccess uebereinstimmen)
|
||||
define("AUTH_NAME","Technikum-Wien");
|
||||
|
||||
// LDAP_SERVER: Adresse des LDAP Servers
|
||||
define("LDAP_SERVER","www.technikum-wien.at");
|
||||
|
||||
@@ -40,7 +40,9 @@ define('DOMAIN','technikum-wien.at');
|
||||
// auth_mixed - htaccess mit LDAP (Default)
|
||||
// auth_session - Sessions mit LDAP (Testbetrieb)
|
||||
define("AUTH_SYSTEM", "auth_mixed");
|
||||
|
||||
// Gibt den Namen fuer die htaccess Authentifizierung an (muss mit dem Attribut AuthName im htaccess uebereinstimmen)
|
||||
define("AUTH_NAME","Technikum-Wien");
|
||||
|
||||
//LDAP_SERVER: Speichert die Adresse des LDAP Servers
|
||||
define("LDAP_SERVER","ldap.technikum-wien.at");
|
||||
define("LDAP_BASE_DN","ou=People, dc=technikum-wien, dc=at");
|
||||
|
||||
@@ -111,7 +111,7 @@ class authentication extends auth
|
||||
{
|
||||
if(!(isset($_SERVER['PHP_AUTH_USER']) && $this->checkpassword($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'])))
|
||||
{
|
||||
header('WWW-Authenticate: Basic realm="FHComplete"');
|
||||
header('WWW-Authenticate: Basic realm="'.AUTH_NAME.'"');
|
||||
header('HTTP/1.0 401 Unauthorized');
|
||||
echo "Ihre Zugangsdaten sind ungueltig!";
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user