{"id":15032375,"url":"https://github.com/fabiokleis/rldap","last_synced_at":"2026-01-02T03:20:29.111Z","repository":{"id":63875837,"uuid":"571368396","full_name":"Fabiokleis/rldap","owner":"Fabiokleis","description":"using ldap bindings for rust, connecting on ldap server and tests with docker containers envinronment","archived":false,"fork":false,"pushed_at":"2023-03-04T04:07:24.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T16:48:17.798Z","etag":null,"topics":["docker","dockerfile","ldap","makefile","musl","rust-lang","shell-script","yaml"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Fabiokleis.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":"2022-11-28T00:53:06.000Z","updated_at":"2023-08-04T12:45:49.000Z","dependencies_parsed_at":"2024-09-24T20:18:16.833Z","dependency_job_id":null,"html_url":"https://github.com/Fabiokleis/rldap","commit_stats":{"total_commits":30,"total_committers":2,"mean_commits":15.0,"dds":"0.23333333333333328","last_synced_commit":"6eb1836af3e6eadba46e1afed0dd1c4727cad045"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fabiokleis%2Frldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fabiokleis%2Frldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fabiokleis%2Frldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fabiokleis%2Frldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fabiokleis","download_url":"https://codeload.github.com/Fabiokleis/rldap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243351841,"owners_count":20276908,"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":["docker","dockerfile","ldap","makefile","musl","rust-lang","shell-script","yaml"],"created_at":"2024-09-24T20:18:12.484Z","updated_at":"2026-01-02T03:20:29.081Z","avatar_url":"https://github.com/Fabiokleis.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rldap\nusing ldap bindings for rust, connecting on ldap server with docker containers envinronment\n\n### Build statically with musl\n```bash\ncargo build --target x86_64-unknown-linux-musl --release\n```\n\n### Run release\n```bash\ncargo run --target x86_64-unknown-linux-musl --release\n```\n\n### Pull docker images\n[rldap](https://hub.docker.com/repository/docker/fishingboo/rldap) are the application image\n\n[rldap-osixia-ldap](https://hub.docker.com/repository/docker/fishingboo/rldap-osixia-openldap) are the ldap image\n```bash\ndocker image pull fishingboo/rldap:latest\n```\n```bash\ndocker image pull fishingboo/rldap-osixia-openldap:latest\n```\n\n### Container .env configurations setup\n```.env\nLDAP_DOMAIN=jacaranda.local\nLDAP_SERVER=rldap.jacaranda.local\nLDAP_BASE_DN=dc=jacaranda,dc=local\nLDAP_BIND_DN=cn=admin,dc=jacaranda,dc=local\nLDAP_ADMIN_PASSWORD=Mypasswd@123\n```\n\n### Test\nUse the shell script test.sh to test rldap by creating two containers.\nOne openldap server and other the rldap container that makes the ldap request.\nAll connections by default are using ldaps in 636 port.\n\nthe openldap container that I used its [docker-openldap](https://github.com/osixia/docker-openldap)\nI extend for my case following the [advanced-user-guide](https://github.com/osixia/docker-openldap#advanced-user-guide)\n\nyou need the shell scripts to test, ensure that they have permission\n```bash\nchmod +x test.sh; chmod +x ldap_build/build.sh\n```\n\n#### Make\nuse the Makefile to build, up, and test containers\n```bash\nmake # run build_ldap, build, up and test\n```\n```bash\nmake build # cleanups dangling images and build rldap image\n```\n```bash\nmake build_ldap # cleanups dangling images and build rldap-ldap image\n```\n```bash\nmake up # after builds steps, up containers rldap-ldap rldap-test\n```\n```bash\nmake test # after container start, make rldap-test request to rldap-ldap container\n```\n```bash\nmake update # builds rldap to linux-musl in --release target, copy rldap bin and .env to running rldap-test container \n```\n```bash\nmake clean # cleanups dangling images, stop containers and remove\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiokleis%2Frldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiokleis%2Frldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiokleis%2Frldap/lists"}