<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi again!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I just now was able to authenticate to our Windows 2008 r2 domain and I wanted to thank everyone in IRC who helped point me in the right direction!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I discovered a more verbose error log at &#8220;/var/log/koha/LIBRARY_NAME/opac-error.log (where LIBRARY_NAME is the name of your library), this proved invaluable to getting more feedback about what was wrong with my mapping.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>So to anybody that struggles with this going forward, check that log and rather than the global opac log and you will find the problem much more quickly.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-Hristos<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Hristos Triantafillou <br><b>Sent:</b> Tuesday, July 19, 2011 4:20 PM<br><b>To:</b> Hristos Triantafillou; koha-user<br><b>Subject:</b> RE: [Koha] Ldap + Active Directory<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Greetings,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>With the help of sekjal in IRC I&#8217;ve been directed to the bottom portion of the &#8220;Auth_with_ldap.pm&#8221; file where the required mapping fields are listed. It says I can find them by checking the &#8220;borrowers&#8221; table, so I did this:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'># mysql -e &quot;use koha; show COLUMNS from borrowers;&quot; | grep NO | awk -F&quot;\t&quot; '{print $1}'<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>borrowernumber<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>surname<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>address<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>city<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>branchcode<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>categorycode<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>These are the ones that I see as being required, correct me if I am mistaken, but some of these do not exist in our Active Directory schema. For example, we do not have an attribute type called &#8220;address&#8221;, &#8220;city&#8221;, or &#8220;branchcode&#8221; so I tried to map them to one we do have called &#8220;company&#8221;. No success, I try to log in and am told that I have entered an incorrect username or password. There is no further information about what may be wrong in the &#8220;/var/log/koha/koha-opac-error_log&#8221; file so I am at a dead end (aside from the guess and check approach).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Am I supposed to create the absent attributes within our schema, or would leaving them blank suffice since they don&#8217;t exist?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank you for reading!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-Hristos<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> koha-bounces@lists.katipo.co.nz [mailto:koha-bounces@lists.katipo.co.nz] <b>On Behalf Of </b>Hristos Triantafillou<br><b>Sent:</b> Wednesday, July 13, 2011 1:58 PM<br><b>To:</b> koha-user<br><b>Subject:</b> Re: [Koha] Ldap + Active Directory<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks Tim,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>We did try it with that specific case usage, but I am currently re-reviewing all of our schema values versus what we are actually using. Good catch there! If all else fails I will try to apply the patch that Ian pointed out.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-Hristos<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> koha-bounces@lists.katipo.co.nz [mailto:koha-bounces@lists.katipo.co.nz] <b>On Behalf Of </b>Tim Bateson<br><b>Sent:</b> Wednesday, July 13, 2011 1:25 PM<br><b>To:</b> koha-user<br><b>Subject:</b> Re: [Koha] Ldap + Active Directory<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p>I recently got this working on on our Debiab squeeze server. I am sure one of the issues for me was that<o:p></o:p></p><p>koha-conf.xml<o:p></o:p></p><p>You have<br><span class=apple-style-span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";background:white'>&nbsp;&lt;userid &nbsp; &nbsp; &nbsp; is=&quot;samaccountname&quot; &gt;&lt;/userid&gt;</span></span><o:p></o:p></p><p><span class=apple-style-span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";background:white'>and to get I had issues until I corrected the case</span></span><o:p></o:p></p><p><span class=apple-style-span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";background:white'>&nbsp;&lt;userid &nbsp; &nbsp; &nbsp; is=&quot;sAMAccountName&quot; &gt;&lt;/userid&gt;</span></span><o:p></o:p></p><div><p class=MsoNormal>Also noticed you have two branchcodes and one is blank. Have you created or got a Branchcode called Main, I had issues with logon until I setup some information for our initial branch<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Hope the above helps, ask again if you this does not work.<o:p></o:p></p></div><div><p class=MsoNormal>Tim<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>On 13 Jul 2011 14:55, &quot;Lori Bowen Ayre&quot; &lt;<a href="mailto:lori.ayre@galecia.com" target="_blank">lori.ayre@galecia.com</a>&gt; wrote:<br>&gt; True! More of us would benefit from the answer but it is hard to monitor so<br>&gt; many places at once and the super techie folks are more likely there than<br>&gt; here. Luckily the IRC channel is logged so it isn't lost forever (see<br>&gt; <a href="http://stats.workbuffer.org/irclog/koha/2011-07-13" target="_blank">http://stats.workbuffer.org/irclog/koha/2011-07-13</a>).<br>&gt; <br>&gt; Lori<br>&gt; <br>&gt; 2011/7/13 bash-fu34 &lt;<a href="mailto:licensing@high-voltage.com" target="_blank">licensing@high-voltage.com</a>&gt;<br>&gt; <br>&gt;&gt; Will try that, thanks!****<br>&gt;&gt;<br>&gt;&gt; ** **<br>&gt;&gt;<br>&gt;&gt; Just appears that email would be more efficient and good for reference<br>&gt;&gt; later. : )****<br>&gt;&gt;<br>&gt;&gt; ** **<br>&gt;&gt;<br>&gt;&gt; ** **<br>&gt;&gt;<br>&gt;&gt; *From:* Lori Bowen Ayre [via Koha] [mailto:[hidden email]&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4582740&amp;i=0" target="_blank">http://user/SendEmail.jtp?type=node&amp;node=4582740&amp;i=0</a>&gt;]<br>&gt;&gt;<br>&gt;&gt; *Sent:* Wednesday, July 13, 2011 8:39 AM<br>&gt;&gt; *To:* Licensing<br>&gt;&gt; *Subject:* Re: Ldap + Active Directory****<br>&gt;&gt;<br>&gt;&gt; ** **<br>&gt;&gt;<br>&gt;&gt; Since you didn't get a response on this list, you might jump onto the IRC<br>&gt;&gt; channel. Have you tried that?****<br>&gt;&gt;<br>&gt;&gt; ** **<br>&gt;&gt;<br>&gt;&gt; Here's how: Point your favorite IRC client at *click here. *<br>&gt;&gt;<br>&gt;&gt; ------------------------------<br>&gt;&gt; View this message in context: RE: Ldap + Active Directory&lt;<a href="http://koha.1045719.n5.nabble.com/Ldap-Active-Directory-tp4533702p4582740.html" target="_blank">http://koha.1045719.n5.nabble.com/Ldap-Active-Directory-tp4533702p4582740.html</a>&gt;<br>&gt;&gt;<br>&gt;&gt; Sent from the Koha - Discuss mailing list archive&lt;<a href="http://koha.1045719.n5.nabble.com/Koha-Discuss-f3047918.html" target="_blank">http://koha.1045719.n5.nabble.com/Koha-Discuss-f3047918.html</a>&gt;at Nabble.com.<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Koha mailing list <a href="http://koha-community.org" target="_blank">http://koha-community.org</a><br>&gt;&gt; <a href="mailto:Koha@lists.katipo.co.nz" target="_blank">Koha@lists.katipo.co.nz</a><br>&gt;&gt; <a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>&gt;&gt;<br>&gt;&gt;<o:p></o:p></p></div></div></body></html>