I also have an idea: apply a custom function doing the arbitrary
manipulation.

So I tested it with imap, pop3 or local authentication. You may enable
imap authentication, and add any email addresses to the given user
with a custom function.

So check out the master branch, and update the gui. Then edit config-site.php,
and add the following:

############ start

$config['CUSTOM_EMAIL_QUERY_FUNCTION'] = 'akakaak';

function akakaak($username = '') {
   $session = Registry::get('session');
$session->set("emails", array($username, '[email protected]', '[email protected]'));
}

############ end


What does this function do? It's an example to show you how to apply
an arbitrary array of email addresses to the given user. ($username
holds the email address you type in the login form).

So with a little coding it may be possible to solve pretty complex
challenges.

In your case there may be 2 methods:

a) tweak the ldap query as I mentioned before

b) skip ldap authentication, and use imap authentication with the above
customisation.

If none of these work out, then I may extend it, and make the custom
thing work with ldap as well.


Janos

Reply via email to