[Tickets #2832] NEW: New 'http' driver for Passwd
bugs@bugs.horde.org
bugs at bugs.horde.org
Sun Oct 23 20:42:31 PDT 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: https://dev.horde.org/horde/whups/ticket/?id=2832
-----------------------------------------------------------------------
Ticket | 2832
Created By | Michael Rubinsky <mrubinsk at horde.org>
Summary | New 'http' driver for Passwd
Queue | Passwd
Version | HEAD
State | New
Priority | 1. Low
Type | Enhancement
Owners |
-----------------------------------------------------------------------
Michael Rubinsky <mrubinsk at horde.org> (2005-10-23 20:42) wrote:
This ticket replaces ticket: 2827 I figured it best to open a new ticket
since I was widening the scope of the original enhancement.
This patch adds a 'http' driver to add support to Passwd for dealing with
providers that only allow password changes via a web form. Provides support
for typical required fields of username, old_password, password1,password2.
Field names are configurable via the backends.php file. Also provides
suppport for adding aribtrary fieldname => value pairs that may be required
by a specific form. Performs a basic search of the returned html page to
determine success or failure (and cause of failure). The text strings to
search for are also configurable via backends.php.
This patch also changes the _passwd_hook_username custom hook to accept a
reference to the Passwd_Driver object to support returning a different
$userid based on the backend being used. To the same extent, it also
patches Passwd_Driver_composite to check for the existence of a 'username'
parameter in each driver it will chain together. If the parameter is
present, it will override the default $userid that would have been used.
This allows the same level of control over determining $userid as with the
individual drivers.
I was unable to commit this to Passwd, as I ran out of karma...
More information about the bugs
mailing list