MRBS - Meeting Room Booking System: Difference between revisions

From RavenWiki
Jump to navigationJump to search
(MRBS - Meeting Room Booking System - using Raven Authentication)
 
No edit summary
Line 17: Line 17:


and this bit of configuration in config.inc.php :
and this bit of configuration in config.inc.php :
$auth["session"] = "php";
$auth["session"] = "php";
$auth["type"] = "none";
$auth["type"] = "none";
 
The .htaccess file is very simple:
<Limit GET>
order deny,allow
deny from all
AuthType Ucam-WebAuth
Require valid-user
Satisfy any
</Limit>

Revision as of 07:41, 28 March 2006

MRBS - Meeting Room Booking System

This is a very simple booking system that is OSS: MRBS Home Page

To use Raven authentication you could put in your own PHP code, or use take the quicker approach and use Apache Raven authentication combined with a simple code change in session_php.inc :


//        if (isset($HTTP_SESSION_VARS["UserName"]) && ($HTTP_SESSION_VARS["UserName"] != ""))
//            return $HTTP_SESSION_VARS["UserName"];
       if (isset($_SERVER['REMOTE_USER']) && ($_SERVER['REMOTE_USER'] != ""))
           return $_SERVER['REMOTE_USER'];


in the function "getUserName"

and this bit of configuration in config.inc.php :

$auth["session"] = "php";
$auth["type"] = "none";

The .htaccess file is very simple:

<Limit GET>
order deny,allow
deny from all
AuthType Ucam-WebAuth
Require valid-user
Satisfy any
</Limit>