List Info

Thread: New auth backend




New auth backend
country flaguser name
Spain
2007-02-15 03:20:13
We use the ldap back end but we can't modify the ldap adding
groups and 
we need them to manage ACLs; so we need to do some hacking
to get groups 
outside the auth backend.

What we did is provide a new authtype called externalgroups.
This
back end just call the  functions from the 
$conf['auth']['externalgroups']['authtype'] back end but
getUserData.

The getUserData function call to the function in
$conf['auth']['externalgroups']['authtype'] but then modify
the value
for grps key appending or sustituying the user groups
defined in
groups.auth.php files.

Modify $conf['auth']['externalgroups']['append'] to whether
append or 
subsitute (1 = append; 0 = substitue).

I attach the file compressed with gzip.

-- 
Saludos,
Esau Rodriguez
becariosssl.ull.es
http://www.ssl.ull.es
http://bardinux.ull.es



  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )