]> 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)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 2 Oct 2013 14:26:03 +0000 (14:26 +0000)
commit561107bb5b348eaa14054e3470f39ff9cf080d22
tree8c35e5d54694dfbf2f408c67f8899176bf55754f
parent7e3f8e0838584a89f3fbdce8e956880de8556d7a
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>
C4/Auth_with_ldap.pm