{"id":15434031,"url":"https://github.com/sebinsua/rest-auth-ldap","last_synced_at":"2026-04-25T16:33:21.456Z","repository":{"id":143142251,"uuid":"64080850","full_name":"sebinsua/rest-auth-ldap","owner":"sebinsua","description":"A small REST interface on top of LDAP","archived":false,"fork":false,"pushed_at":"2016-07-24T19:20:47.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T09:04:44.416Z","etag":null,"topics":["api","json","jwt","ldap"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebinsua.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-24T18:57:55.000Z","updated_at":"2016-07-24T19:20:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"7007cf8d-0046-4af7-984d-d1e2816a765a","html_url":"https://github.com/sebinsua/rest-auth-ldap","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"ad624743e601c109fb16b461e626e9b60f4eeac6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sebinsua/rest-auth-ldap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebinsua%2Frest-auth-ldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebinsua%2Frest-auth-ldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebinsua%2Frest-auth-ldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebinsua%2Frest-auth-ldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebinsua","download_url":"https://codeload.github.com/sebinsua/rest-auth-ldap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebinsua%2Frest-auth-ldap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32269458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","json","jwt","ldap"],"created_at":"2024-10-01T18:36:47.950Z","updated_at":"2026-04-25T16:33:21.429Z","avatar_url":"https://github.com/sebinsua.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rest-auth-ldap\n\u003e [RESTful](http://en.wikipedia.org/wiki/Representational_state_transfer) API for authenticating against an LDAP server.\n\nI found this on my machine from a couple of years ago. It worked back then but might not now: it doesn't have tests and I don't have an LDAP server so I can't be sure.\n\nEither way, it might be a good start if you need a RESTful interface in front of an LDAP server.\n\nInstallation\n------------\n\nThe [dependencies are defined](http://12factor.net/dependencies) in the [package.json](./package.json). The service also requires [PostgreSQL](http://www.postgresql.org/) accessible as [a backing service](http://12factor.net/backing-services).\n\n```shell\n$ git clone git@github.com:sebinsua/rest-auth-ldap.git;\n$ npm install;\n```\n\nConfiguration\n-------------\n\nThere are multiple ways of configuring this service. It is configured by default based on the config stored in `config/defaults.json`, and this can be overridden by an config stored in `/etc/rest-auth-ldap/config.json`. However, this is not the recommended way to configure the app.\n\nThe recommended way of configuring the app is with [the 12 Factor way of passing in environment variables to the process when it starts](http://12factor.net/config). The environment variables that can be configured are the keys of the config object inside `config/defaults.json`.\n\nStarting the service\n--------------------\n\n```shell\n$ npm start;\n```\n\nEndpoints\n---------\n\n**Authentication**\n\n```\nPOST /auth\n{\n  \"username\": \"username\",\n  \"password\": \"password\",\n  \"applicationId\": \"some-app-identifier\"\n}\n```\n\nShould respond with 200, 401, 403 or 500 depending on the request given and the configuration of the service.\n\nTesting\n-------\n\n```shell\n$ npm install --dev;\n$ npm test;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebinsua%2Frest-auth-ldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebinsua%2Frest-auth-ldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebinsua%2Frest-auth-ldap/lists"}