{"id":17081343,"url":"https://github.com/eugenmayer/docker-image-ldapexample","last_synced_at":"2025-05-07T22:45:45.800Z","repository":{"id":58959587,"uuid":"103773801","full_name":"EugenMayer/docker-image-ldapexample","owner":"EugenMayer","description":"A openldap server with a pre-defined example layout for auth and groups with memberOf. Use it for test-setups","archived":false,"fork":false,"pushed_at":"2025-02-11T14:00:13.000Z","size":216,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-07T22:45:38.886Z","etag":null,"topics":["ldap","openldap-server","testing"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/EugenMayer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"eugenmayer","patreon":"eugenmayer"}},"created_at":"2017-09-16T18:14:55.000Z","updated_at":"2025-02-14T02:47:50.000Z","dependencies_parsed_at":"2023-11-08T12:37:08.687Z","dependency_job_id":null,"html_url":"https://github.com/EugenMayer/docker-image-ldapexample","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EugenMayer%2Fdocker-image-ldapexample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EugenMayer%2Fdocker-image-ldapexample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EugenMayer%2Fdocker-image-ldapexample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EugenMayer%2Fdocker-image-ldapexample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EugenMayer","download_url":"https://codeload.github.com/EugenMayer/docker-image-ldapexample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252967975,"owners_count":21833246,"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":["ldap","openldap-server","testing"],"created_at":"2024-10-14T12:51:37.577Z","updated_at":"2025-05-07T22:45:45.788Z","avatar_url":"https://github.com/EugenMayer.png","language":"Shell","funding_links":["https://github.com/sponsors/eugenmayer","https://patreon.com/eugenmayer"],"categories":[],"sub_categories":[],"readme":"[![build](https://github.com/EugenMayer/docker-image-ldapexample/actions/workflows/build_bitnami.yml/badge.svg)](https://github.com/EugenMayer/docker-image-ldapexample/actions/workflows/build_bitnami.yml) \n\n## WAT\n\nIf you need to test-drive your ldap authentication or need a test-server to test your ldap against, this docker-image could be of use. It does come with pre-deployed users and groups, so you can test authentication and filters right away.\n\n## start\n\nJust run \n\n```bash\n./start.sh\n\n#or \nsudo ./tls/generate-tls.sh ldap yes\ndocker-compose up -d\n```\n\nYou can also run the prebuild images without any mounts\n\n```bash\ndocker run -p 389:389 ghcr.io/eugenmayer/ldaptestserver:bitnami-type1\n#or \ndocker run -p 389:389 ghcr.io/eugenmayer/ldaptestserver:bitnami-type2\n```\n\nSee the connection details under layout.\n\n## Database layout\n\nUsing `docker-compose.yml`, you will have 2 servers started as an example, with 2 slightly different layouts, based on `data-template-type1.ldif` and `data-template-type2.ldif`\n\nServer 1 has the port `10389` and the default domain example.org\n- admin user: `cn=admin,dc=example,dc=org`\n- admin password: `admin`\n\nServer 2 has the port `20389` and the default domain example.org\n- admin user: `cn=admin,dc=kontextwork-test,dc=de`\n- admin password: `admin`\n\nWhen you see the Users / Groups below, you need to replace the `\u003cLDAP_BASE_DN\u003e` with the domain, so either `dc=example,dc=org` or`dc=kontextwork-test,dc=de`\n\n### Type 1 Template\n\nBaseDN is `dc=example,dc=org`.\n\n## Users\n- uid=user1id,ou=accounts,ou=base1,,\u003cLDAP_BASE_DN\u003e\n- uid=user2id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=included1id,ou=accounts,ou=base2,\u003cLDAP_BASE_DN\u003e\n- uid=readonlyid,ou=other accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=userExcludedeid,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n\nPasswords do match the the `uid`, so `user1` for the user `uid=user1,ou=accounts,\u003cLDAP_BASE_DN\u003e` and so on.\n\n## Groups\n\nWe have two groups\n\n- cn=myservice,ou=groups,ou=base1,\u003cLDAP_BASE_DN\u003e\n- cn=specialservice,ou=groups,ou=base1,\u003cLDAP_BASE_DN\u003e\n\nfirst one with the following members\n\n- uid=user1id,ou=accounts,ou=base1,,\u003cLDAP_BASE_DN\u003e\n- uid=user2id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=included1id,ou=accounts,ou=base2,\u003cLDAP_BASE_DN\u003e\n\nand second one with\n- uid=user1id,ou=accounts,ou=base1,,\u003cLDAP_BASE_DN\u003e\n\n### Type 2 Template\n\n`\u003cLDAP_BASE_DN\u003e` is `dc=kontextwork-test,dc=de`.\n\n#### Users\n\n- uid=included1id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=included2id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=included3id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=readonlyid,ou=other accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=includedMissingMailid,ou=accounts,ou=base1\u003cLDAP_BASE_DN\u003e\n- uid=excluded1id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=excluded2id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=included1id,ou=accounts,ou=base2,\u003cLDAP_BASE_DN\u003e\n\nPasswords do match the the `uid`, so `included1` for the user `uid=included1,ou=accounts,\u003cLDAP_BASE_DN\u003e` and so on.\n\n#### Groups\n\nWe have groups\n\n- cn=myservice,ou=groupsou=base1,,\u003cLDAP_BASE_DN\u003e\n- cn=otherservice,ou=groups,ou=base1,\u003cLDAP_BASE_DN\u003e\n- cn=groupwithinvalid,ou=groups,ou=base1,\u003cLDAP_BASE_DN\u003e\n- cn=differentservice,ou=groups,ou=base1,\u003cLDAP_BASE_DN\u003e\n- cn=groupofgroups,ou=groups,ou=base1,\u003cLDAP_BASE_DN\u003e\n\nwith the following members\n\nmyservice\n- uid=included1id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=included2id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=included3id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n- uid=includedMissingMailid,ou=accounts,ou=base1\u003cLDAP_BASE_DN\u003e\n\notherservice\n- uid=included1id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n\ndifferentservice\n- uid=included2id,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n\ngroupofgroups\n- cn=otherservice,ou=groups,ou=base1,\u003cLDAP_BASE_DN\u003e\n- cn=differentservice,ou=groups,ou=base1,\u003cLDAP_BASE_DN\u003e\n\ngroupwithinvalid\n- uid=includedMissingMailid,ou=accounts,ou=base1,\u003cLDAP_BASE_DN\u003e\n\n## Build\n\nYou can build your images using your custom templates, custom password or LDAP_DOMAIN. See the `Dockerfile` included here\nand just make it your own, if you like. Also see the templates and see how you can adopt or modify them to your liking.\n\n**Important:** If you rely on `memberOf` you should ensure that your users are created before your groups in the ldif,\nor memberOf will not work!\n\n## Credits\n\nNow-days credits to the once again great docker image of Bitnami [bitnami/openldap](https://hub.docker.com/r/bitnami/openldap) (and in the past, thanks to [osixia/docker-openldap](https://github.com/osixia/docker-openldap))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feugenmayer%2Fdocker-image-ldapexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feugenmayer%2Fdocker-image-ldapexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feugenmayer%2Fdocker-image-ldapexample/lists"}