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
becarios ssl.ull.es
http://www.ssl.ull.es
http://bardinux.ull.es
|