{ "info": { "author": "tuxedoar", "author_email": "tuxedoar@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3 :: Only", "Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP" ], "description": "# LDAP Attributes Selector \n\nThis command line program, allows you to query an LDAP server, based on a custom set of provided attributes. The results are given in CSV format, though they are not written to a CSV file unless explicitly specified. \n\n### Requirements\nMake sure you meet the following requirements:\n * [Python 3](https://www.python.org/downloads/)\n * [python-ldap](https://pypi.python.org/pypi/python-ldap/) library (tested with *v3.1.0*).\n\nAlso, note that when establishing an SSL connection, depending on the security settings in your LDAP server, you might gonna need to perform some additional configuration on your LDAP client!. \n\nAs a general rule, if you are able to make an LDAP query with the `ldapsearch` tool, this program should work as well!. \n\n### Installation\nYou can install it with `pip`:\n```\npip install ldap-attributes-selector\n```\n\n### Usage \nHelp output:\n```\nusage: ldap-attributes-selector [-h] [-u USERDN] [-S SIZELIMIT] [-f FILTER]\n [-w WRITETOCSV] [-v]\n SERVER BASEDN USER_ATTRS\n\nGet a CSV formatted list from an LDAP database, given a custom set of provided\nattributes.\n\npositional arguments:\n SERVER URI formatted address (IP or domain name) of the LDAP\n server\n BASEDN Specify the searchbase or base DN of the LDAP server\n USER_ATTRS A set of comma separated LDAP attributes to list\n\noptional arguments:\n -h, --help show this help message and exit\n -u USERDN, --userdn USERDN\n Distinguished Name (DN) of the user to bind to the\n LDAP directory\n -S SIZELIMIT, --sizelimit SIZELIMIT\n The amount of per-page entries to retrieve (Default:\n 500)\n -f FILTER, --filter FILTER\n Specify an LDAP filter (Default: 'objectClass=*')\n -w WRITETOCSV, --writetocsv WRITETOCSV\n Write results to a CSV file!.\n -v, --version Show current version\n```\nNote that whenever an entry doesn't have any of the provided LDAP attributes, a\n`None` value will be printed!.\n\n### Examples\nIn the following example, an encrypted LDAP query (note the `ldaps://` when specifying the LDAP server) is made, and the attributes `name`, `mail` and `ipPhone` are retrieved. Also, LDAP filter `objectClass=person` is set:\n```\nldap-attributes-selector ldaps://somecorp.com \"dc=somecorp,dc=com\" -u \"cn=Joe,ou=Users,dc=somecorp,dc=com\" \"name,mail,ipPhone\" -f objectClass=person\n```\n\nUnlike the previous example, on the following one, the query isn't encrypted and a different LDAP filter is used: \n```\nldap-attributes-selector ldap://somecorp.com \"dc=somecorp,dc=com\" -u \"uid=zimbra,cn=admins,cn=zimbra\" \"givenName,mail,zimbraAccountStatus\" -f 'objectClass=inetOrgPerson'\n```\n\nThis one is similar to the first one except that, this time, the retrieved results, are gonna be exported to a CSV file!: \n```\nldap-attributes-selector ldaps://somecorp.com \"dc=somecorp,dc=com\" -u \"cn=joe,ou=Users,dc=somecorp,dc=com\" \"name,mail,ipPhone\" -f objectClass=person -w users.csv\n```\n\nIf no *user identity* (in DN format!) is specified (`-u` argument), an *anonymous* LDAP query is performed, as in the following example:\n```\nldap-attributes-selector ldap://somecorp.com \"dc=somecorp,dc=com\" \"sn,givenName,mail\"\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tuxedoar/ldap-attributes-selector", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "ldap-attributes-selector", "package_url": "https://pypi.org/project/ldap-attributes-selector/", "platform": "", "project_url": "https://pypi.org/project/ldap-attributes-selector/", "project_urls": { "Homepage": "https://github.com/tuxedoar/ldap-attributes-selector" }, "release_url": "https://pypi.org/project/ldap-attributes-selector/0.2.3/", "requires_dist": [ "python-ldap" ], "requires_python": ">=3.4", "summary": "Get a CSV formatted list from an LDAP database based on given attributes.", "version": "0.2.3" }, "last_serial": 5592921, "releases": { "0.2.1": [ { "comment_text": "", "digests": { "md5": "e078d2b7e4040d88dbe2d51afa0f9b12", "sha256": "8713f1c8d707553545463a3f56be977cffed052d009358385a30d297c88186a2" }, "downloads": -1, "filename": "ldap_attributes_selector-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e078d2b7e4040d88dbe2d51afa0f9b12", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 19737, "upload_time": "2019-07-07T15:41:51", "url": "https://files.pythonhosted.org/packages/0a/de/529d8f80322823e672e4585219682945d12d5549d85ef2e0d27d7c2d478b/ldap_attributes_selector-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "614f6b507eb6aee39ae7c70e052cdddb", "sha256": "9c6de28dace11ebc81b09801bbd4fb4cac74cd6c90fb402b3cc01cc6ed39a602" }, "downloads": -1, "filename": "ldap-attributes-selector-0.2.1.tar.gz", "has_sig": false, "md5_digest": "614f6b507eb6aee39ae7c70e052cdddb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 6024, "upload_time": "2019-07-07T15:41:54", "url": "https://files.pythonhosted.org/packages/61/a7/77544c87a9c0855c50a2c8d01abc1a541a015fbc716e21b00ca2bf493b7f/ldap-attributes-selector-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "6d0fd432553ad560464aaed74d07a6b8", "sha256": "193fa2c5a3e84bbce4e9ef218a9fea32f1b4711b95a06f2b910ebaaf3a04db4a" }, "downloads": -1, "filename": "ldap_attributes_selector-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6d0fd432553ad560464aaed74d07a6b8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 19761, "upload_time": "2019-07-21T04:16:29", "url": "https://files.pythonhosted.org/packages/5e/27/58fc0c4e3f224608cf03a5d0c240e03062272f0144cc073f3f957a419cbf/ldap_attributes_selector-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f29d7c29afb6cabf55017dcad6493b33", "sha256": "d901c850a94bf2f3fb5119575612c711cb7a4a83b08463227d16a50f0439c45c" }, "downloads": -1, "filename": "ldap-attributes-selector-0.2.2.tar.gz", "has_sig": false, "md5_digest": "f29d7c29afb6cabf55017dcad6493b33", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 6038, "upload_time": "2019-07-21T04:16:31", "url": "https://files.pythonhosted.org/packages/9c/94/9bd3afb54395a922dc26d62c7c31fb65f8922e4fbb6c513931fb14bcb368/ldap-attributes-selector-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "b577cf650c85434aca31822c4c351ff5", "sha256": "f89f0e95a62471f1f4aab0de8d28c537e4437e2501f033c401b8c2836c3e60d0" }, "downloads": -1, "filename": "ldap_attributes_selector-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "b577cf650c85434aca31822c4c351ff5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 19668, "upload_time": "2019-07-27T12:58:13", "url": "https://files.pythonhosted.org/packages/36/bc/44c510f595daa913da0d7f2f3dac83b9ff2e2126c622de6a40937829c1a1/ldap_attributes_selector-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ecafa5fae4daa94e1bfbe957d061d9da", "sha256": "4d40234380fd607d63f4d08a1bcb5730b5a38fd0451009dd14dba6a7e534f93b" }, "downloads": -1, "filename": "ldap-attributes-selector-0.2.3.tar.gz", "has_sig": false, "md5_digest": "ecafa5fae4daa94e1bfbe957d061d9da", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 5946, "upload_time": "2019-07-27T12:58:15", "url": "https://files.pythonhosted.org/packages/9b/94/991b85a0013a3901e6c6fbb842ee6436c70af40bb578c7e8dc4f2c7ece6a/ldap-attributes-selector-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b577cf650c85434aca31822c4c351ff5", "sha256": "f89f0e95a62471f1f4aab0de8d28c537e4437e2501f033c401b8c2836c3e60d0" }, "downloads": -1, "filename": "ldap_attributes_selector-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "b577cf650c85434aca31822c4c351ff5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 19668, "upload_time": "2019-07-27T12:58:13", "url": "https://files.pythonhosted.org/packages/36/bc/44c510f595daa913da0d7f2f3dac83b9ff2e2126c622de6a40937829c1a1/ldap_attributes_selector-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ecafa5fae4daa94e1bfbe957d061d9da", "sha256": "4d40234380fd607d63f4d08a1bcb5730b5a38fd0451009dd14dba6a7e534f93b" }, "downloads": -1, "filename": "ldap-attributes-selector-0.2.3.tar.gz", "has_sig": false, "md5_digest": "ecafa5fae4daa94e1bfbe957d061d9da", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 5946, "upload_time": "2019-07-27T12:58:15", "url": "https://files.pythonhosted.org/packages/9b/94/991b85a0013a3901e6c6fbb842ee6436c70af40bb578c7e8dc4f2c7ece6a/ldap-attributes-selector-0.2.3.tar.gz" } ] }