{"id":13571744,"url":"https://github.com/sdelements/lets-chat-ldap","last_synced_at":"2025-04-04T08:32:11.263Z","repository":{"id":27148444,"uuid":"30617444","full_name":"sdelements/lets-chat-ldap","owner":"sdelements","description":"LDAP plugin for Let's Chat","archived":true,"fork":false,"pushed_at":"2017-01-12T07:46:39.000Z","size":13,"stargazers_count":33,"open_issues_count":16,"forks_count":12,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-04-24T18:54:31.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/sdelements.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-10T22:14:53.000Z","updated_at":"2024-02-07T07:08:24.000Z","dependencies_parsed_at":"2022-06-26T05:02:52.528Z","dependency_job_id":null,"html_url":"https://github.com/sdelements/lets-chat-ldap","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/sdelements%2Flets-chat-ldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelements%2Flets-chat-ldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelements%2Flets-chat-ldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelements%2Flets-chat-ldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdelements","download_url":"https://codeload.github.com/sdelements/lets-chat-ldap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247147631,"owners_count":20891735,"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":[],"created_at":"2024-08-01T14:01:05.578Z","updated_at":"2025-04-04T08:32:06.255Z","avatar_url":"https://github.com/sdelements.png","language":"JavaScript","readme":"# Let's Chat - LDAP Plugin\n\nAdd LDAP authentication to [Let's Chat](http://sdelements.github.io/lets-chat/).\n\n### Install\n\n```\nnpm install lets-chat-ldap\n```\n\n### Configure\n\n###### Example 1\n\n```yml\nauth:\n  providers: [ldap]\n\n  ldap:\n    connect_settings:\n      url: ldap://ldap.example.com\n      tlsOptions:\n        ca: ca.pem\n    bind_options:\n      bindDN: uid=letschat,cn=sysusers,cn=accounts,dc=example,dc=com\n      bindCredentials: Pa$$word123\n    search:\n      base: cn=users,cn=accounts,dc=example,dc=com\n      opts:\n        scope: one # Base search (base), one level search (one) or subtree search (sub)\n        filter: (uid={{username}}) # Only {{username}} is available\n    field_mappings:\n      uid: uid # LDAP unique ID\n      username: uid # used for mention (@uid)\n      firstName: givenName\n      lastName: sn\n      displayName: givenName\n      email: mail\n```\n\n###### Example 2\n\n```yml\nauth:\n  providers: [ldap]\n\n  ldap:\n    connect_settings:\n      url: ldap://ldap.example.com:389\n    bind_options:\n      bindDN: CN=LetsChat,CN=Users,DC=example,DC=com\n      bindCredentials: Pa$$word123\n    search:\n      base: \"CN=Users,DC=example,DC=com\"\n      opts:\n        scope: one\n        filter: (sAMAccountName={{username}})\n    field_mappings:\n      uid: sAMAccountName\n      firstName: givenName\n      lastName: sn\n      displayName: givenName\n      email: mail\n```\n\n##### ENV Variables\n\nIt's also possible to configure the plugin using the following environment variables:\n\n```\nLCB_AUTH_PROVIDERS\nLCB_AUTH_LDAP_CONNECT_SETTINGS_URL\nLCB_AUTH_LDAP_CONNECT_SETTINGS_TLS_OPTIONS_CA\nLCB_AUTH_LDAP_BIND_OPTIONS_BIND_DN\nLCB_AUTH_LDAP_BIND_OPTIONS_BIND_CREDENTIALS\nLCB_AUTH_LDAP_SEARCH_BASE\nLCB_AUTH_LDAP_SEARCH_OPTS_FILTER\nLCB_AUTH_LDAP_SEARCH_OPTS_SCOPE\nLCB_AUTH_LDAP_FIELD_MAPPINGS_UID\nLCB_AUTH_LDAP_FIELD_MAPPINGS_USERNAME\nLCB_AUTH_LDAP_FIELD_MAPPINGS_EMAIL\nLCB_AUTH_LDAP_FIELD_MAPPINGS_FIRSTNAME\nLCB_AUTH_LDAP_FIELD_MAPPINGS_LASTNAME\nLCB_AUTH_LDAP_FIELD_MAPPINGS_DISPLAY_NAME\n```\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdelements%2Flets-chat-ldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdelements%2Flets-chat-ldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdelements%2Flets-chat-ldap/lists"}