[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2024-04-03 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Michaela Sieber  changed:

   What|Removed |Added

   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=36503
 CC||michaela.sie...@kit.edu

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2021-10-19 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Marcel de Rooy  changed:

   What|Removed |Added

 CC||m.de.r...@rijksmuseum.nl

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-10-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

hannah...@northwestu.edu changed:

   What|Removed |Added

 CC|hannah...@northwestu.edu|

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-10-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

hannah...@northwestu.edu changed:

   What|Removed |Added

 CC||hannah...@northwestu.edu

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-10-15 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Magnus Enger  changed:

   What|Removed |Added

   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=22706

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-09-09 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Arthur Suzuki  changed:

   What|Removed |Added

 CC||arthur.suz...@biblibre.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-07-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Magnus Enger  changed:

   What|Removed |Added

 CC||mag...@libriotech.no

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-07-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #64 from M. Tompsett  ---
# Subtest: no_set_userenv parameter tests
1..13
ok 1 - checkpw returns true
ok 2 - Userenv should be undef as required
ok 3 - Userenv gives correct branch
ok 4 - checkpw returns true
ok 5 - Userenv branch is preserved if no_set_userenv is true
ok 6 - checkpw still returns true
not ok 7 - Userenv branch is overwritten if no_set_userenv is false

#   Failed test 'Userenv branch is overwritten if no_set_userenv is false'
#   at t/db_dependent/Auth.t line 143.
#  got: undef
# expected: anything else
ok 8 - With TestAuth plugin, checkpw returns 0
ok 9 - With TestAuth plugin, checkpw returns empty cardnumber
ok 10 - With TestAuth plugin, checkpw returns empty userid
not ok 11 - With TestAuth plugin, checkpw returns 1
not ok 12 - With TestAuth plugin, checkpw returns test cardnumber

#   Failed test 'With TestAuth plugin, checkpw returns 1'
#   at t/db_dependent/Auth.t line 151.
#  got: '0'
# expected: '1'

#   Failed test 'With TestAuth plugin, checkpw returns test cardnumber'
#   at t/db_dependent/Auth.t line 152.
#  got: undef
# expected: 'test'
not ok 13 - With TestAuth plugin, checkpw returns test userid

#   Failed test 'With TestAuth plugin, checkpw returns test userid'
#   at t/db_dependent/Auth.t line 153.
#  got: undef
# expected: 'test'
# Looks like you failed 4 tests of 13.
not ok 4 - no_set_userenv parameter tests

#   Failed test 'no_set_userenv parameter tests'
#   at t/db_dependent/Auth.t line 154.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-07-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #63 from M. Tompsett  ---
Comment on attachment 91304
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91304
Bug 20340 - Ability to add and use authentication plugins

Review of attachment 91304:
 --> 
(https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html=20340=91304)
-

::: t/Koha/Plugin/TestAuth.pm
@@ +49,5 @@
> +
> +if ( $key eq 'priority' ) {
> +return 1;
> +}
> +

Please add $self->SUPER::retrieve_data($key);
Otherwise the plugin isn't listed as Enabled which is really scary to an end
user.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-07-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #62 from M. Tompsett  ---
kshell
prove -v t/db_dependent/Auth.t
-- failed.
Was I supposed to put the plugin somewhere? Perhaps that was it?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-07-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

M. Tompsett  changed:

   What|Removed |Added

 Status|Needs Signoff   |Failed QA

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-07-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #61 from M. Tompsett  ---
Created attachment 91307
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91307=edit
Bug 20340: (follow-up) fix some of Auth.t's tests

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-07-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

M. Tompsett  changed:

   What|Removed |Added

 Status|ASSIGNED|Needs Signoff

--- Comment #60 from M. Tompsett  ---
Rebased.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-07-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

M. Tompsett  changed:

   What|Removed |Added

 Status|Needs Signoff   |ASSIGNED

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-07-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #58 from M. Tompsett  ---
Created attachment 91305
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91305=edit
Bug 20340: Followup to allow OPAC login to complete

The Plugin authenticates correctly, the problem is there
is no patron to match with, and so there is nothing to check
for authorization and user-details once a login is attempted.
This will at least let it fail gracefully.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-07-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

M. Tompsett  changed:

   What|Removed |Added

  Attachment #88522|0   |1
is obsolete||
  Attachment #88523|0   |1
is obsolete||
  Attachment #88527|0   |1
is obsolete||

--- Comment #57 from M. Tompsett  ---
Created attachment 91304
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91304=edit
Bug 20340 - Ability to add and use authentication plugins

Plugins must be placed in  and enabled with
AuthenticationModule system preference.

Test plan:

  - Apply this patch,
  - set UseKohaPlugins to enabled,
  - define a pluginsdir in your koha-conf.xml,
  - put a plugin in this directory.
  - I.e, take the one provided in tests directory:
 - t/Koha/Plugin/TestAuth.pm,
 - login/pass is test/test
  - You should have:
  /your/plugins/dir/Koha/Plugin/TestAuth.pm,
  - test authentication with and without the plugin.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-07-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #59 from M. Tompsett  ---
Created attachment 91306
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91306=edit
Bug 20340: add of empty method configure

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-05-10 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Michal Denar  changed:

   What|Removed |Added

 CC||blac...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #56 from David Cook  ---
(In reply to Martin Renvoize from comment #51)
> (In reply to Fridolin SOMERS from comment #50)
> > > have a granular set of permissions on the server
> > What about adding to koha-conf.xml a boolean to allow or not uploading
> > plugins ?
> > If not allowed only system admin can add plugins.
> > 
> > My 2c
> 
> You can already enable and disable plugins entirely from koha-conf can't
> you.. I was thinking more having classifactions of plugins so you could
> allow a whitelist of supported ones for example.. or say.. all cataloguing
> plugins but not auth plugins.
> 
> I like the idea of a whitelist.

I think Fridolin was talking about leaving plugins enabled, but disabling the
ability to upload via the Web UI. I've thought about doing this myself. 

A whitelist could be interesting. I also liked your mention earlier about
signed plugins. One way of whitelisting could be to only allow plugins signed
by keys you trust. I mean... that's how a lot of software installers already
work, right?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #55 from David Cook  ---
(In reply to Martin Renvoize from comment #49)
> This is a manageable risk. I believe we should end up with a repository of
> signed and trusted plugins as per Alex's response (comment #48) and have a
> granular set of permissions on the server as to what types of plugins may be
> installed via the client.  I've been wanting to work towards this for some
> time, along with adding translations to plugins and generally enhancing the
> system as a whole.. but these things all need sponsorship, time and money.
> 

I love the sound of all of that, and I really relate in terms of time and
money. I know I must sound like a troll by leaving lots of comments and not
"doing" anything about them, but it's all I have time for at the moment. 

> Koha is a well established and highly reliable system these days, relied
> upon by countless libraries. I am a firm believer in our quality assurance
> policies and the both the commit logs and release notes serve to prove that
> the software is still moving forward rapidly with enhancements and new
> features continually being integrated.  Yes, we could always do with more
> hands/eyes on the code and people supporting each other by offering SO and
> QA time. That is something I intend to work on if I am elected to be RM over
> the next two cycles, but I think it's very unfair to suggest one has to have
> extensive influence/power to get code into the community. I believe we are a
> very supportive and friendly community in 99% of cases and I would certainly
> support anyone's efforts to get code in.. sometimes it is hard to pick which
> bugs to focus on and I'm always open to suggestions via any means (email,
> irc, bugzilla priorities)
> 

This is very true. I should have chosen my words more carefully. The Koha
community is very supportive and very friendly. I don't think there's an open
source community that is warmer and receptive than this one. I'm reminded of
that every time I look at the photo of my child in a "Future Koha Developer"
onesie that Katrin sent us when bub was born.

It's true that you don't need extensive influence/power to get code into the
community, and I use my first patch as evidence of that:
http://git.koha-community.org/gitweb/?p=koha.git;a=commitdiff;h=b49af1df17c06cb41d168fa154cb2104798c33cf.
I'd been using Koha for less than 2 months at that point, and I didn't really
know anyone in the Koha community.

I think my earlier comment about influence/power relates to particular
frustrations experienced by individuals that can be discussed elsewhere. 

Good luck with the elections, Martin! Koha would be very safe in your hands!

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #54 from David Cook  ---
(In reply to Alex Arnaud from comment #48)
> I do understand this argument. I even agree that plugins (and not only
> authentication ones) could contain security issues. 
> For "our" hosted libraries, we disabled writing permission on plugins
> directory.
> Looks like a tricky solution and we probably need a better one but it means
> that administrators have the final word.
> 

That's really interesting to know. That's probably the most logical way to do
it presently, but I agree that it would be nice to have a more elegant
solution. I think that's the key thing I'd like to see come out of this
discussion really. 

> IMO plugins are useful (even essential) to satisfy specific libraries
> requests and not to avoid community processes.
> i wrote this patch in order to create an authentication plugins that can
> request many LDAP backends and fallback on an other one.
> Seems too specific to be suggested to the community.
> To go further, as discussed above, i think we should consider generally
> LDAP, CAS etc... as specific feature that would become plugins (may be
> another debate).

I totally agree in theory. I would love to see all the authentication methods
structured as plugins that can be added/removed as necessary, although I think
it should be done by administrators rather than librarians. 

> To return to security topic:
> Today, many free plugable systems provide repositories with a large amount
> of plugins that have been reviewed, tested and validated by their community
> as safe. Users can easily download ones from other sources but they know
> it's at their own risk.
> Maybe we should be inspired by that.

I'd argue that "they know it's at their own risk" isn't necessarily true. It's
like how many people sign contracts without reading them, or tick the "Terms
and Conditions" box without reading the Terms and Conditions. People seem to
just assume that nothing bad will ever happen to them. 

However, I like the sound of the plugins being reviewed, tested, and validated
by their community. I recall there being an unwillingness to provide a
repository for fear that it would create an "endorsement" of plugins by being
in the repository, but... I think you're right. People read and trust reviews.
If they had a centralized place for reviewing plugins, I think that could
really build confidence in using them, and provide people without technical
knowledge a source to make more informed decisions.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #53 from David Cook  ---
(In reply to Chris Cormack from comment #46)
> I think what David meant to say was thank you Alex, for testing and
> providing your first patch to Koha to fix a broken test.  Then gone on with
> the discussion of technical merits 
> 
> Rest assured we do value your contribution, and we want Koha to be a
> welcoming place.

(In reply to Chris Cormack from comment #46)
> My apologies Axel, my phone autocorrected your name to Alex

Chris is absolutely right. 

I must admit that my eyes actually autocorrected "axel" to "Alex", and I
thought the latest patches were follow-up from Alex Arnaud, so I didn't think
twice. Looking back, thanks for the contributions, axel! I have no criticism of
them.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #52 from David Cook  ---
(In reply to Katrin Fischer from comment #45)
> The plugin idea Alex is working on here is not new - see the discussion in
> the first comments. For added security we could discuss different solutions,
> like a separate permission for handling authentication plugins maybe?
> 

I see the logic of adding permissions, but I suppose I'm concerned about small
libraries where a solo librarian might have all the permissions, but might not
make the best choices with those permissions.

> I don't agree with people saying it's too hard to get things in. But I
> definitely think we should not have this discussion on bugzilla. The dev
> meeting today would be a better place.

Yes, perhaps Bugzilla is not the best place to have that discussion. I wasn't
aware of the dev meeting until after it was finished, and it seems that it was
at 5am my time, so I was still (barely) asleep. I think they're usually at 5am
or 12am my time, which makes them difficult to attend.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-24 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #51 from Martin Renvoize  ---
(In reply to Fridolin SOMERS from comment #50)
> > have a granular set of permissions on the server
> What about adding to koha-conf.xml a boolean to allow or not uploading
> plugins ?
> If not allowed only system admin can add plugins.
> 
> My 2c

You can already enable and disable plugins entirely from koha-conf can't you..
I was thinking more having classifactions of plugins so you could allow a
whitelist of supported ones for example.. or say.. all cataloguing plugins but
not auth plugins.

I like the idea of a whitelist.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-24 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #50 from Fridolin SOMERS  ---
> have a granular set of permissions on the server
What about adding to koha-conf.xml a boolean to allow or not uploading plugins
?
If not allowed only system admin can add plugins.

My 2c

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-24 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Martin Renvoize  changed:

   What|Removed |Added

 QA Contact|testo...@bugs.koha-communit |martin.renvoize@ptfs-europe
   |y.org   |.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-24 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Martin Renvoize  changed:

   What|Removed |Added

 Status|Failed QA   |Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-24 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #49 from Martin Renvoize  ---
(In reply to David Cook from comment #41)
> Anyone else think that it's a terrible idea to have authentication plugins
> that non-technical staff can load into Koha? Sounds like a massive security
> problem waiting to happen.

This is a manageable risk. I believe we should end up with a repository of
signed and trusted plugins as per Alex's response (comment #48) and have a
granular set of permissions on the server as to what types of plugins may be
installed via the client.  I've been wanting to work towards this for some
time, along with adding translations to plugins and generally enhancing the
system as a whole.. but these things all need sponsorship, time and money.

(In reply to David Cook from comment #43)
> I think we should ask ourselves what we're trying to achieve here. Are we 
> adding authentication plugins via the Staff UI, because it's too difficult to 
> get changes into Koha, especially around authentication?

Koha is a well established and highly reliable system these days, relied upon
by countless libraries. I am a firm believer in our quality assurance policies
and the both the commit logs and release notes serve to prove that the software
is still moving forward rapidly with enhancements and new features continually
being integrated.  Yes, we could always do with more hands/eyes on the code and
people supporting each other by offering SO and QA time. That is something I
intend to work on if I am elected to be RM over the next two cycles, but I
think it's very unfair to suggest one has to have extensive influence/power to
get code into the community. I believe we are a very supportive and friendly
community in 99% of cases and I would certainly support anyone's efforts to get
code in.. sometimes it is hard to pick which bugs to focus on and I'm always
open to suggestions via any means (email, irc, bugzilla priorities)

Finally, I concur with Chris, thankyou very much for taking the time to both
look at this and submit followup code Axel. I will take a look at it all at my
earliest convenience and attempt to help get things moving again.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-24 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #48 from Alex Arnaud  ---
(In reply to David Cook from comment #41)
> Anyone else think that it's a terrible idea to have authentication plugins
> that non-technical staff can load into Koha? Sounds like a massive security
> problem waiting to happen.
> 
> That said, I'm in favour of authentication "plugins" that administrators can
> add to the system via system packages or CPAN.

I do understand this argument. I even agree that plugins (and not only
authentication ones) could contain security issues. 
For "our" hosted libraries, we disabled writing permission on plugins
directory.
Looks like a tricky solution and we probably need a better one but it means
that administrators have the final word.

> I think we should ask ourselves what we're trying to achieve here. Are we
> adding authentication plugins via the Staff UI, because it's too difficult to
> get changes into Koha, especially around authentication?
> I would love for there to be more authentication methods for Koha. In fact, I
> wrote a generic OpenID Connect client for Koha, which I support locally.

IMO plugins are useful (even essential) to satisfy specific libraries requests
and not to avoid community processes.
i wrote this patch in order to create an authentication plugins that can
request many LDAP backends and fallback on an other one.
Seems too specific to be suggested to the community.
To go further, as discussed above, i think we should consider generally LDAP,
CAS etc... as specific feature that would become plugins (may be another
debate).

To return to security topic:
Today, many free plugable systems provide repositories with a large amount of
plugins that have been reviewed, tested and validated by their community as
safe. Users can easily download ones from other sources but they know it's at
their own risk.
Maybe we should be inspired by that.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-24 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Fridolin SOMERS  changed:

   What|Removed |Added

 CC||fridolin.som...@biblibre.co
   ||m

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Chris Cormack  changed:

   What|Removed |Added

 CC||ch...@bigballofwax.co.nz

--- Comment #47 from Chris Cormack  ---
My apologies Axel, my phone autocorrected your name to Alex

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #46 from Chris Cormack  ---
I think what David meant to say was thank you Alex, for testing and providing
your first patch to Koha to fix a broken test.  Then gone on with the
discussion of technical merits 

Rest assured we do value your contribution, and we want Koha to be a welcoming
place.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #45 from Katrin Fischer  ---
The plugin idea Alex is working on here is not new - see the discussion in the
first comments. For added security we could discuss different solutions, like a
separate permission for handling authentication plugins maybe?

I don't agree with people saying it's too hard to get things in. But I
definitely think we should not have this discussion on bugzilla. The dev
meeting today would be a better place.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #44 from David Cook  ---
Just one final note... if this does make it into Koha, it'll be one of the
first things I disable when upgrading to a new release. 

I think plugins are awesome but also dangerous when wielded by people without
enough knowledge. 

(For instance, EBSCO have made an authentication plugin, which was installed by
a librarian, and I discovered that it had a number of security vulnerabilities.
I've sent in pull requests to patch them, but I never would've installed that
plugin without reviewing it first. However, the librarian didn't even think to
verify the contents of the plugin.)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #43 from David Cook  ---
I think we should ask ourselves what we're trying to achieve here. Are we
adding authentication plugins via the Staff UI, because it's too difficult to
get changes into Koha, especially around authentication?

I would love for there to be more authentication methods for Koha. In fact, I
wrote a generic OpenID Connect client for Koha, which I support locally. 

Of course, one of the reasons why I haven't tried to get it into Koha (besides
sharing some code at
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21586 for other
people to use) is that I thought I'd never be able to get changes to C4::Auth
pushed. Partially because I didn't have enough time/money to dedicate to
working on it for the community, and partially because I thought that I didn't
have enough influence/power within the community.

I know that I've heard grumblings behind closed doors from even prominent
community folk about it being too hard to get changes into Koha these days. I
wonder if the desire for user-managed authentication plugins is indicative of a
larger problem within the Koha community.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #42 from David Cook  ---
I know things like WordPress have authentication plugins, but WordPress is also
the biggest security nightmare on the Internet.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #41 from David Cook  ---
Anyone else think that it's a terrible idea to have authentication plugins that
non-technical staff can load into Koha? Sounds like a massive security problem
waiting to happen.

That said, I'm in favour of authentication "plugins" that administrators can
add to the system via system packages or CPAN.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88526|0   |1
is obsolete||

--- Comment #40 from axel  ---
Created attachment 88527
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88527=edit
Bug 20340: add of empty method configure

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #39 from axel  ---
Created attachment 88526
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88526=edit
Bug 20340: add of empty method configure

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #73098|0   |1
is obsolete||

--- Comment #38 from axel  ---
Created attachment 88523
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88523=edit
Bug 20340: Followup to allow OPAC login to complete

The Plugin authenticates correctly, the problem is there
is no patron to match with, and so there is nothing to check
for authorization and user-details once a login is attempted.
This will at least let it fail gracefully.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #73089|0   |1
is obsolete||

--- Comment #37 from axel  ---
Created attachment 88522
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88522=edit
Bug 20340 - Ability to add and use authentication plugins

Plugins must be placed in  and enabled with
AuthenticationModule system preference.

Test plan:

  - Apply this patch,
  - set UseKohaPlugins to enabled,
  - define a pluginsdir in your koha-conf.xml,
  - put a plugin in this directory.
  - I.e, take the one provided in tests directory:
 - t/Koha/Plugin/TestAuth.pm,
 - login/pass is test/test
  - You should have:
  /your/plugins/dir/Koha/Plugin/TestAuth.pm,
  - test authentication with and without the plugin.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #73089|1   |0
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #73098|1   |0
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88521|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88520|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88519|0   |1
is obsolete||

--- Comment #36 from axel  ---
Created attachment 88521
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88521=edit
Bug 20340: Followup to allow OPAC login to complete

The Plugin authenticates correctly, the problem is there
is no patron to match with, and so there is nothing to check
for authorization and user-details once a login is attempted.
This will at least let it fail gracefully.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88518|0   |1
is obsolete||

--- Comment #35 from axel  ---
Created attachment 88520
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88520=edit
Bug 20340 - Ability to add and use authentication plugins

Plugins must be placed in  and enabled with
AuthenticationModule system preference.

Test plan:

  - Apply this patch,
  - set UseKohaPlugins to enabled,
  - define a pluginsdir in your koha-conf.xml,
  - put a plugin in this directory.
  - I.e, take the one provided in tests directory:
 - t/Koha/Plugin/TestAuth.pm,
 - login/pass is test/test
  - You should have:
  /your/plugins/dir/Koha/Plugin/TestAuth.pm,
  - test authentication with and without the plugin.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88511|0   |1
is obsolete||

--- Comment #33 from axel  ---
Created attachment 88518
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88518=edit
Bug 20340 - Ability to add and use authentication plugins

Plugins must be placed in  and enabled with
AuthenticationModule system preference.

Test plan:

  - Apply this patch,
  - set UseKohaPlugins to enabled,
  - define a pluginsdir in your koha-conf.xml,
  - put a plugin in this directory.
  - I.e, take the one provided in tests directory:
 - t/Koha/Plugin/TestAuth.pm,
 - login/pass is test/test
  - You should have:
  /your/plugins/dir/Koha/Plugin/TestAuth.pm,
  - test authentication with and without the plugin.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88512|0   |1
is obsolete||

--- Comment #34 from axel  ---
Created attachment 88519
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88519=edit
Bug 20340: Followup to allow OPAC login to complete

The Plugin authenticates correctly, the problem is there
is no patron to match with, and so there is nothing to check
for authorization and user-details once a login is attempted.
This will at least let it fail gracefully.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88488|0   |1
is obsolete||

--- Comment #32 from axel  ---
Created attachment 88512
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88512=edit
Bug 20340: Followup to allow OPAC login to complete

The Plugin authenticates correctly, the problem is there
is no patron to match with, and so there is nothing to check
for authorization and user-details once a login is attempted.
This will at least let it fail gracefully.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88487|0   |1
is obsolete||

--- Comment #31 from axel  ---
Created attachment 88511
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88511=edit
Bug 20340 - Ability to add and use authentication plugins

Plugins must be placed in  and enabled with
AuthenticationModule system preference.

Test plan:

  - Apply this patch,
  - set UseKohaPlugins to enabled,
  - define a pluginsdir in your koha-conf.xml,
  - put a plugin in this directory.
  - I.e, take the one provided in tests directory:
 - t/Koha/Plugin/TestAuth.pm,
 - login/pass is test/test
  - You should have:
  /your/plugins/dir/Koha/Plugin/TestAuth.pm,
  - test authentication with and without the plugin.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #73098|0   |1
is obsolete||

--- Comment #30 from axel  ---
Created attachment 88488
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88488=edit
Bug 20340: Followup to allow OPAC login to complete

The Plugin authenticates correctly, the problem is there
is no patron to match with, and so there is nothing to check
for authorization and user-details once a login is attempted.
This will at least let it fail gracefully.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #73089|0   |1
is obsolete||

--- Comment #29 from axel  ---
Created attachment 88487
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88487=edit
Bug 20340 - Ability to add and use authentication plugins

Plugins must be placed in  and enabled with
AuthenticationModule system preference.

Test plan:

  - Apply this patch,
  - set UseKohaPlugins to enabled,
  - define a pluginsdir in your koha-conf.xml,
  - put a plugin in this directory.
  - I.e, take the one provided in tests directory:
 - t/Koha/Plugin/TestAuth.pm,
 - login/pass is test/test
  - You should have:
  /your/plugins/dir/Koha/Plugin/TestAuth.pm,
  - test authentication with and without the plugin.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #73089|1   |0
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #73098|1   |0
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88477|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88478|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88473|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88476|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #28 from axel  ---
Created attachment 88478
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88478=edit
Bug 20340: add of an empty method configure

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88472|0   |1
is obsolete||

--- Comment #27 from axel  ---
Created attachment 88477
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88477=edit
Bug 20340 - Ability to add and use authentication plugins

Plugins must be placed in  and enabled with
AuthenticationModule system preference.

Test plan:

  - Apply this patch,
  - set UseKohaPlugins to enabled,
  - define a pluginsdir in your koha-conf.xml,
  - put a plugin in this directory.
  - I.e, take the one provided in tests directory:
 - t/Koha/Plugin/TestAuth.pm,
 - login/pass is test/test
  - You should have:
  /your/plugins/dir/Koha/Plugin/TestAuth.pm,
  - test authentication with and without the plugin.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88475|0   |1
is obsolete||

--- Comment #26 from axel  ---
Created attachment 88476
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88476=edit
Bug 20340: add of an empty method configure

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #88474|0   |1
is obsolete||

--- Comment #25 from axel  ---
Created attachment 88475
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88475=edit
Bug 20340: add of an empty method configure

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #24 from axel  ---
Created attachment 88474
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88474=edit
Bug 20340: add of an empty method configure

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #73089|0   |1
is obsolete||

--- Comment #22 from axel  ---
Created attachment 88472
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88472=edit
Bug 20340 - Ability to add and use authentication plugins

Plugins must be placed in  and enabled with
AuthenticationModule system preference.

Test plan:

  - Apply this patch,
  - set UseKohaPlugins to enabled,
  - define a pluginsdir in your koha-conf.xml,
  - put a plugin in this directory.
  - I.e, take the one provided in tests directory:
 - t/Koha/Plugin/TestAuth.pm,
 - login/pass is test/test
  - You should have:
  /your/plugins/dir/Koha/Plugin/TestAuth.pm,
  - test authentication with and without the plugin.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

  Attachment #73098|0   |1
is obsolete||

--- Comment #23 from axel  ---
Created attachment 88473
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88473=edit
Bug 20340: Followup to allow OPAC login to complete

The Plugin authenticates correctly, the problem is there
is no patron to match with, and so there is nothing to check
for authorization and user-details once a login is attempted.
This will at least let it fail gracefully.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

axel  changed:

   What|Removed |Added

 CC||axel.amg...@gmail.com
  Attachment #88470|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2019-04-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #21 from axel  ---
Created attachment 88470
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88470=edit
Bug 20340: add of an empty method configure

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-12-27 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #20 from Alex Arnaud  ---
(In reply to M. Tompsett from comment #18)
> Created attachment 73106 [details]
> Nasty Empty Drop Down
> 
> Drop downs should never look like this.

I see. But this plugin is not intended to go in your plugins directory. It
stands only for unit tests.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-10-17 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

David Cook  changed:

   What|Removed |Added

 CC||dc...@prosentient.com.au

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-09-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Martin Renvoize  changed:

   What|Removed |Added

 CC||martin.renvoize@ptfs-europe
   ||.com

--- Comment #19 from Martin Renvoize  ---
Wow, awesome plan guys... keep up the good work :)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-20 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #18 from M. Tompsett  ---
Created attachment 73106
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73106=edit
Nasty Empty Drop Down

Drop downs should never look like this.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-20 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #17 from M. Tompsett  ---
(In reply to Alex Arnaud from comment #16)
> (In reply to M. Tompsett from comment #15)
> > It would be nice to rework the authentication logic to all be plugins, 

> If you mean that LDAP, CAS and Shibboleth should be removed from the source
> code and provided only as plugins, it is also my opinion :)

Exactly.


> > then we could actually prioritize the order of attempts, etc. etc.

> We are already able to prioritize. Each auth plugin can have a priority
> value and they are ordered before the call.

But not the archaic LDAP, CAS, Shibboleth, etc. etc. that's hard coded already.


> > 1) the test module should have an uninstall at least.

> Why?

See the attached empty Actions dropdown. Now bug 20438 will solve this, but
still. How hard is an uninstall which calls the inherited parent?


> > 2) Also, annoying POD coverage failure on the QA Test tools.
[SNIP magic]
> Why did you failed QA?

kshell
/home/vagrant/qa-test-tools/koha-qa.pl -v 2 -c 2

Though, I believe bug 20357 will deal with this, but given the feedback on my
fixes, it's not getting in quickly.


> And i don't understand the changes in opac-user.pl

try logging in with test/test into OPAC: internal server errors.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-20 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #16 from Alex Arnaud  ---
(In reply to M. Tompsett from comment #15)
> It would be nice to rework the authentication logic to all be plugins, 
If you mean that LDAP, CAS and Shibboleth should be removed from the source
code and provided only as plugins, it is also my opinion :)

> then we could actually prioritize the order of attempts, etc. etc.
We are already able to prioritize. Each auth plugin can have a priority value
and they are ordered before the call.

> This is an excellent start, but:
> 
> 1) the test module should have an uninstall at least.
Why?
> 2) Also, annoying POD coverage failure on the QA Test tools.

And i don't understand the changes in opac-user.pl

Why did you failed QA?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-19 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

M. Tompsett  changed:

   What|Removed |Added

 Status|Needs Signoff   |Failed QA
 CC||mtomp...@hotmail.com

--- Comment #15 from M. Tompsett  ---
It would be nice to rework the authentication logic to all be plugins, then we
could actually prioritize the order of attempts, etc. etc. This is an excellent
start, but:

1) the test module should have an uninstall at least.
2) Also, annoying POD coverage failure on the QA Test tools.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-19 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #14 from M. Tompsett  ---
Created attachment 73098
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73098=edit
Bug 20340: Followup to allow OPAC login to complete

The Plugin authenticates correctly, the problem is there
is no patron to match with, and so there is nothing to check
for authorization and user-details once a login is attempted.
This will at least let it fail gracefully.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-19 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Alex Arnaud  changed:

   What|Removed |Added

 Status|Failed QA   |Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-19 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Alex Arnaud  changed:

   What|Removed |Added

  Attachment #72469|0   |1
is obsolete||

--- Comment #13 from Alex Arnaud  ---
Created attachment 73089
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73089=edit
Bug 20340 - Ability to add and use authentication plugins

Plugins must be placed in  and enabled with
AuthenticationModule system preference.

Test plan:

  - Apply this patch,
  - set UseKohaPlugins to enabled,
  - define a pluginsdir in your koha-conf.xml,
  - put a plugin in this directory.
  - I.e, take the one provided in tests directory:
 - t/Koha/Plugin/TestAuth.pm,
 - login/pass is test/test
  - You should have:
  /your/plugins/dir/Koha/Plugin/TestAuth.pm,
  - test authentication with and without the plugin.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-08 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #12 from Kyle M Hall  ---
(In reply to Katrin Fischer from comment #10)
> How does one work with plugins in a multi-instance setup? Do you need to
> store them separately (install multiple times) or can you use a shared
> plugin folder and turn them on/off with the settings? (sorry, hope not
> distracting again)

By default, it's per-instance. You *could* also have a 'shared' plugins dir, as
the kona-conf plugins dir setting can be set for multiple dirs. See bug 15879
for details.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-08 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #11 from Kyle M Hall  ---
(In reply to Alex Arnaud from comment #9)
> (In reply to Alex Arnaud from comment #8)
> > (In reply to Kyle M Hall from comment #5)
> > > (In reply to Alex Arnaud from comment #4)
> > > > (In reply to Kyle M Hall from comment #3)
> > 
> > > I would say the plugin itself should be responsible for having controls to
> > > tell Koha if it is enabled or not. There is already precedence for this in
> > > Koha ( see bug 19173 ). For simplicity, the plugin could simply return
> > > values as if the authentication failed, for the sake of simplicity.
> > > 
> > > What do you think?
> > 
> > You mean: plugin exists (in the plugins directory) == plugin enabled ? That
> > also means we need to delete it for make it disabled, right?
> > 
> > 
> > If we assume that we want to loop on several plugins, it could be nice to be
> > able to set an ordered stack of authentication modules. This could allow us
> > to chose which one is used first etc... In this case we need a dedicated
> > page in fact.
> 
> Oh, think i see! We can configure plugins and so use the plugins_data. Also
> this could allow use to define a "weight" to set the execution order

No, just the plugin store it's on 'on/off' switch. If it is set to off, have
the plugin always return 0 for checkauth.

I personally don't find the ability to set the order to be necessary, but your
idea would work. If each plugin stored a param call 'priority' in plugin_data
table, it would be easy to do what you propose!

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-07 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #10 from Katrin Fischer  ---
How does one work with plugins in a multi-instance setup? Do you need to store
them separately (install multiple times) or can you use a shared plugin folder
and turn them on/off with the settings? (sorry, hope not distracting again)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-07 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #9 from Alex Arnaud  ---
(In reply to Alex Arnaud from comment #8)
> (In reply to Kyle M Hall from comment #5)
> > (In reply to Alex Arnaud from comment #4)
> > > (In reply to Kyle M Hall from comment #3)
> 
> > I would say the plugin itself should be responsible for having controls to
> > tell Koha if it is enabled or not. There is already precedence for this in
> > Koha ( see bug 19173 ). For simplicity, the plugin could simply return
> > values as if the authentication failed, for the sake of simplicity.
> > 
> > What do you think?
> 
> You mean: plugin exists (in the plugins directory) == plugin enabled ? That
> also means we need to delete it for make it disabled, right?
> 
> 
> If we assume that we want to loop on several plugins, it could be nice to be
> able to set an ordered stack of authentication modules. This could allow us
> to chose which one is used first etc... In this case we need a dedicated
> page in fact.

Oh, think i see! We can configure plugins and so use the plugins_data. Also
this could allow use to define a "weight" to set the execution order

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-07 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #8 from Alex Arnaud  ---
(In reply to Kyle M Hall from comment #5)
> (In reply to Alex Arnaud from comment #4)
> > (In reply to Kyle M Hall from comment #3)

> I would say the plugin itself should be responsible for having controls to
> tell Koha if it is enabled or not. There is already precedence for this in
> Koha ( see bug 19173 ). For simplicity, the plugin could simply return
> values as if the authentication failed, for the sake of simplicity.
> 
> What do you think?

You mean: plugin exists (in the plugins directory) == plugin enabled ? That
also means we need to delete it for make it disabled, right?


If we assume that we want to loop on several plugins, it could be nice to be
able to set an ordered stack of authentication modules. This could allow us to
chose which one is used first etc... In this case we need a dedicated page in
fact.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-07 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #7 from Kyle M Hall  ---
(In reply to Katrin Fischer from comment #6)
> Hm, I think it's always possible to use local login and we have a library
> using both LDAP and Shibboleth... With Shibboleth you have a link to an
> external login page like with CAS - maybe that's where the confusion is? I
> think building it to support many plugins would be nice, similar to how we
> support multiple ILL backends, but maybe not a must.

You could be right. I based my reassessment on this code:
http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=C4/Auth.pm;h=c3ad351aa17ae73addb6612e7af2905b003647b4;hb=HEAD#l1778

That being said. We are starting to veer away from the topic of the bug ; )

If implemented the way I suggest, it would support multiple auth plugins, *and*
be simpler architecturally. I think that's a win on all fronts : )

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-07 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #6 from Katrin Fischer  ---
Hm, I think it's always possible to use local login and we have a library using
both LDAP and Shibboleth... With Shibboleth you have a link to an external
login page like with CAS - maybe that's where the confusion is? I think
building it to support many plugins would be nice, similar to how we support
multiple ILL backends, but maybe not a must.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-07 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #5 from Kyle M Hall  ---
(In reply to Alex Arnaud from comment #4)
> (In reply to Kyle M Hall from comment #3)
> > I think this is an excellent concept, but I don't think it is necessary to
> > have a syspref and limit the auth pluggability to one at a time. In Koha we
> > already essentially loop through all the enabled authentication systems (
> > ldap, cas, etc ).
> Not sure Koha works like that. Reading the code, we switch (not loop) on the
> one that is enabled: Koha *or* LDAP *or* CAS with a fallback on Koha if LDAP
> or CAS return the code 0.

You are correct! Not sure why I had thought that. Looks like the precedence is
LDAP, CAS, Shib. I don't think that should affect my suggestion though.

> > 
> 
> > I would recommend the following:
> > * Drop the system preference
> Anyway we need to enable/disable this module(s). So, in a dedicated
> administration page? In plugins-home.pl (but it is not realy built for that)
> ?
> 
> > * Inside checkpw, loop through all plugins with a checkpw method, and return
> > the first one that 'successfully' authenticates the user/password combo.

I would say the plugin itself should be responsible for having controls to tell
Koha if it is enabled or not. There is already precedence for this in Koha (
see bug 19173 ). For simplicity, the plugin could simply return values as if
the authentication failed, for the sake of simplicity.

What do you think?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-07 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #4 from Alex Arnaud  ---
(In reply to Kyle M Hall from comment #3)
> I think this is an excellent concept, but I don't think it is necessary to
> have a syspref and limit the auth pluggability to one at a time. In Koha we
> already essentially loop through all the enabled authentication systems (
> ldap, cas, etc ).
Not sure Koha works like that. Reading the code, we switch (not loop) on the
one that is enabled: Koha *or* LDAP *or* CAS with a fallback on Koha if LDAP or
CAS return the code 0.
> 

> I would recommend the following:
> * Drop the system preference
Anyway we need to enable/disable this module(s). So, in a dedicated
administration page? In plugins-home.pl (but it is not realy built for that) ?

> * Inside checkpw, loop through all plugins with a checkpw method, and return
> the first one that 'successfully' authenticates the user/password combo.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-07 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Kyle M Hall  changed:

   What|Removed |Added

 Status|Needs Signoff   |Failed QA
 CC||k...@bywatersolutions.com

--- Comment #3 from Kyle M Hall  ---
I think this is an excellent concept, but I don't think it is necessary to have
a syspref and limit the auth pluggability to one at a time. In Koha we already
essentially loop through all the enabled authentication systems ( ldap, cas,
etc ).

I would recommend the following:
* Drop the system preference
* Inside checkpw, loop through all plugins with a checkpw method, and return
the first one that 'successfully' authenticates the user/password combo.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-06 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Katrin Fischer  changed:

   What|Removed |Added

 CC||katrin.fisc...@bsz-bw.de
   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=17489

--- Comment #2 from Katrin Fischer  ---
I like the idea of this, but with more and more functionality being moved into
plugins, I think we really need to make them translatable - bug 17489.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-06 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

Alex Arnaud  changed:

   What|Removed |Added

 Status|NEW |Needs Signoff
   Assignee|koha-b...@lists.koha-commun |alex.arn...@biblibre.com
   |ity.org |

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/


[Koha-bugs] [Bug 20340] Ability to use authentication plugin

2018-03-06 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20340

--- Comment #1 from Alex Arnaud  ---
Created attachment 72469
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=72469=edit
Bug 20340 - Ability to add and use authentication plugins

Plugins must be placed in  and enabled with
AuthenticationModule system preference.

Test plan:

  - Apply this patch and update your database,
  - set UseKohaPlugins to enabled,
  - define a pluginsdir in your koha-conf.xml,
  - put a plugin in this directory.
  - I.e, take the one provided in tests directory:
 - t/Koha/Plugin/TestAuth.pm,
 - login/pass is test/test
  - You should have:
  /your/plugins/dir/Koha/Plugin/TestAuth.pm,
  - replace default by your plugin in AuthenticationModule
system preference,
  - test authentication with and without the plugin.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/