{"id":47930239,"url":"https://github.com/ps78674/gorestldap","last_synced_at":"2026-04-04T07:16:03.218Z","repository":{"id":44091675,"uuid":"238745497","full_name":"ps78674/gorestldap","owner":"ps78674","description":"LDAP server with REST API \u0026 file backends","archived":false,"fork":false,"pushed_at":"2024-03-18T21:44:13.000Z","size":186,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T13:46:50.974Z","etag":null,"topics":["go","golang","ldap","ldap-authentication","ldap-server"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ps78674.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":"2020-02-06T17:30:37.000Z","updated_at":"2023-05-26T16:36:02.000Z","dependencies_parsed_at":"2024-06-19T13:34:07.353Z","dependency_job_id":"7b000dd5-18db-4874-a384-339b207170af","html_url":"https://github.com/ps78674/gorestldap","commit_stats":{"total_commits":159,"total_committers":5,"mean_commits":31.8,"dds":"0.15094339622641506","last_synced_commit":"03d80b31cf708ca5324bcb4cc6950380388a1922"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ps78674/gorestldap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps78674%2Fgorestldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps78674%2Fgorestldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps78674%2Fgorestldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps78674%2Fgorestldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ps78674","download_url":"https://codeload.github.com/ps78674/gorestldap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps78674%2Fgorestldap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31391118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"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":["go","golang","ldap","ldap-authentication","ldap-server"],"created_at":"2026-04-04T07:16:01.872Z","updated_at":"2026-04-04T07:16:03.196Z","avatar_url":"https://github.com/ps78674.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## **Simple LDAP server with REST API \u0026 file backends.**\nServer loads JSON data from backend and holds it in memory for future processing in LDAP requests. Data will be reloaded after timeout specified in `--interval` arg.  \nThere are two backends: rest (loads json from REST API) and file (loads json from file).  \n\nServer support bind, search, compare and modify (only replace) operations. It can handle paged results search control (1.2.840.113556.1.4.319).  \nSearch with unsupported critical controls requested can be handled with `respect_control_criticality` set to false.  \n\n### **Usage**\n```\ngorestldap: LDAP server with REST API \u0026 file backends\n\nUsage:\n  gorestldap [-b \u003cBACKEND\u003e -c \u003cCONFIGPATH\u003e -B \u003cBASEDN\u003e -L \u003cLISTENADDR\u003e -I \u003cINTERVAL\u003e -l \u003cLOGPATH\u003e -d]\n\nOptions:\n  -c, --config \u003cCONFIGPATH\u003e  config file path [default: config.yaml, env: CONFIG_PATH]\n  -b, --backend \u003cBACKEND\u003e    backend to use [default: rest, env: BACKEND]\n  -B, --basedn \u003cBASEDN\u003e      server base dn [default: dc=example,dc=com, env: BASE_DN]\n  -L, --listen \u003cLISTENADDR\u003e  listen addr for LDAP [default: 0.0.0.0:389, env: LDAP_LISTEN_ADDR]\n  -I, --interval \u003cINTERVAL\u003e  data update interval [default: 300s, env: UPDATE_INTERVAL] \n  -l, --log \u003cLOGPATH\u003e        log file path\n  -d, --debug                turn on debug logging [default: false] \n\n  -h, --help                 show this screen\n  --version                  show version\n\n```\n\n### **Compile**\nJust type `make`\n\n### **Run**\n`./build/gorestldap -L localhost:10389 -d -b \u003cPLUGIN_NAME\u003e`  \n\n### **Examples**\nAdmin credentials is `admin:admin`.  \nTo start django server type `make server` and copy auth token from django migration output to config.yaml. Then start ldap server:  \n`./build/gorestldap -L localhost:10389 -d -b rest`  \nUser can be managed through django admin interface at `http://localhost:8000/admin`.  \n\n\u003cimg src=\"https://user-images.githubusercontent.com/31385755/209757267-f78e61d2-b46e-487f-a81c-5afe7bc26950.png\" width=\"50%\" height=\"50%\"\u003e  \n\nTo run with file plugin, set backend to file (`-b file`).  \n\n### **Callback**\nCallback listener may be used for data reload (HEAD with auth token `curl -v -I localhost:8080/callback -H \"Authorization: Token qwertyuiop1234567890\"`).  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fps78674%2Fgorestldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fps78674%2Fgorestldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fps78674%2Fgorestldap/lists"}