[Bug 28587] New: ldap auth fails unless <ldapserver id="ldapserver">

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 28587] New: ldap auth fails unless <ldapserver id="ldapserver">

bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28587

            Bug ID: 28587
           Summary: ldap auth fails unless <ldapserver id="ldapserver">
 Change sponsored?: ---
           Product: Koha
           Version: 21.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Authentication
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]
                CC: [hidden email]

This is related/similar to bug 28385.  Apologies if this should be posted there
instead.  The fix there only works if ldapserver id is set to "ldapserver" and
not anything else (such as <ldapserver id="ad.domain.com">).  In previous
versions ldapserver id could be set to anything.  There is nothing in the
release notes noting this behavior change so it seems to be a bug.  

To reproduce simply set ldapserver id to something else and restart plack.
There should be lots of errors in the plack-error.log, most useful is:

No ldapserver "hostname" defined in KOHA_CONF:
/etc/koha/sites/instance/koha-conf.xml

The problem is in Auth_with_ldap.pm, specifically:

if ( exists $ldap->{ldapserver} ) {
    $ldap = $ldap->{ldapserver}   or die ldapserver_error('id="ldapserver"');
}

The code is assuming the id is "ldapserver".  Better behavior would be to
evaluate $ldap and find what the id is set to.  It should be the only key in
$ldap, and then do:

$ldap=$ldap->{$ldapserveridname}

The easy fix is just to set the id to ldapserver, but again, that isn't
documented anywhere.  I can probably provide a patch in in the next few days.

--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
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 | Threaded
Open this post in threaded view
|

[Bug 28587] ldap auth fails unless <ldapserver id="ldapserver">

bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28587

--- Comment #1 from Dobrica Pavlinusic <[hidden email]> ---
Thanks for reporting this. My proposed fix for this is in comment 7
on original bug:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28385#c7

POD documentation in C4::Auth_with_ldap does suggest that id should
be ldapserver, so I made assumption that all configurations will have it,
which in retrospect seems to be incorrect.

--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
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 | Threaded
Open this post in threaded view
|

[Bug 28587] ldap auth fails unless <ldapserver id="ldapserver">

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28587

David Cook <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
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 | Threaded
Open this post in threaded view
|

[Bug 28587] ldap auth fails unless <ldapserver id="ldapserver">

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28587

--- Comment #2 from David Cook <[hidden email]> ---
(This is a totally unrealted tangent but curious how the University of New
Hampshire uses Koha! Doesn't seem to be for the university library?)

--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[hidden email]
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 | Threaded
Open this post in threaded view
|

[Bug 28587] ldap auth fails unless <ldapserver id="ldapserver">

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28587

Katrin Fischer <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |28385


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28385
[Bug 28385] LDAP server configuration broken since migration from XML::Simple
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[hidden email]
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/