[horde] Master User / Ingo only

Jan Schneider jan at horde.org
Tue Jul 29 09:50:30 UTC 2014


Zitat von Rick Romero <rick at havokmon.com>:

> Hey guys,
>
> I'm interested in possibly doing two things.  First I'm interested in how
> a dovecot 'master user' scenario would work.  A master user style login,
> by default, would appear like so:
> user at domain.com*admin at domain.com
>
> I assume I would use a postauthenticate hook (in IMP where my
> authentication occurs) to split the string ($userId), so when logging in to
> manage 'user at domain.com', the admin would also get the preferences for
> 'user at domain.com' from SQL instead of 'user at domain.com*admin at domain.com'. 
> Is that correct? 

Sounds about right.

> Which leads me to my second question. I also run Ingo - which currently
> stores procmail files via (Pure)FTP.   Gollem is also used, and is the
> VFS provider.  I could alter the SQL query in PureFTP to trim the username
> prior to running the auth and dir queries - but how would I get the $userId
> reflect the original username?  The authusername hook? 
> How does that interact with the postauth hook?  How often is it called?
>
> Would I need to save the original username in a custom session var in the
> postauth hook, then call the authusername hook (somewhere?) to switch the
> username back for VFS/FTP use? 

There is the transport_auth hook in Ingo for that purpose. The  
authusername hook is mostly for normalizing/cosmetical purposes.

-- 
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject



More information about the horde mailing list