This could be bug 5094 (<a href="http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5094">http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5094</a>), which has been recently patched. If you can upgrade to 3.05.00.003 or higher, that should include that particular fix, as well as many others. Upgrading from 3.05.00.001 is highly recommended (by me).<br>
<br><br>-Ian<br><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 7:37 PM, bash-fu34 <span dir="ltr"><<a href="mailto:licensing@high-voltage.com">licensing@high-voltage.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Firstly, thank you for the awesome Debian documentation! I got this far with<br>
no trouble at all.<br>
<br>
When I log into OPAC with an AD account I am told "You entered an incorrect<br>
username or password. Please try again! And remember, usernames and<br>
passwords are case sensitive."<br>
<br>
Here is some information regarding my environment (real names hidden to<br>
protect the innocent):<br>
<br>
Koha version: 3.05.00.001<br>
Debian Squeeze<br>
DebugLevel set to 2<br>
Windows Server 2008 r2<br>
<br>
koha-conf.xml (ldap section)<br>
<br>
<useldapserver>1</useldapserver><br>
<ldapserver id="ldapserver"><br>
<hostname>DOM.TLD</hostname><br>
<base>CN=USERS,DC=DOM,DC=TLD</base><br>
<user>cn=USERS,dc=DOM,dc=TLD</user><br>
<pass>PASSWD</pass><br>
<replicate>0</replicate><br>
<update>0</update><br>
<auth_by_bind>1</auth_by_bind><br>
<principal_name>%s@DOM.TLD</principal_name><br>
<mapping><br>
<firstname is="givenname" ></firstname><br>
<surname is="sn" ></surname><br>
<address is="postaladdress" ></address><br>
<city is="" >CITY, ST</city><br>
<zipcode is="postalcode" ></zipcode--><br>
<branchcode is="branch" >MAIN</branchcode><br>
<branchcode is="" ></branchcode><br>
<userid is="samaccountname" ></userid><br>
<password is="userpassword" ></password><br>
<br>
<categorycode is="employeetype" >PT</categorycode><br>
<categorycode is="" >PT</categorycode><br>
<phone is="telephonenumber"></phone><br>
</mapping><br>
</ldapserver><br>
<br>
I have tried enabling replicate and/or update, when I do I see the following<br>
error:<br>
<br>
<br>
Can't call method "exists" on an undefined value at<br>
/usr/share/koha/lib/C4/Auth_with_ldap.pm line 168, <DATA> line 522.<br>
<br>
<br>
Line 168 contains:<br>
<br>
$userldapentry->exists('uid');<br>
<br>
I've tried changing 'uid' to 'samaccount' since that's what I have in our<br>
schema but the error is the same.<br>
<br>
I see that one user was able to get AD working by editing the<br>
Auth_with_ldap.pm file:<br>
<br>
<a href="http://lists.katipo.co.nz/public/koha/2009-May/018547.html" target="_blank">http://lists.katipo.co.nz/public/koha/2009-May/018547.html</a><br>
<br>
The page he links to does not seem to be available at the moment, not even a<br>
google-cached version. When I make the edits that he mentions Koha will not<br>
even load and I get this error:<br>
<br>
<br>
Software error:<br>
<br>
Global symbol "$res" requires explicit package name at<br>
/usr/share/koha/lib/C4/Auth_with_ldap.pm line 141, <DATA> line 522.<br>
Global symbol "$res" requires explicit package name at<br>
/usr/share/koha/lib/C4/Auth_with_ldap.pm line 142, <DATA> line 522.<br>
Global symbol "$res" requires explicit package name at<br>
/usr/share/koha/lib/C4/Auth_with_ldap.pm line 143, <DATA> line 522.<br>
Compilation failed in require at /usr/share/koha/lib/C4/Auth.pm line 50,<br>
<DATA> line 522.<br>
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Auth.pm line<br>
67, <DATA> line 522.<br>
Compilation failed in require at<br>
/usr/share/koha/opac/cgi-bin/opac/<a href="http://opac-user.pl" target="_blank">opac-user.pl</a> line 25, <DATA> line 522.<br>
BEGIN failed--compilation aborted at<br>
/usr/share/koha/opac/cgi-bin/opac/<a href="http://opac-user.pl" target="_blank">opac-user.pl</a> line 25, <DATA> line 522.<br>
<br>
<br>
I have spent most of the day reading through any and all Ldap/AD-related<br>
posts on the Koha mailing lists but I don't see anything that stands out as<br>
what I am doing wrong or that applies to my situation.<br>
<br>
Is there some other way to get more verbose feedback, or perhaps something<br>
that should be done differently for Server 2008?<br>
<br>
Thanks for reading :-)<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://koha.1045719.n5.nabble.com/Ldap-Active-Directory-tp4533702p4533702.html" target="_blank">http://koha.1045719.n5.nabble.com/Ldap-Active-Directory-tp4533702p4533702.html</a><br>
Sent from the Koha - Discuss mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Koha mailing list <a href="http://koha-community.org" target="_blank">http://koha-community.org</a><br>
<a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Ian Walls<br>Lead Development Specialist<br>ByWater Solutions<br>Phone # (888) 900-8944<br><a href="http://bywatersolutions.com" target="_blank">http://bywatersolutions.com</a><br>
<a href="mailto:ian.walls@bywatersolutions.com" target="_blank">ian.walls@bywatersolutions.com</a><br>Twitter: @sekjal<br>