@@ -, +, @@ administrator account --url=http://admin.koha.local/cgi-bin/koha/ --password="koha" --user="koha" ... Step 6 ... --url=http://admin.koha.local/cgi-bin/koha/ --password="root" --user="root" --- misc/load_testing/benchmark_staff.pl | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) --- a/misc/load_testing/benchmark_staff.pl +++ a/misc/load_testing/benchmark_staff.pl @@ -18,6 +18,7 @@ use Data::Dumper; use HTTP::Cookies; use C4::Context; use C4::Debug; +use C4::Members qw ( GetMember ); use URI::Escape; my ($help, $steps, $baseurl, $max_tries, $user, $password,$short_print); @@ -89,6 +90,9 @@ if( $resp->is_success and $resp->content =~ m|ok| ) { die "Authentication failure: \n\t" . $resp->status_line; } +die "You cannot use the database administrator account to launch this script" + unless defined C4::Members::GetMember(userid => $user); + # remove some unnecessary garbage from the cookie $cookie =~ s/ path_spec; discard; version=0//; $cookie =~ s/Set-Cookie3: //; --