Name |
Values |
Description |
Required |
Ver. 1 |
Ver. 2 |
AuthCookieSql |
on|off |
Activates this module |
YES |
|
|
AuthCookieSql_DBhost |
<hostname> or <IP> |
Hostname or IP of the host where MySQL is running on |
YES |
|
|
AuthCookieSql_DBName |
<dbname> |
Name of the database in MySQL |
YES |
|
|
AuthCookieSql_DBTable |
<tbname> |
Tablename in database |
YES |
|
|
AuthCookieSql_DBUser |
<username> |
Username for MySQL connection |
YES |
|
|
AuthCookieSql_DBPassword |
<password> |
Password for MySQL connection |
YES |
|
|
SqlCookieAuth_DBPersistent |
on|off |
Default: off. Make database connection persistent, if you have a heavy loaded webserver this option increases the performance of the module. |
OPTIONAL |
|
|
AuthCookieSql_UsernameField |
<fieldname> |
Field in MySQL table where username of session is stored. This username is displayed as the "Remote Username" variable "REMOTE_USER" in Apache |
YES |
|
|
AuthCookieSql_SessnameField |
<fieldname> |
Field in MySQL table where session name is stored in. This is the name of the cookie ! |
YES |
|
|
AuthCookieSql_SessvalField |
<fieldname> |
Field in MySQL table where session value (this is the value which is compared with the cookies value) is stored in |
YES |
|
|
AuthCookieSql_CookieName |
<name> |
If this option is set, only the cookie with this name is searched. If it is not set, this module searches all cookies the browser sencs and checks the name against the values in die Sessname field and its value against Sessval field. |
OPTIONAL |
|
|
AuthCookieSql_ExpiryField |
<fieldname> |
When this option is set, the current time of the webserver is compared against this field in the database. This value is: time in seconds since 01.01.1970 (unix timestamp). |
OPTIONAL |
|
|
AuthCookieSql_RemoteIPField |
<fieldname> |
When this option is set, the remote address of the connected client is checked against this field. Only when the remote IP and the stored IP are eqal the client can authorize |
OPTIONAL |
|
|
AuthCookieSql_FailureURL |
<url> |
Normally, when the authorization failed, the client gets a "AUTHORIZATION REQUIRED" message from the webserver. When this option is set, you can redirect the client to another URL.
Attention: This is a normal "redirect" for the browser, if you want a internal redirect (the browser doesn't see the url where he is redirected to) you can use the ErrorDocument directive: "ErrorDocument 401 /someerrorfile.html" |
OPTIONAL |
|
|
SqlCookieAuth_AdditionalSql |
<sql term> |
With this parameter you can add an SQL term to the SQL query string. The term is appended after the WERE clause. |
OPTIONAL |
|
|