<div dir="ltr">Chris,<div><br></div><div>It looks like for windows you could use one of these wheel files to install python-ldap. Just match the wheel to your OS.</div><div><br></div><div><a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap">http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap</a><br></div><div><br></div><div>These have already been pre built and include the `.pyd` file, which is a `.dll` file - <a href="https://docs.python.org/3/faq/windows.html#is-a-pyd-file-the-same-as-a-dll">https://docs.python.org/3/faq/windows.html#is-a-pyd-file-the-same-as-a-dll</a>. This should alleviate you having to install devel libs and compile the source from pypi using pip.</div><div><br></div><div>Good luck!</div><div><br></div><div>Dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 31, 2016 at 1:57 AM, Franklin, Chris <span dir="ltr"><<a href="mailto:CFranklin@anglogoldashanti.com" target="_blank">CFranklin@anglogoldashanti.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-AU" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ok I added this to my local setting file :<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">import ldap<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">from django_auth_ldap.config import LDAPSearch<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">AUTHENTICATION_BACKENDS = (<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">    'django_auth_ldap.backend.<wbr>LDAPBackend',<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">    'django.contrib.auth.backends.<wbr>ModelBackend',<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">    'guardian.backends.<wbr>ObjectPermissionBackend',<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">AUTH_LDAP_SERVER_URI = ‘ldap://ag.ad.local'
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">LDAP_SEARCH_DN = 'OU=AUSTRALIA,OU=AUSTRALASIA,<wbr>DC=ag,DC=ad,DC=local'
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">AUTH_LDAP_USER = '(uid=%(user)s)'<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">AUTH_LDAP_BIND_DN = '{ADD_BIND_DN_IF_REQUIRED}'<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">AUTH_LDAP_BIND_PASSWORD = '{ADD_BIND_PASSWORD_IF_<wbr>REQUIRED}'<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">AUTH_LDAP_USER_ATTR_MAP = {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">    'first_name': 'givenName', 'last_name': 'sn', 'email': 'mail',<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">AUTH_LDAP_USER_SEARCH = LDAPSearch(LDAP_SEARCH_DN,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">                              <wbr>     ldap.SCOPE_SUBTREE, AUTH_LDAP_USER)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">But was unsure on installing the ldap devel lib – who do I do that on windows?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://docs.geonode.org/en/master/tutorials/admin/ldap/" target="_blank">http://docs.geonode.org/en/<wbr>master/tutorials/admin/ldap/</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers<u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-ZA" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1f497d">Chris Franklin<u></u><u></u></span></b></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1f497d">GIS and Database Co-ordinator<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1f497d">Exploration Australia
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><img border="0" width="185" height="82" src="cid:image001.jpg@01D20397.FA8B8BC0"></span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1f497d">Tel:         <a href="tel:%2B61%2008%209425%204719" value="+61894254719" target="_blank">+61 08 9425 4719</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1f497d">Fax:        <a href="tel:%2B61%2008%209425%204650" value="+61894254650" target="_blank">+61 08 9425 4650</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1f497d">Email:     
</span><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#0d0d0d"><a href="mailto:cfranklin@anglogoldashanti.com" target="_blank">cfranklin@anglogoldashanti.com</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:green">Consider the environment. Think before you print.</span><span lang="EN-ZA" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Jeffrey Johnson [mailto:<a href="mailto:ortelius@gmail.com" target="_blank">ortelius@gmail.com</a>]
<br>
<b>Sent:</b> Thursday, 25 August 2016 2:24 PM<br>
<b>To:</b> Franklin, Chris<br>
<b>Cc:</b> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [GeoNode-users] LDAP on windows<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I dont think there should be any difference in how it works on windows. Let us know how it goes.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, Aug 25, 2016 at 6:45 AM, Franklin, Chris <<a href="mailto:CFranklin@anglogoldashanti.com" target="_blank">CFranklin@anglogoldashanti.<wbr>com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Im looking to link my Geonode 2.4 windows into the corp LDAP, is this possible in windows?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><a href="http://docs.geonode.org/en/master/tutorials/admin/ldap/index.html" target="_blank">http://docs.geonode.org/en/<wbr>master/tutorials/admin/ldap/<wbr>index.html</a><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Regards<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b><span lang="EN-ZA" style="font-family:"Arial","sans-serif"">Chris Franklin</span></b><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-family:"Arial","sans-serif"">GIS and Database Co-ordinator</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-family:"Arial","sans-serif"">Exploration Australia
</span><u></u><u></u></p>
<p class="MsoNormal"><img border="0" width="185" height="82" src="cid:image003.jpg@01D20397.FA87E240"><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial","sans-serif"">Tel:        
<a href="tel:%2B61%2008%209425%204719" target="_blank">+61 08 9425 4719</a></span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial","sans-serif"">Fax:       
<a href="tel:%2B61%2008%209425%204650" target="_blank">+61 08 9425 4650</a></span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial","sans-serif"">Email:     
</span><span style="font-family:"Arial","sans-serif";color:#0d0d0d"><a href="mailto:cfranklin@anglogoldashanti.com" target="_blank">cfranklin@anglogoldashanti.com</a></span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:green">Consider the environment. Think before you print.</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal">This email, and its attachments, is subject to important warnings and disclaimers which are legally incorporated into this email in terms of Section 11(3) of the South African Electronic Communications and Transactions Act, 25 of 2002.
 The full text of the warnings and disclaimers, together with the company details and directors is available by clicking on
<a href="http://www.anglogoldashanti.com/en/Pages/legal.aspx" target="_blank">http://www.anglogoldashanti.<wbr>com/en/Pages/legal.aspx</a>
<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
This email, and its attachments, is subject to important warnings and disclaimers which are legally incorporated into this email in terms of Section 11(3) of the South African Electronic Communications and Transactions Act, 25 of 2002. The full text of the warnings and disclaimers, together with the company details and directors is available by clicking on <a href="http://www.anglogoldashanti.com/en/Pages/legal.aspx" target="_blank">http://www.anglogoldashanti.<wbr>com/en/Pages/legal.aspx</a>
</div>

<br>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><b><font face="tahoma, sans-serif">Daniel Berry</font></b></div><div><span style="font-family:tahoma,sans-serif;font-size:small">Senior Software Engineer</span><font face="tahoma, sans-serif"> | Boundless</font></div><div><a href="mailto:dberry@boundlessgeo.com" target="_blank"><font face="tahoma, sans-serif">dberry<font color="#1155cc">@boundlessgeo.com</font></font></a></div><div><font face="tahoma, sans-serif">512-468-3946 (cell)</font></div><div><font face="tahoma, sans-serif">@boundlessgeo</font></div><div><br style="font-size:12.8px"><img src="https://docs.google.com/a/boundlessgeo.com/uc?id=0B_qVH4CJ8mXOa3E1YUNySzN2d00&export=download" style="font-size:12.8px"><br></div></div></div></div></div></div>
</div>