{"id":15017902,"url":"https://github.com/uilianries/conan-ldap-authentication","last_synced_at":"2025-04-12T12:33:57.549Z","repository":{"id":20160070,"uuid":"89041508","full_name":"uilianries/conan-ldap-authentication","owner":"uilianries","description":"A LDAP authentication plugin for Conan.io","archived":false,"fork":false,"pushed_at":"2022-04-11T13:47:08.000Z","size":36,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T01:57:59.311Z","etag":null,"topics":["conan","conan-server","ldap-authentication","ldap-server"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uilianries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-22T03:24:44.000Z","updated_at":"2023-03-21T18:27:16.000Z","dependencies_parsed_at":"2022-07-23T15:02:09.910Z","dependency_job_id":null,"html_url":"https://github.com/uilianries/conan-ldap-authentication","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uilianries%2Fconan-ldap-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uilianries%2Fconan-ldap-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uilianries%2Fconan-ldap-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uilianries%2Fconan-ldap-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uilianries","download_url":"https://codeload.github.com/uilianries/conan-ldap-authentication/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248566730,"owners_count":21125710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conan","conan-server","ldap-authentication","ldap-server"],"created_at":"2024-09-24T19:51:09.445Z","updated_at":"2025-04-12T12:33:57.516Z","avatar_url":"https://github.com/uilianries.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/uilianries/conan-ldap-authentication.svg?branch=master)](https://travis-ci.org/uilianries/conan-ldap-authentication)\n[![codecov](https://codecov.io/gh/uilianries/conan-ldap-authentication/branch/master/graph/badge.svg)](https://codecov.io/gh/uilianries/conan-ldap-authentication)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Pypi Download](https://img.shields.io/badge/download-pypi-blue.svg)](https://pypi.python.org/pypi/conan-ldap-authentication)\n# Conan LDAP Authentication\n\nA LDAP authentication plugin for [Conan.io](https://conan.io)\n\n## Features\n* Authenticate to Conan server, through your LDAP server\n* Customize host address, port and DN\n\n## Installation\n\n    $ pip install conan_ldap_authentication\n\nOr you can [clone this repository](http://github.com/uilianries/conan-ldap-authentication) and store its location in PYTHONPATH.\n\n**The plugin uses HOME directory as reference to be installed.**  \nKeep in mind if you are running as root or admin when install the plugin.  \nIf you are root, the file is available there */root/.conan_server*  \nThe motivation is because Conan server could be executed by any user on your system.  \nEach user have it own .conan_server directory.  \n\n## Configuration\n\nTo configure the LDAP authentication in Conan, you need follow two steps:\n\n1) Add custom authenticator in  *~/.conan_server/server.conf*\n```\n[server]\njwt_secret: ****\njwt_expire_minutes: 120\n\nssl_enabled: False\nport: 9300\npublic_port:\nhost_name: localhost\n\n# Check docs.conan.io to implement a different authenticator plugin for conan_server\n# if custom_authenticator is not specified, [users] section will be used to authenticate\n# the users.\n#\ncustom_authenticator: ldap_authentication\n\n[write_permissions]\n# \"opencv/2.3.4@lasote/testing\": default_user,default_user2\n\n[read_permissions]\n# opencv/1.2.3@lasote/testing: default_user default_user2\n# By default all users can read all blocks\n*/*@*/*: *\n\n[users]\ndemo: demo\n```\n2) Configure you LDAP server information in *~/.conan_server/ldap_authentication.conf*\n```\n[ldap]\n# LDAP server address\nhost: ldap://ldap.company.org\n# Distinguished name (DN) of the entry\ndistinguished_name: cn=$username,ou=Users,dc=company,dc=org\n\n```\n\nYou could customize *ldap_authentication.conf* path, by CONAN_LDAP_AUTHENTICATION_CONFIG_FILE\n```shell\n$ export CONAN_LDAP_AUTHENTICATION_CONFIG_FILE=/etc/conan/cofig/ldap_authentication.conf\n```\n\nTo obtain more information, how to use a custom authentication in Conan.io, read the [Authentication section](https://conanio.readthedocs.io/en/latest/server.html?highlight=authentication)\n\n## Usage\n\nJust call conan authentication, as before\n\n    $ conan user -p my_ldap_password my_ldap_username\n\nConan will use your username and password to authenticate to registered LDAP server.\n\n## Tests and Development\n\nTo run all unit tests:\n\n    $ nosetests -v --with-coverage --cover-package=conan .\n\n## Dependencies\n\nThe package **pyLDAP** needs a bunch of packages installed, without these packages, the installation will fail.\n\n* python-dev\n* libldap2-dev\n* libsasl2-dev\n* libssl-dev\n\n## Docker support\n\nIf you want to run Conan server with LDAP support on Docker, you can try to Docker recipe on this repository:\n\n    docker build -t conanio/conan_server_ldap .\n    docker run conanio/conan_server_ldap\n\n## License\n[MIT](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuilianries%2Fconan-ldap-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuilianries%2Fconan-ldap-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuilianries%2Fconan-ldap-authentication/lists"}