ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
authmemcookie.php
Go to the documentation of this file.
1 <?php
2 
7 $config = array(
8 
9  /*
10  * The authentication source that should be used.
11  *
12  * This must be one of the authentication sources configured in config/authsources.php.
13  */
14  'authsource' => 'default-sp',
15 
16  /*
17  * This is the name of the cookie we should save the session id in. The value of this option must match the
18  * Auth_memCookie_CookieName option in the Auth MemCookie configuration. The default value is 'AuthMemCookie'.
19  *
20  * Default:
21  * 'cookiename' => 'AuthMemCookie',
22  */
23  'cookiename' => 'AuthMemCookie',
24 
25  /*
26  * This option specifies the name of the attribute which contains the username of the user. It must be set to
27  * a valid attribute name.
28  *
29  * Examples:
30  * 'username' => 'uid', // LDAP attribute for user id.
31  * 'username' => 'mail', // LDAP attribute for email address.
32  *
33  * Default:
34  * No default value.
35  */
36  'username' => null,
37 
38  /*
39  * This option specifies the name of the attribute which contains the groups of the user. Set this option to
40  * NULL if you don't want to include any groups.
41  *
42  * Example:
43  * 'groups' => 'edupersonaffiliation',
44  *
45  * Default:
46  * 'groups' => null,
47  */
48  'groups' => null,
49 
50  /*
51  * This option contains the hostnames or IP addresses of the memcache servers where we should store the
52  * authentication information. Separator is a comma. This option should match the address part of the
53  * Auth_memCookie_Memcached_AddrPort option in the Auth MemCookie configuration.
54  *
55  * Examples:
56  * 'memcache.host' => '192.168.93.52',
57  * 'memcache.host' => 'memcache.example.org',
58  * 'memcache.host' => 'memcache1.example.org,memcache2.example.org'
59  *
60  * Default:
61  * 'memcache.host' => '127.0.0.1',
62  */
63  'memcache.host' => '127.0.0.1',
64 
65  /*
66  * This option contains the port number of the memcache server where we should store the
67  * authentication information. This option should match the port part of the
68  * Auth_memCookie_Memcached_AddrPort option in the Auth MemCookie configuration.
69  *
70  * Default:
71  * 'memcache.port' => 11211,
72  */
73  'memcache.port' => 11211,
74 
75 );
$config
This is the configuration file for the Auth MemCookie example.