[Koha] Koha 2.2.3 + basic authentication

Jared Jennings jjenning at gmail.com
Fri Aug 26 17:43:28 NZST 2005


I believe I've uncovered a bug in Koha's handling of basic
authentication in 2.2.3.

If you log in using sesion ID's and cookies and all this, the
checkauth function will sooner or later have a line like:
$flags = haspermission($dbh, $userid, $flagsrequired);

This will happen before it returns $flags.

But in the case of basic authentication, $flags is never assigned
anything before it is returned. The result of this is that when I use
basic authentication, I can't see any parameters in the parameters
page. Nigel Titley <nigel at titley.com> was having some problems like
this around July 30, 2005.

When I applied this change to
/usr/local/lib/koha/intranet/modules/Auth.pm, I could see all the 
parameters on the parameters page that I should be able to see as a
superlibrarian. The patch follows.

--- Auth.pm.old 2005-08-26 00:35:22.000000000 +0000
+++ Auth.pm     2005-08-26 00:34:34.000000000 +0000
@@ -292,6 +292,7 @@
                                -value => '',
                                -expires => '');
                $loggedin = 1;
+               $flags = haspermission($dbh, $userid, $flagsrequired);
        } elsif ($sessionID=$query->cookie('sessionID')) {
                my ($ip , $lasttime);
                ($userid, $ip, $lasttime) = $dbh->selectrow_array(
_______________________________________________
Koha mailing list
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha



More information about the Koha mailing list