[GeoNode-users] LDAP on windows

Jeffrey Johnson ortelius at gmail.com
Tue Sep 6 09:42:46 PDT 2016


Chris, you need to use pip. Im not sure how the virtualenvironment is
setup. Alessio, can you give us some insight here?

https://pip.pypa.io/en/stable/user_guide/#installing-from-wheels (on
windows you need to use the command prompt)



On Mon, Sep 5, 2016 at 9:19 PM, Franklin, Chris <
CFranklin at anglogoldashanti.com> wrote:

> Thanks dan,
>
>
>
> Have been trying to see how I can install the .whl file but can’t find any
> info on it, can someone out there help?
>
>
>
> Regards
>
>
>
> *Chris Franklin*
>
> GIS and Database Co-ordinator
>
> Exploration Australia
>
> Tel:         +61 08 9425 4719
>
> Mob:       +61 04 4818 2351
>
> Fax:        +61 08 9425 4650
>
> Email:      cfranklin at anglogoldashanti.com
>
>
>
> Consider the environment. Think before you print.
>
>
>
> *From:* Daniel Berry [mailto:dberry at boundlessgeo.com]
> *Sent:* Wednesday, 31 August 2016 8:29 PM
> *To:* Franklin, Chris <CFranklin at AngloGoldAshanti.com>
> *Cc:* Jeffrey Johnson <ortelius at gmail.com>; geonode-users at lists.osgeo.org
> *Subject:* Re: [GeoNode-users] LDAP on windows
>
>
>
> Chris,
>
>
>
> It looks like for windows you could use one of these wheel files to
> install python-ldap. Just match the wheel to your OS.
>
>
>
> http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap
>
>
>
> These have already been pre built and include the `.pyd` file, which is a
> `.dll` file - https://docs.python.org/3/faq/windows.html#is-a-pyd-
> file-the-same-as-a-dll. This should alleviate you having to install devel
> libs and compile the source from pypi using pip.
>
>
>
> Good luck!
>
>
>
> Dan
>
>
>
> On Wed, Aug 31, 2016 at 1:57 AM, Franklin, Chris <
> CFranklin at anglogoldashanti.com> wrote:
>
> Ok I added this to my local setting file :
>
>
>
> import ldap
>
> from django_auth_ldap.config import LDAPSearch
>
>
>
> AUTHENTICATION_BACKENDS = (
>
>     'django_auth_ldap.backend.LDAPBackend',
>
>     'django.contrib.auth.backends.ModelBackend',
>
>     'guardian.backends.ObjectPermissionBackend',
>
> )
>
> AUTH_LDAP_SERVER_URI = ‘ldap://ag.ad.local'
>
> LDAP_SEARCH_DN = 'OU=AUSTRALIA,OU=AUSTRALASIA,DC=ag,DC=ad,DC=local'
>
> AUTH_LDAP_USER = '(uid=%(user)s)'
>
> AUTH_LDAP_BIND_DN = '{ADD_BIND_DN_IF_REQUIRED}'
>
> AUTH_LDAP_BIND_PASSWORD = '{ADD_BIND_PASSWORD_IF_REQUIRED}'
>
> AUTH_LDAP_USER_ATTR_MAP = {
>
>     'first_name': 'givenName', 'last_name': 'sn', 'email': 'mail',
>
> }
>
> AUTH_LDAP_USER_SEARCH = LDAPSearch(LDAP_SEARCH_DN,
>
>                                    ldap.SCOPE_SUBTREE, AUTH_LDAP_USER)
>
>
>
> But was unsure on installing the ldap devel lib – who do I do that on
> windows?
>
>
>
> http://docs.geonode.org/en/master/tutorials/admin/ldap/
>
>
>
> Cheers
>
> *Chris Franklin*
>
> GIS and Database Co-ordinator
>
> Exploration Australia
>
> Tel:         +61 08 9425 4719
>
> Fax:        +61 08 9425 4650
>
> Email:      cfranklin at anglogoldashanti.com
>
>
>
> Consider the environment. Think before you print.
>
>
>
> *From:* Jeffrey Johnson [mailto:ortelius at gmail.com]
> *Sent:* Thursday, 25 August 2016 2:24 PM
> *To:* Franklin, Chris
> *Cc:* geonode-users at lists.osgeo.org
> *Subject:* Re: [GeoNode-users] LDAP on windows
>
>
>
> I dont think there should be any difference in how it works on windows.
> Let us know how it goes.
>
>
>
> On Thu, Aug 25, 2016 at 6:45 AM, Franklin, Chris <
> CFranklin at anglogoldashanti.com> wrote:
>
> Hi,
>
>
>
> Im looking to link my Geonode 2.4 windows into the corp LDAP, is this
> possible in windows?
>
>
>
> http://docs.geonode.org/en/master/tutorials/admin/ldap/index.html
>
>
>
> Regards
>
>
>
> *Chris Franklin*
>
> GIS and Database Co-ordinator
>
> Exploration Australia
>
> Tel:         +61 08 9425 4719
>
> Fax:        +61 08 9425 4650
>
> Email:      cfranklin at anglogoldashanti.com
>
>
>
> Consider the environment. Think before you print.
>
>
>
> 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 http://www.anglogoldashanti.com/en/Pages/legal.aspx
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
> 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 http://www.anglogoldashanti.com/en/Pages/legal.aspx
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
>
>
> --
>
> *Daniel Berry*
>
> Senior Software Engineer | Boundless
>
> dberry at boundlessgeo.com
>
> 512-468-3946 (cell)
>
> @boundlessgeo
>
>
> 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 http://www.anglogoldashanti.com/en/Pages/legal.aspx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160906/e1eb771d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3241 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160906/e1eb771d/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 3241 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160906/e1eb771d/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 3241 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160906/e1eb771d/attachment-0005.jpg>


More information about the geonode-users mailing list