[Bug 6516] New: koha-create makes assumptions about borrowernumber of staff user
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6516 Bug #: 6516 Summary: koha-create makes assumptions about borrowernumber of staff user Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: Packaging AssignedTo: robin@catalyst.net.nz ReportedBy: magnus@enger.priv.no QAContact: koha-bugs@lists.koha-community.org In debian/scripts/koha-create a random password is set for a staff user, but this staff user is hardcoded to have borrowernumber = 3: mysql --host="$mysqlhost" --user="$mysqluser" \ --password="$mysqlpwd" <<eof USE \`$mysqldb\`; UPDATE borrowers SET password = '$staffdigest' WHERE borrowernumber = 3; eof For me it would make sense to have one pre-defined staff user in the DEFAULTSQL file, with borrowernumber = 1. Maybe the borrowernumber of the staff user could be set in /etc/koha/koha-sites.conf? -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6516 --- Comment #1 from Robin Sheat <robin@catalyst.net.nz> 2011-06-19 01:57:15 UTC --- This seems to me to be a good idea. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6516 Magnus Enger <magnus@enger.priv.no> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|robin@catalyst.net.nz |magnus@enger.priv.no --- Comment #2 from Magnus Enger <magnus@enger.priv.no> 2011-08-17 06:07:56 UTC --- Created attachment 5040 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5040 Proposed patch This should make it possible to set the borrowernumber of the adminuser both in configfiles (ADMINUSER) and on the commandline (--adminuser or -a). The default is 1. To test the new default: - Create a database dump where the admin user has borrowernumber = 1 - Create an instance - Check that you can log in with the generated password - Create a database dump where the admin user has borrowernumber = 2 - Create an instance, setting ADMINUSER=2 in a configfile - Check that you can log in with the generated password - Create another instance setting "-a 2" on the command line - Check that you can log in with the generated password -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6516 Magnus Enger <magnus@enger.priv.no> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent Patch Status|--- |Needs Signoff -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6516 --- Comment #3 from Robin Sheat <robin@catalyst.net.nz> 2011-09-02 03:37:29 UTC --- Created attachment 5271 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5271 Bug 6516 - Make borrowernumber of staff user configurable in koha-create Sets the default borrowernumber of staff user to 1 and makes it possible to override this with ADMINUSER in /etc/koha/koha-sites.conf or with the --adminuser and -a command line options. Remember to update the wiki if this gets pushed! Signed-off-by: Robin Sheat <robin@catalyst.net.nz> -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6516 Robin Sheat <robin@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5040|0 |1 is obsolete| | -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6516 Robin Sheat <robin@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robin@catalyst.net.nz Patch Status|Needs Signoff |Signed Off -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6516 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@bigballofwax.co.nz Patch Status|Signed Off |Patch Pushed --- Comment #4 from Chris Cormack <chris@bigballofwax.co.nz> 2011-09-04 08:24:47 UTC --- Packages related patch, pushed please test -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6516 --- Comment #5 from Chris Nighswonger <cnighswonger@foundations.edu> 2011-10-26 18:02:13 UTC --- The fix for this bug was published in the 3.4.5 release. If you were the reporter of this bug, please take time to verify the fix and update the status of this bug report accordingly. If the bug is fixed to your satisfaction, please close this report. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6516 Magnus Enger <magnus@enger.priv.no> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org