{ "info": { "author": "Guillaume Destuynder", "author_email": "kang+mozlibldap@mozilla.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)" ], "description": "mozlibldap\r\n==========\r\n\r\nPython lib for common OpenLDAP queries @ Mozilla.\r\nThis only works with LDAP databases using a schema similar to Mozilla's.\r\n\r\nInstall\r\n--------\r\nUsing pip\r\n~~~~~~~~~\r\n\r\n.. code::\r\n\r\n sudo apt-get install libldap2-dev libsasl2-dev\r\n pip install mozlibldap\r\n\r\nAs a python module\r\n~~~~~~~~~~~~~~~~~~\r\n\r\nManually:\r\n.. code::\r\n\r\n make install\r\n\r\nAs a rpm/deb package\r\n.. code::\r\n\r\n make rpm\r\n make deb\r\n rpm -i \r\n dpkg -i \r\n\r\nTesting\r\n~~~~~~~\r\nFill in the LDAP URL, login, password in tests.py and run it :)\r\n\r\nFrom the code/integrate in my code\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nAdd to your project with:\r\n\r\n.. code::\r\n\r\n git submodule add https://github.com/mozilla-it/mozlibldap\r\n git commit -a\r\n\r\nPython dependencies\r\n~~~~~~~~~~~~~~~~~~~\r\n\r\n* python-ldap\r\n\r\nUsage\r\n-----\r\n\r\nLogin/pass:\r\n\r\n.. code::\r\n\r\n import mozlibldap\r\n\r\n l = mozlibldap.MozLDAP(LDAP_URL, LDAP_BIND_DN, LDAP_BIND_PASSWD)\r\n print(l.get_user_posix_uid(\"gdestuynder@mozilla.com\"))\r\n\r\nWith client certificate (the certificate DN needs to match your LDAP DN).\r\nThe client cert, key file and optional ca cert (last argument) are all PEM files.\r\n\r\n.. code::\r\n\r\n import mozlibldap\r\n\r\n l = mozlibldap.MozLDAP(LDAP_URL, LDAP_BIND_DN, None, LDAP_BIND_CLIENTCERT, LDAP_BIND_KEYFILE)\r\n # If using a self-signed CA in a specific location, like Mozilla CA\r\n #l = mozlibldap.MozLDAP(LDAP_URL, LDAP_BIND_DN, None, LDAP_BIND_CLIENTCERT, LDAP_BIND_KEYFILE,\r\n # \"/etc/ssl/mozca.pem\")\r\n print(l.get_user_posix_uid(\"gdestuynder@mozilla.com\"))", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mozilla-it/mozlibldap/", "keywords": "mozilla ldap", "license": "Mozilla Public License Version 2.0", "maintainer": "Julien Vehent", "maintainer_email": "ulfr+mozlibldap@mozilla.com", "name": "mozlibldap", "package_url": "https://pypi.org/project/mozlibldap/", "platform": "python 2.7+", "project_url": "https://pypi.org/project/mozlibldap/", "project_urls": { "Homepage": "https://github.com/mozilla-it/mozlibldap/" }, "release_url": "https://pypi.org/project/mozlibldap/1.1.0/", "requires_dist": null, "requires_python": null, "summary": "Python lib for common OpenLDAP queries @ Mozilla. This only works with LDAP databases using a schema similar to Mozilla's.", "version": "1.1.0" }, "last_serial": 1764334, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "459ef2496eceac544dfc4fc6961ec507", "sha256": "6298e4f46a2677845734ed3a7164f50a49a0b6f74b0880db69d95131cd94b292" }, "downloads": -1, "filename": "mozlibldap-1.1.0.tar.gz", "has_sig": true, "md5_digest": "459ef2496eceac544dfc4fc6961ec507", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3432, "upload_time": "2015-10-12T13:08:33", "url": "https://files.pythonhosted.org/packages/fc/48/44fe608f55790a2d2862e097433b68ac1db1a28d625d120183af6bfaabe6/mozlibldap-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "459ef2496eceac544dfc4fc6961ec507", "sha256": "6298e4f46a2677845734ed3a7164f50a49a0b6f74b0880db69d95131cd94b292" }, "downloads": -1, "filename": "mozlibldap-1.1.0.tar.gz", "has_sig": true, "md5_digest": "459ef2496eceac544dfc4fc6961ec507", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3432, "upload_time": "2015-10-12T13:08:33", "url": "https://files.pythonhosted.org/packages/fc/48/44fe608f55790a2d2862e097433b68ac1db1a28d625d120183af6bfaabe6/mozlibldap-1.1.0.tar.gz" } ] }