Bug 17459 - Add a script to create a superlibrarian user
Summary: Add a script to create a superlibrarian user
Status: Pushed to Master
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-17 17:00 UTC by Jonathan Druart
Modified: 2016-10-28 16:57 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Bot Control: ---
When did the bot last check this:
Who signed the patch off:
Text to go in the release notes:


Attachments
Bug 17459: Add a script to create a superlibrarian user (2.47 KB, patch)
2016-10-17 17:03 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 17459: Add a script to create a superlibrarian user (2.52 KB, patch)
2016-10-18 19:58 UTC, Chris Cormack
Details | Diff | Splinter Review
Bug 17459 Follow up (3.20 KB, patch)
2016-10-18 19:58 UTC, Chris Cormack
Details | Diff | Splinter Review
Bug 17459 Follow up (3.20 KB, patch)
2016-10-18 20:05 UTC, Chris Cormack
Details | Diff | Splinter Review
[SIGNED-OFF] Bug 17459: Add a script to create a superlibrarian user (2.59 KB, patch)
2016-10-19 19:08 UTC, Josef Moravec
Details | Diff | Splinter Review
[SIGNED-OFF] Bug 17459 Follow up (3.27 KB, patch)
2016-10-19 19:08 UTC, Josef Moravec
Details | Diff | Splinter Review
Bug 17459: Add a script to create a superlibrarian user (2.63 KB, patch)
2016-10-24 18:01 UTC, Tomás Cohen Arazi
Details | Diff | Splinter Review
Bug 17459: Follow up (3.31 KB, patch)
2016-10-24 18:01 UTC, Tomás Cohen Arazi
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2016-10-17 17:00:47 UTC
As a developer, I'd like to create a superlibrarian user easily, without any clics
Comment 1 Jonathan Druart 2016-10-17 17:03:28 UTC
Created attachment 56608 [details] [review]
Bug 17459: Add a script to create a superlibrarian user

This is for developers: it's quite long (many clics) to create a new
superlibrarian user.
This new script creates a new user with superlibrarian permissions with
the easy to remember credential koha/koha

Test plan:
  perl misc/devel/create_superlibrarian.pl
Log in to Koha using koha/koha
Comment 2 Chris Cormack 2016-10-18 07:49:24 UTC
Would you mind if I did a quick follow up that added the option to pass in username and password as parameters?

(It could still default to koha/koha if they weren't set)
Comment 3 Jonathan Druart 2016-10-18 08:22:54 UTC
(In reply to Chris Cormack from comment #2)
> Would you mind if I did a quick follow up that added the option to pass in
> username and password as parameters?
> 
> (It could still default to koha/koha if they weren't set)

Please do :)
Comment 4 Chris Cormack 2016-10-18 19:58:31 UTC
Created attachment 56630 [details] [review]
Bug 17459: Add a script to create a superlibrarian user

This is for developers: it's quite long (many clics) to create a new
superlibrarian user.
This new script creates a new user with superlibrarian permissions with
the easy to remember credential koha/koha

Test plan:
  perl misc/devel/create_superlibrarian.pl
Log in to Koha using koha/koha

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Comment 5 Chris Cormack 2016-10-18 19:58:45 UTC
Created attachment 56631 [details] [review]
Bug 17459 Follow up

Adding POD and --userid and --password options

1/ To test, use the same routine as before, with no options.
2/ You should have a user with koha/koha as userid and passwords
3/ Delete that user
4/ Run the script with --userid <userid> --password <password>
5/ You should have a user in koha with userid/password set
Comment 6 Chris Cormack 2016-10-18 20:05:06 UTC
Created attachment 56632 [details] [review]
Bug 17459 Follow up

Adding POD and --userid and --password options

1/ To test, use the same routine as before, with no options.
2/ You should have a user with koha/koha as userid and passwords
3/ Delete that user
4/ Run the script with --userid <userid> --password <password>
5/ You should have a user in koha with userid/password set
Comment 7 Josef Moravec 2016-10-19 19:08:28 UTC
Created attachment 56670 [details] [review]
[SIGNED-OFF] Bug 17459: Add a script to create a superlibrarian user

This is for developers: it's quite long (many clics) to create a new
superlibrarian user.
This new script creates a new user with superlibrarian permissions with
the easy to remember credential koha/koha

Test plan:
  perl misc/devel/create_superlibrarian.pl
Log in to Koha using koha/koha

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Comment 8 Josef Moravec 2016-10-19 19:08:40 UTC
Created attachment 56671 [details] [review]
[SIGNED-OFF] Bug 17459 Follow up

Adding POD and --userid and --password options

1/ To test, use the same routine as before, with no options.
2/ You should have a user with koha/koha as userid and passwords
3/ Delete that user
4/ Run the script with --userid <userid> --password <password>
5/ You should have a user in koha with userid/password set

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Comment 9 Tomás Cohen Arazi 2016-10-24 18:01:29 UTC
Created attachment 56814 [details] [review]
Bug 17459: Add a script to create a superlibrarian user

This is for developers: it's quite long (many clics) to create a new
superlibrarian user.
This new script creates a new user with superlibrarian permissions with
the easy to remember credential koha/koha

Test plan:
  perl misc/devel/create_superlibrarian.pl
Log in to Koha using koha/koha

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Comment 10 Tomás Cohen Arazi 2016-10-24 18:01:38 UTC
Created attachment 56815 [details] [review]
Bug 17459: Follow up

Adding POD and --userid and --password options

1/ To test, use the same routine as before, with no options.
2/ You should have a user with koha/koha as userid and passwords
3/ Delete that user
4/ Run the script with --userid <userid> --password <password>
5/ You should have a user in koha with userid/password set

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Comment 11 Kyle M Hall 2016-10-28 16:57:26 UTC
Pushed to master for 16.11, thanks Jonathan, Chris!