Error page when wrong password

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
sivakumar
Posts: 19
Joined: Tue Sep 28, 2010 3:04 pm

Error page when wrong password

Post by sivakumar »

Hi,

I am using LDAP authenication . If i give correct username password it works great. But if i give wrong username or password it gives the following warning in the page . how to aviod this?

phpMyFAQ warning [2]: ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid credentials in Ldap.php on line 115

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\newfaq\inc\functions.php:153) in header.php on line 31

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\newfaq\inc\functions.php:153) in header.php on line 32

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\newfaq\inc\functions.php:153) in header.php on line 33

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\newfaq\inc\functions.php:153) in header.php on line 34

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\newfaq\inc\functions.php:153) in header.php on line 35

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\newfaq\inc\functions.php:153) in header.php on line 36

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\newfaq\inc\functions.php:153) in header.php on line 37
Thorsten
Posts: 15568
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Error page when wrong password

Post by Thorsten »

Hi,

this is a stupid behaviour of the PHP function ldap_bind(). I'll work on a better error handling for this.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply