updatedatabase change : set CAS auth OFF by default
authorPaul Poulain <paul.poulain@biblibre.com>
Tue, 8 Dec 2009 08:14:25 +0000 (09:14 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Sun, 20 Dec 2009 13:31:30 +0000 (14:31 +0100)
ON by default will confuse most libraries, and it won't work as the CAS server won't be defined

installer/data/mysql/updatedatabase.pl

index 4e1d1cf..bb874ab 100755 (executable)
@@ -3286,7 +3286,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
 
 $DBversion = "3.01.00.100";
 if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
-       $dbh->do("INSERT INTO `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('casAuthentication', '1', '', 'Enable or disable CAS authentication', 'YesNo'), ('casLogout', '1', '', 'Does a logout from Koha should also log out of CAS ?', 'YesNo'), ('casServerUrl', 'https://localhost:8443/cas', '', 'URL of the cas server', 'Free')");
+       $dbh->do("INSERT INTO `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('casAuthentication', '0', '', 'Enable or disable CAS authentication', 'YesNo'), ('casLogout', '1', '', 'Does a logout from Koha should also log out of CAS ?', 'YesNo'), ('casServerUrl', 'https://localhost:8443/cas', '', 'URL of the cas server', 'Free')");
        print "Upgrade done (added CAS authentication system preferences)\n";
     SetVersion ($DBversion);
 }