{ "info": { "author": "Michael Kuty", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Application Frameworks" ], "description": "==========================\nLeonardo leonardo-auth-ldap\n==========================\n\nLeonardo LDAP authentication backend\n\n.. contents::\n :local:\n\nInstallation\n------------\n\n.. code-block:: bash\n\n sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev\n pip install leonardo-auth-ldap\n\nConfigure\n---------\n\nAdd your settings into your ``site/settings.py`` or ``local_settings.py``\n\n.. code-block:: python\n\n import ldap\n from django_auth_ldap.config import LDAPSearch, GroupOfNamesType\n\n\n # Baseline configuration.\n AUTH_LDAP_SERVER_URI = \"ldap://ldap.example.com\"\n\n AUTH_LDAP_BIND_DN = \"cn=django-agent,dc=example,dc=com\"\n AUTH_LDAP_BIND_PASSWORD = \"phlebotinum\"\n\n AUTH_LDAP_USER_DN_TEMPLATE = \"uid=%(user)s,ou=users,dc=example,dc=com\"\n\n # Set up the basic group parameters.\n AUTH_LDAP_GROUP_SEARCH = LDAPSearch(\"ou=django,ou=groups,dc=example,dc=com\",\n ldap.SCOPE_SUBTREE, \"(objectClass=groupOfNames)\"\n )\n AUTH_LDAP_GROUP_TYPE = GroupOfNamesType()\n\n # Simple group restrictions\n AUTH_LDAP_REQUIRE_GROUP = \"cn=enabled,ou=django,ou=groups,dc=example,dc=com\"\n AUTH_LDAP_DENY_GROUP = \"cn=disabled,ou=django,ou=groups,dc=example,dc=com\"\n\n # Populate the Django user from the LDAP directory.\n AUTH_LDAP_USER_ATTR_MAP = {\n \"first_name\": \"givenName\",\n \"last_name\": \"sn\",\n \"email\": \"mail\"\n }\n\n AUTH_LDAP_USER_FLAGS_BY_GROUP = {\n \"is_active\": \"cn=active,ou=django,ou=groups,dc=example,dc=com\",\n \"is_staff\": \"cn=staff,ou=django,ou=groups,dc=example,dc=com\",\n \"is_superuser\": \"cn=superuser,ou=django,ou=groups,dc=example,dc=com\"\n }\n\n # Use LDAP group membership to calculate group permissions.\n AUTH_LDAP_FIND_GROUP_PERMS = True\n\n # Cache group memberships for an hour to minimize LDAP traffic\n AUTH_LDAP_CACHE_GROUPS = True\n AUTH_LDAP_GROUP_CACHE_TIMEOUT = 3600\n\nRead More\n=========\n\n* https://github.com/django-leonardo/django-leonardo", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/leonardo-modules/leonardo-auth-ldap", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "leonardo-auth-ldap", "package_url": "https://pypi.org/project/leonardo-auth-ldap/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/leonardo-auth-ldap/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/leonardo-modules/leonardo-auth-ldap" }, "release_url": "https://pypi.org/project/leonardo-auth-ldap/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Leonardo LDAP authentication backend", "version": "0.0.1" }, "last_serial": 1978599, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "48d96724871f13967e6bc5e3d60b2d94", "sha256": "3a93f479af0a052651fc85968679bcc85146edd06db8dc01da89396a39c9603a" }, "downloads": -1, "filename": "leonardo-auth-ldap-0.0.0.tar.gz", "has_sig": false, "md5_digest": "48d96724871f13967e6bc5e3d60b2d94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12729, "upload_time": "2016-02-26T19:12:04", "url": "https://files.pythonhosted.org/packages/5e/7f/9397fe614584071d17df70144a68c581260f424ced76939ed44852831077/leonardo-auth-ldap-0.0.0.tar.gz" } ], "0.0.1": [] }, "urls": [] }