[dev] Passwd and hooks...

Jan Schneider jan at horde.org
Thu Oct 20 00:17:06 PDT 2005


Zitat von Michael Rubinsky <mike at theupstairsroom.com>:

> I have a client installation that uses SQL authentication to login to
> Horde.  Usernames between Horde and the IMAP server that IMP connects
> to are the same, except that the email provider requires the full email
> address to login.  I set up the _username_hook_tobackend() hook to
> append the domainname to the Horde username so they can loginto Horde
> as 'user' and then (transparently) authenticate to IMAP as
> 'user at example.com'.  The question I have is this - the utility to
> change the user's IMAP password is a web-based form and I'm writing a
> passwd driver to change the password using this.  What I would like to
> do is put together a composite driver that would allow changing both
> passwords at once - which I know can be done, but I can't figure out if
> there is a way at present to have one passwd backend (SQL) use only the
> username while the other backend (my new web-based backend) uses the
> non-pruned username.  I thought of maybe changing the hook to pass an
> instance of the the passwd driver?

Correct, this is not possible at the moment, and I agree that passing a 
driver object is a nice solution.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list