Added authentication information to installer.pl, modified sample data to work
with new authentication scheme, fix to Auth.pm that was causing userid and password to show up in the URL after logging out and logging back in again.
This commit is contained in:
parent
5c54bb7e5e
commit
4dc8c48c1f
|
|
@ -86,9 +86,10 @@ sub checkauth {
|
|||
$sti=$dbh->prepare("select value from sessionqueries where sessionID=? and userid=?");
|
||||
$sti->execute($sessionID, $userid);
|
||||
if ($sti->rows) {
|
||||
my ($selfurl) = $sti->fetchrow;
|
||||
my $stj=$dbh->prepare("delete from sessionqueries where sessionID=?");
|
||||
$stj->execute($sessionID);
|
||||
my ($selfurl) = $sti->fetchrow;
|
||||
($selfurl) || ($selfurl=$ENV{'SCRIPT_NAME'});
|
||||
print $query->redirect($selfurl);
|
||||
exit;
|
||||
}
|
||||
|
|
|
|||
18
installer.pl
18
installer.pl
|
|
@ -929,6 +929,24 @@ chmod 0750, "$kohadir/scripts/z3950daemon/processz3950queue";
|
|||
chown(0, (getpwnam($httpduser)) [3], "$kohadir/scripts/z3950daemon/z3950-daemon-shell.sh") or warn "can't chown $kohadir/scripts/z3950daemon/z3950-daemon-shell.sh: $!";
|
||||
chown(0, (getpwnam($httpduser)) [3], "$kohadir/scripts/z3950daemon/processz3950queue") or warn "can't chown $kohadir/scripts/z3950daemon/processz3950queue: $!";
|
||||
|
||||
print qq|
|
||||
|
||||
==================
|
||||
= Authentication =
|
||||
==================
|
||||
|
||||
This release of Koha has a new authentication module. If you are not already
|
||||
using basic authentication on your intranet, you will be required to log in to
|
||||
access some of the features of the intranet. You can log in using the userid
|
||||
and password from the /etc/koha.conf configuration file at any time. Use the
|
||||
"Members" module to add passwords for other accounts and set their permissions.
|
||||
|
||||
[NOTE PERMISSIONS ARE NOT COMPLETED AS OF 1.2.3RC1. Do not give passwords to
|
||||
any patrons unless you want them to have full access to your intranet.]
|
||||
|;
|
||||
print "Press the <ENTER> key to continue: ";
|
||||
<STDIN>;
|
||||
|
||||
|
||||
#RESTART APACHE
|
||||
print "\n\n";
|
||||
|
|
|
|||
|
|
@ -2245,9 +2245,9 @@ INSERT INTO bibliosubject VALUES ('COSTUME-HISTORY',498);
|
|||
# Dumping data for table 'borrowers'
|
||||
#
|
||||
|
||||
INSERT INTO borrowers VALUES (1,'V10000008','Tonnesen','Steve',' ','','','asdfasdf',NULL,'asdf','','','',NULL,NULL,NULL,'','0000-00-00','','','2002-06-25',NULL,NULL,NULL,NULL,NULL,'asdf','',NULL,'L','','','M','2003-06-25','','workplace','','',NULL,NULL);
|
||||
INSERT INTO borrowers VALUES (2,'V10000019','Doe','Jane','Ms','','','PO Box 333',NULL,'Somewhere, BC','','','',NULL,NULL,NULL,'','0000-00-00','','','2002-06-25',0,0,0,NULL,NULL,'Mr. Buddy Boy','',NULL,'L','','','M','2003-06-25','','workplace','','',NULL,'PO Box 333');
|
||||
INSERT INTO borrowers VALUES (3,'V1000002X','Smith','John','Mr','','','PO Box 782',NULL,'Somewhere, BC','','','',NULL,NULL,NULL,'','0000-00-00','','','2002-06-25',NULL,NULL,NULL,NULL,NULL,'Mr. Buddy Boy','',NULL,'L','','','M','2003-06-25','','workplace','','',NULL,NULL);
|
||||
INSERT INTO borrowers VALUES (1,'V10000008','Tonnesen','Steve',' ','','','asdfasdf',NULL,'asdf','','','',NULL,NULL,NULL,'','0000-00-00','','','2002-06-25',NULL,NULL,NULL,NULL,NULL,'asdf','',NULL,'L','','','M','2003-06-25','','workplace','','',NULL,NULL,'tonnesen','iux7QhPe4Y9aPvjHbrUsCA');
|
||||
INSERT INTO borrowers VALUES (2,'V10000019','Doe','Jane','Ms','','','PO Box 333',NULL,'Somewhere, BC','','','',NULL,NULL,NULL,'','0000-00-00','','','2002-06-25',0,0,0,NULL,NULL,'Mr. Buddy Boy','',NULL,'L','','','M','2003-06-25','','workplace','','',NULL,'PO Box 333', 'jdoe', 'iux7QhPe4Y9aPvjHbrUsCA');
|
||||
INSERT INTO borrowers VALUES (3,'V1000002X','Smith','John','Mr','','','PO Box 782',NULL,'Somewhere, BC','','','',NULL,NULL,NULL,'','0000-00-00','','','2002-06-25',NULL,NULL,NULL,NULL,NULL,'Mr. Buddy Boy','',NULL,'L','','','M','2003-06-25','','workplace','','',NULL,NULL,'jsmith', 'iux7QhPe4Y9aPvjHbrUsCA');
|
||||
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in New Issue