|
|||
|
Hi folks. I'm running a modular setup on ZF 1.0.3
This is the url.com: Search with Many (the admin-module). PHP Code:
A dump of $auth gives: object(Zend_Auth_Result)#59 (3) { ["_code rotected"]=> int(-3) ["_identity rotected"]=> array(0) { } ["_messages rotected"]=> array(1) { [0]=> string(49) "Invalid or absentcredentials; challenging client" } } My basicPasswd.txt is like this (admin/admin): admin:xcstorm:21232f297a57a5a743894a0e4a801fc3 Happy for any advice anyone will give. |
|
|||
|
Yes, I have the same problem in 1.5.1
I can get it work only in Opera and Firefox, but Internet Explorer 7/8 and Safari fails navigation. I am done with http adapter in ZF There is not a single one working tutorial to get http adapter working. |
|
|||
|
Hi,
parse: If you are subscribed to this post (and therefore see this message), do you mind letting us know how you overcame your issue? Do you have code you can share? If you haven't looked into it further, I believe one problem is that you md5 encoded your password, yet choose the basic authentication. Only digest is md5 encoded, not basic. I copied your code and put admin2:xcstorm:admin2 in the password file and it seemed to allow me to login. Having said that, as you noticed I'm repeatedly asked for the username and password if I enter incorrect values, therefore I haven't yet figured out how to display an error message instead. Let me know if you figured this out. As for techi's comment, I haven't found much help either. If anyone knows of some good examples, please post the URLs. |
|
|||
|
Hi,
had the same problem and it took me almost an hour to figure out a solution.. the trick is to send the response when authentication failed (see code below). :-) PHP Code:
|
|
|||
|
Well.. another couple of hours wasted: This whole thing only works when PHP runs as apache module. If you run apache as cgi, the $_SERVER vars containing the authentication infos won't be set..
![]() see: Zend Developer Zone Last edited by epegzz : 10-12-2008 at 01:11 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|