I don't see an exists() call on line 168 of Auth_with_ldap.pm. What version of Koha are you using again?
The nearest call is in ldap_entry_w_hash(). Actually that's the only call I could find in the current version of the file. ldap_entry_2_hash() is called after authentication though, so that seems to work. Except that $userldapentry is what's complaining, and it's used in authentication. So I'm guessing there are some big differences between what you have and what I have in Auth_with_ldap.pm On Wed, 2009-07-15 at 09:39 -0500, Library Guy wrote: > Our MS AD LDAP schema provides samaccountname but not UID, so we map > <userid is="sAMAccountName" ></userid>. > > Test 1A: someuser + password > > <replicate>1</replicate> > <update>1</update> > <auth_by_bind>1</auth_by_bind> > <principal_name>%...@example.com</principal_name> > > Result 1A: Can't call method "exists" on an undefined value at > /usr/share/koha/lib/C4/Auth_with_ldap.pm line 168, <DATA> line 253. > > ---------------- > > Test 1B: someu...@example.com + password > > Result 1B: You entered an incorrect username or password > > ---------------- > > Test 2: someuser + password > > <replicate>1</replicate> > > <update>1</update> > > <auth_by_bind>0</auth_by_bind> > > > Result 2: No ldapserver "mapping for 'userid'" defined in KOHA_CONF: > /etc/koha/koha-conf.xml at /usr/share/koha/lib/C4/Auth_with_ldap.pm > line 80. > > However, the mapping does exist: <userid is="sAMAccountName" > ></userid>. > > > > On Tue, Jul 14, 2009 at 8:54 PM, Galen Charlton > <galen.charl...@liblime.com> wrote: > > > > Hi, > > > > 2009/7/14 Joe Atzberger <ohioc...@gmail.com>: > > > This functionality as already been submitted, with both aspects, > > > including a > > > configurable sprintf-style manipulation of the Koha userid into whatever > > > you > > > want to present LDAP with. See the "principle_name" section: > > > > > > http://lists.koha.org/pipermail/koha-patches/2009-June/003864.html > > > > The patch in question has now been pushed to HEAD. Please try it out > > and let us know if you find any issues during testing. > > > > Regards, > > > > Galen > > -- > > Galen Charlton > > VP, Research & Development, LibLime > > galen.charl...@liblime.com > > p: 1-888-564-2457 x709 > > skype: gmcharlt > > _______________________________________________ > > Koha-devel mailing list > > Koha-devel@lists.koha.org > > http://lists.koha.org/mailman/listinfo/koha-devel > _______________________________________________ > Koha-devel mailing list > Koha-devel@lists.koha.org > http://lists.koha.org/mailman/listinfo/koha-devel -- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA for Koha checkout http://development.washk12.org/gitweb/ or git://development.washk12.org/koha _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel