Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-17 Thread Library Guy
Ah, OK. So is this an unsolvable problem (using and/or with MS LDAP) or is there hope? Thanks! James On Fri, Jul 17, 2009 at 2:22 PM, Joe Atzberger wrote: > Single quotes block variable interpolation, so you wouldn't want to use > them.  The 2nd problem there is that $userldapentry is undefin

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-17 Thread Joe Atzberger
Single quotes block variable interpolation, so you wouldn't want to use them. The 2nd problem there is that $userldapentry is undefined, so it doesn't matter what you are going to pass to exists(), it will still break. -- Joe Atzberger LibLime - Open Source Library Solutions On Fri, Jul 17, 2009

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-17 Thread Library Guy
I know very little perl, so I'm unsure of the syntax for single, double or no quotes for variables: Test 1: Either$userldapentry->exists("$uid_field"); or $userldapentry->exists($uid_field); Global symbol "$uid_field" requires explicit package name at /home/koha/kohaclone/C4/Auth_with_ldap

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-17 Thread Michael Hafen
Of course, why didn't I see that before. Of course AD doesn't have the uid attribute. There is a free download from Microsoft, Services For Unix, which adds this and a few other attributes. Look into that. On Fri, 2009-07-17 at 11:41 -0500, Library Guy wrote: > Ben, I'm testing the latest dev (

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-17 Thread Library Guy
Ben, I'm testing the latest dev (3.01.00.037). LDAP authentication against our MS AD LDAP works properly using auth_by_bind, but if I enable either or , as soon as a new patron is authenticated Koha produces this error: Can't call method "exists" on an undefined value at /home/koha/kohaclone/C4

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-15 Thread Library Guy
Chris, yes in Koha 3.0.1 my test users could authenticate against AD using , but Koha was not creating or updating their Koha accounts despite and set to 1. In addition, our I.T. dept will not provide me an AD Admin account; only an alternate domain account for doing queries only. (userpassword

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-15 Thread Christopher Curry
Oops, That should have read: "[Active Directory Distinguished Name of *AD* admin user]" Cheers, Christopher Curry Assistant Technical Librarian / Assistant IT Officer American Philosophical Society 105 South Fifth Street Philadelphia, PA 19106-3386 Tel. (215) 599-4299 ccu...@amphilsoc.org

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-15 Thread Christopher Curry
I haven't been following this thread in detail, but MS Active Directory LDAP is working with my instance of Koha 3.0.1, which is running on Debian Lenny. My configuration is as follows: 1 [server IP] [Active Directory Distinguished Name of Domain] [Active Directory Distinguished Name of AT a

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-15 Thread Michael Hafen
Yeah, I've been looking at the 3.1.x version of the file. The auth_by_bind and principal_name features aren't in the 3.0.x branch (yet). And you mention that you are using Active Directory, and I don't know if Auth_with_ldap.pm will work with AD. It's a matter of AD exposing a userPassword attri

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-15 Thread Library Guy
Michael, just to make sure I just finished another fresh dev install (3.00.02.012) from git on a fresh machine. Still have the exact same problem. :-( On Wed, Jul 15, 2009 at 10:04 AM, Michael Hafen wrote: > I don't see an exists() call on line 168 of Auth_with_ldap.pm.  What > version of Koha a

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-15 Thread Michael Hafen
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 s

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-15 Thread Library Guy
Our MS AD LDAP schema provides samaccountname but not UID, so we map . Test 1A:  someuser + password  1  1  1 %...@example.com Result 1A: Can't call method "exists" on an undefined value at /usr/share/koha/lib/C4/Auth_with_ldap.pm line 168, line 253. Test 1B: someu...@exam

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-14 Thread Galen Charlton
Hi, 2009/7/14 Joe Atzberger : > 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-patch

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-14 Thread Joe Atzberger
On Tue, Jul 14, 2009 at 10:10 AM, Dobrica Pavlinusic wrote: > On Tue, Jul 14, 2009 at 06:43:43PM +0530, Sai bhalaji Dhinakaran wrote: > > Hi, > > > > I am trying to configure Koha3.0 on Linux(Ubuntu) to use our LDAP server. > > I referred to the below link for configuration: > > > > http://wiki.ko

Re: [Koha-devel] LDAP configuration in Koha3.0 on Linux

2009-07-14 Thread Dobrica Pavlinusic
On Tue, Jul 14, 2009 at 06:43:43PM +0530, Sai bhalaji Dhinakaran wrote: > Hi, > > I am trying to configure Koha3.0 on Linux(Ubuntu) to use our LDAP server. > I referred to the below link for configuration: > > http://wiki.koha.org/doku.php?id=en:development:ldap&s > > Our LDAP server does not pr