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

            Bug ID: 41011
           Summary: SelfCheckAllowByIPRanges doesn't work with localhost
                    connections
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Authentication
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

TEST PLAN:
0. Enable SCO from sysprefs
1. SelfCheckAllowByIPRanges = ::1 localhost 127.0.0.1
2. From within the Koha-server, do curl
http://localhost:80/cgi-bin/koha/sco/sco-main.pl
2.a. Or set up stunnel4 for a SCO-client.
3. Observe SCO-module is not loaded, but the OPAC login screen.

To fix is to add checks for C4::Auth::in_iprange to allow localhost

eg.

return 1 if ($ENV{'REMOTE_ADDR'} =~
/^(?:::1)|(?:localhost)|(?:127\.0\.0\.1)$/);

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to