PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser » Bug #7314

RegExp before testing all auth-containers

Details

Request #7314RegExp before testing all auth-containers
Submitted2006-04-05 12:32 UTC
Frommarkus dot wagner at meduniwien dot ac dot at
StatusWont fix
PackageLiveUser
PHP Version5.1.2
OSSuse 9.3
Roadmaps(Not assigned)

Comments

[2006-04-05 12:32 UTC] markus dot wagner at meduniwien dot ac dot at

Description:
------------
I use Liveuser with 3 LDAPs and one database.

The problem is, that LiveUser is asking every auth-container (in my case 3 LDAPs and one db), but if we would analyse the username, you could see that only one LDAP is possible to login.

I think this is a common case, so I suggest to insert a new config-value, where you can put an regEx-Code which describes the possible usernames.

Then the Line http://cvs.php.net/viewcvs.cgi/pear/LiveUser/LiveUser.php?annotate=1.155#l1039 will only be called, when the regex not exist or when the regex exist and the username passes the regex.

[2006-04-05 13:10 UTC] markus dot wagner at meduniwien dot ac dot at

Yes, I am modifying the config-array on fly, before the login-method is called.

[2006-04-05 13:17 UTC] markus dot wagner at meduniwien dot ac dot at

Do you have other requests for this function?

I thought it could be better implemented than the way I did. I have workaround, so if nobody need this feature its not necessary to implement.