Re: Would like to extend PEAR::Auth to notify if the user does not exist
| From: | Jan Wagner | Date: | Mon, 24 Mar 2003 20:20:22 +0000 |
| Subject: | Re: Would like to extend PEAR::Auth to notify if the user does not exist | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14580@lists.php.net to get a copy of this message | ||
Am Mon, 2003-03-24 um 19.19 schrieb Damien McKenna:
> I would like to extend PEAR::Auth to have an extra status message that would
> state that the user account was not found, maybe even an extra method to
> check this first.
>
> I have come across a need for this in my LDAP extension for Tiki
> (http://tikiwiki.sf.net/). The code I'm planning on adding to Tiki would
> have an option to add a user that was found in the Tiki user database but
> not found in the LDAP directory. Currently Auth only states whether the
> user validated correctly, not whether the user was found, despite the fact
> that the code first verifies the user's existence before the authentication
> is attempted.
>
> What would be the best way of doing this? Should I extend Auth,
> Auth_Container or Auth_Container_LDAP, or should I just ship a custom
> Auth_Container_LDAP.php file with Tiki?
Hi,
there does not seem to be such functionality in Auth right now. You
would have to extend Auth to implement a new status, and additionally
extend all the containers to set that status. Should not be too hard, I
think and would probably not break bc as old containers don't need to
set that status.
Jan