[Koha-bugs] [Bug 16282] Usernames should be case sensitive

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 20 00:26:29 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16282

--- Comment #4 from Chris Cormack <chris at bigballofwax.co.nz> ---
Created attachment 50447
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50447&action=edit
Bug 16282 : Making GetMember be case sensitive for userid

The main place this changes is SIP

GetMember with a username is only used in 3 places

C4/SIP/ILS/Patron.pm:    $kp = GetMember(cardnumber=>$patron_id) ||
GetMember(userid=>$patron_id);
misc/load_testing/benchmark_staff.pl:    unless defined
C4::Members::GetMember(userid => $user);
tools/import_borrowers.pl:            $member = GetMember( 'userid' =>
$borrower{'userid'} );

To Test SIP

1/ Apply patches, set syspref to No (it should be No already but just in case)
2/ Restart the SIP server
3/ Login to SIP with a userid and password combo
4/ Notice no change, try with different case for userid
5/ Switch on the syspref
6/ Restart the SIP server
7/ Notice the userid/username case sensitive now

The benchmarking script appears faulty anyway, but if you can get it to run, it
should
now care about case sensitive usernames if you have the syspref on.

To test borrower import
1/ Apply patch, check syspref is No
2/ Import borrowers with the userid being the matchpoint notice case doesn't
matter
3/ Switch syspref to Yes
4/ Import borrowers again, now they will only match if the userid(username)
matches exactly (Case sensitive)

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list