![]() |
Admin 1/26/2012 |
To the best of my understanding AD username/password are incorrect. |
D
|
drgregory author 1/26/2012 |
Dear admin, |
D
|
drgregory author 1/26/2012 |
Of course, for debugging purposes I print any data I use in the function, like this: |
![]() |
Admin 1/26/2012 |
I guess your question is how to turn off error reporting so function can proceed further and return false, right? |
D
|
drgregory author 1/26/2012 |
I've tried putting error_reporting(0); at top of the BeforeLogin function as you suggested. But the results are still the same. When the user and or password typed are wrong, error page arises and the process is aborted. If both are correct, ldap_bind() answers True and execution of login process continues as expected (looking for the same user/password in the PostgreSQL table). Any ideas? |
D
|
drgregory author 1/26/2012 |
By the way, I tell you that when the error page arises, the technical information box says Error type: 2, and the rest of the info is what I wrote in my first post. |
![]() |
Admin 1/26/2012 |
To be honest, I have no idea why ldap_bind produces the error instead of simply returning false. $prmexprval = @ldap_bind($conldapsrv, $strdomiusu, $prmusupass);
|
D
|
drgregory author 1/27/2012 |
OK, I've tried all of your suggestions before you tell me about using them, so I change you the question: how can I tell PHPRunner not to show that error page, at least during the login process, so as to give me the control over the results of the functions I use? |
![]() |
Admin 1/27/2012 |
I don't know why this happening. |