Hi Torry, 2015.03.08 04:26, Torry Crass wrote:
Thank you for the reply,
I assumed as you did, that uncommenting it would display the debug code, having some PHP experience and all. But when I did uncomment it and then attempt the login, the debug code did not display. I even attempted to add in my own debug content with very basic echo statements where I found the "login=failed" entries in the code but none of those displayed either.
Thinking that maybe I was just off my rocker and not looking in the right place I chmod 000'd the login.php file which successfully broke it, which tells me I was editing and looking through the correct files.
OK, I just looked at the file again, and it's no longer as weird as it seemed. The thing is, these debug statements are there after FOUR die() statements. This just means that one of these preceding die() statements is being executed, so the debug output code is never reached. To actually get the debug output, you have to scatter them around. The following statements: print $_POST['localpart'] . "<br>\n"; print $_POST['domain'] . "<br>\n"; print "Posted crypt: " .$_POST['crypt'] . "<br>\n"; print $cryptscheme . "<br>\n"; print $cryptedpass . "<br>\n"; should go right after the include_once statements at the top. The following one: print $query. "<br>\n";; Should go above the '$result = ...' line. And the two remaining statements: print $row['localpart']. "<br>\n"; print $row['crypt'] . "<br>\n"; may stay where they are now.
I'm currently attempting to pull a new copy from github and set it up in parallel just to see if I can get around the problem with that.
I think it's a bit odd that mail clients have no trouble authenticating, it's only the exim4u management interface...
This just means that your password storage works. You see, mail clients authenticate against mail servers, meanwhile Exim4U management interface authenticates directly against the password stored in the database, and it obviously does that differently than the mail server. If Exim4U is misconfigured, as I suppose it is, your situation is not surprising.
I'll share the results of my test with the new copy.
Sure. Cheers! Rimas