Return to example1 $admin->perm returning NULL
Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
I am returning back to example1 , I have got liveuser from cvs, aswell
as the examples from cvs. Here is my config however $admin->perm is
return NULL when I vardump it therefore I can setup rights and
applications etc. I didnt make any changes other than hardcoding the
perm driver aswell as the require to Log.php was missing originally :)
Any ideas.
$conf =
array(
'autoInit' => false,
'session' => array(
'name' => 'PHPSESSION',
'varname' => 'ludata'
),
'login' => array(
'force' => false,
),
'logout' => array(
'destroy' => true,
),
'authContainers' => array(
array(
'type' => 'MDB2',
'name' => 'MDB2_Local',
'loginTimeout' => 0,
'expireTime' => 3600,
'idleTime' => 1800,
'dsn' => $dsn,
'allowDuplicateHandles' => false,
'authTable' => 'liveuser_users',
'authTableCols' => array(
'required' => array(
'auth_user_id' => array('type' => 'text',
'name' => 'auth_user_id'),
'handle' => array('type' => 'text',
'name' => 'handle'),
'passwd' => array('type' => 'text',
'name' => 'passwd'),
),
'optional' => array(
'is_active' => array('type' =>
'boolean', 'name' => 'is_active'),
'lastlogin' => array('type' =>
'timestamp', 'name' => 'last_login'),
'owner_user_id' => array('type' =>
'integer', 'name' => 'owner_user_id'),
'owner_group_id' => array('type' =>
'integer', 'name' => 'owner_group_id')
),
'custom' => array (
'name' => array('type' => 'text',
'name' => 'name'),
'email' => array('type' => 'text',
'name' => 'email'),
)
)
)
),
'permContainer' => array(
'type' => 'Complex',
'alias' => array(),
'storage' => array(
'MDB2' => array(
// 'connection' => $db,
'dsn' => $dsn,
'prefix' => 'liveuser_',
'tables' => array(),
'fields' => array(),
'alias' => array(),
// 'force_seq' => false
),
),
),
);