Change the example of auth against an external awl to use the new way.

This commit is contained in:
Andrew McMillan 2007-11-01 22:30:46 +13:00
parent 5e47b74ccf
commit 8df33654e3

View File

@ -149,19 +149,20 @@ $c->admin_email ='calendar-admin@example.com';
/********************************/ /********************************/
/******* Other AWL hook *********/ /******* Other AWL hook *********/
/********************************/ /********************************/
//require_once('AuthPlugins.php'); // require_once('auth-functions.php');
// $c->authenticate_hook = array( // $c->authenticate_hook = array(
// 'call' => 'auth_other_awl', // 'call' => 'AuthExternalAwl',
// 'config' => array( // 'config' => array(
/** A PgSQL database connection string for the database containing user records */ // // A PgSQL database connection string for the database containing user records
// 'connection' => 'dbname=wrms host=otherhose port=5433 user=general', // 'connection' => 'dbname=wrms host=otherhost port=5433 user=general',
/** Which columns should be fetched from the database */ // // Which columns should be fetched from the database
// 'columns' => "user_no, active, email_ok, joined, last_update AS updated, last_used, username, password, fullname, email" // 'columns' => "user_no, active, email_ok, joined, last_update AS updated, last_used, username, password, fullname, email",
// // a WHERE clause to limit the records returned.
// 'where' => "active AND org_code=7"
// ) // )
// ); // );
/********************************/ /********************************/
/*********** LDAP hook **********/ /*********** LDAP hook **********/
/********************************/ /********************************/