{"id":23802604,"url":"https://github.com/agx/ldapsp","last_synced_at":"2026-06-22T19:01:20.530Z","repository":{"id":150122089,"uuid":"73109846","full_name":"agx/ldapsp","owner":"agx","description":"Foreman Realm smart proxy for creating LDAP entries","archived":false,"fork":false,"pushed_at":"2021-03-19T11:04:48.000Z","size":2249,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-11T10:33:27.694Z","etag":null,"topics":["erlang","foreman","ldap","smartproxy"],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-07T18:47:36.000Z","updated_at":"2021-03-19T11:04:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"f244502b-b4ac-49da-a3e3-28b2816ae5f4","html_url":"https://github.com/agx/ldapsp","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/agx/ldapsp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Fldapsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Fldapsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Fldapsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Fldapsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agx","download_url":"https://codeload.github.com/agx/ldapsp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Fldapsp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34661709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["erlang","foreman","ldap","smartproxy"],"created_at":"2025-01-01T22:27:10.519Z","updated_at":"2026-06-22T19:01:20.495Z","avatar_url":"https://github.com/agx.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Realm smart proxy for the Foreman\n\n[![Build Status](https://travis-ci.org/agx/ldapsp.svg?branch=master)](https://travis-ci.org/agx/ldapsp)\n\nldapsp is a simple smart proxy for the [Foreman][] that creates LDAP\nentries on host creation and removes them on destroy. It uses\nForeman's realm [smart proxy API][].\n\n## Running\nTo run in development mode use\n\n    make shell\n\nThe proxy will then listen on port 8080. You can check this like\n\n    $ curl http://localhost:8080/features\n    [\"realm\"]\n\nSee *tests/test.sh* for more usage examples.  To build releases,\netc. check the [rebar3][] documentation.\n\n## Configuration in the Foreman\nAdd the smart proxy via Foreman Web-GUI (Infrastructure → Smart\nProxies → New Smart Proxy). Foreman will detect the *realm* feature.\n\n## Configuration of ldapsp\n*priv/ldapsp.config* has the ldap connection parameters while\n*priv/policy.erl* determines how the created ldap entries will look\nlike.  The default policy creates entries of the form:\n\n    dn: cn=\u003chostname\u003e, dc=example, dc=com\n\tobjectclass: top\n\tobjectclass: groupOfUniqueNames\n    cn: \u003chostname\u003e\n    uniqueMember: cn=\u003chostname\u003e, dc=example, dc=com\n\nYou can replace the module with whatever [Erlang][] module you like as\nlong as it implements *add_host/3* and *del_host/2*.\n\nFor SSL it's simplest to put e.g. apache in front of it.\n\n[Foreman]: https://theforeman.org/\n[rebar3]: https://www.rebar3.org/v3.0/docs\n[smart proxy API]: http://projects.theforeman.org/projects/smart-proxy/wiki/API\n[Erlang]: https://www.erlang.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagx%2Fldapsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagx%2Fldapsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagx%2Fldapsp/lists"}