]> git.koha-community.org Git - koha.git/commit
Bug 10925: fix LDAP auth failing if DEBUG is enabled
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 20 Sep 2013 15:21:40 +0000 (17:21 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 13 Nov 2013 17:08:33 +0000 (14:08 -0300)
commit488c0aa79eab91d1911c2fd40846f4449de22e89
tree26df347d2c635d22d0dca8a3fe6a3f451dfc9f40
parent51491eb6e32960a8c1b594d3a0508565f83adbda
Bug 10925: fix LDAP auth failing if DEBUG is enabled

To reproduce:
1/ Edit your apache virtual host and set the DEBUG environment variable
(SetEnv DEBUG 1).
2/ Try to login with an ldap user
3/ You will be redirected to the 500 error page.
The Koha logs contains:
malformed header from script. Bad header=------------------------------: mainpage.pl

The hashdump routine directly prints to STDOUT (!) and breaks the
headers.
It appears Net::LDAP::?->dump does the same thing.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Maybe we can kill C4::Utils after getting rid of this

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 561107bb5b348eaa14054e3470f39ff9cf080d22)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Auth_with_ldap.pm