Difference between revisions of "Default Login Realm"

From Roaring Penguin
Jump to: navigation, search
 
Line 1: Line 1:
The $Config file in CanIt is used to set configuration values. To set the default realm the user will be placed in on log in you need the following setting:
+
The $Config variable in the CanIt software is a large array holding the settings for a wide variety of CanIt configurations. It can be used to control CanIt's default behaviour. To access it you need to create the file, If it does not already exist:
   $Config['DefaultRealm'] = 'example-com';
+
  /var/www/canit/site/config.php
This must be entered in the file /var/www/canit/site/config.php. See [[CanIt $Config]] page for details.
+
In the file, if not already there, you need to add:
 +
 
 +
  <?php
 +
   global $Config;
 +
    $Config['DefaultRealm'] = 'example-com';
 +
  ?>
 +
Where:
 +
*- where multiple $Config[]; entries are allowed), and
 +
*- There's no whitespace before <?php or after ?>.
  
 
<div style="float:right; clear:both; margin-right:0.5em">[[Support Wiki | [Home]]]</div>
 
<div style="float:right; clear:both; margin-right:0.5em">[[Support Wiki | [Home]]]</div>
 
[[category:All]][[category:Setup]]
 
[[category:All]][[category:Setup]]

Latest revision as of 13:47, 15 May 2014

The $Config variable in the CanIt software is a large array holding the settings for a wide variety of CanIt configurations. It can be used to control CanIt's default behaviour. To access it you need to create the file, If it does not already exist:

  /var/www/canit/site/config.php

In the file, if not already there, you need to add:

  <?php
  global $Config;
    $Config['DefaultRealm'] = 'example-com';
  ?>

Where:

  • - where multiple $Config[]; entries are allowed), and
  • - There's no whitespace before <?php or after ?>.