{"id":19682905,"url":"https://github.com/worteks/docker-lemonldap","last_synced_at":"2026-05-15T03:35:37.767Z","repository":{"id":76091640,"uuid":"192703421","full_name":"Worteks/docker-lemonldap","owner":"Worteks","description":"LemonLDAP-NG Docker Image","archived":false,"fork":false,"pushed_at":"2019-11-23T18:55:01.000Z","size":302,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T07:27:26.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Worteks.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":"2019-06-19T09:39:04.000Z","updated_at":"2019-11-23T18:55:04.000Z","dependencies_parsed_at":"2023-05-22T11:00:13.958Z","dependency_job_id":null,"html_url":"https://github.com/Worteks/docker-lemonldap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Worteks/docker-lemonldap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Worteks%2Fdocker-lemonldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Worteks%2Fdocker-lemonldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Worteks%2Fdocker-lemonldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Worteks%2Fdocker-lemonldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Worteks","download_url":"https://codeload.github.com/Worteks/docker-lemonldap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Worteks%2Fdocker-lemonldap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33052744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":[],"created_at":"2024-11-11T18:12:49.898Z","updated_at":"2026-05-15T03:35:37.761Z","avatar_url":"https://github.com/Worteks.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SweetLemonLDAP\n\nLemonLDAP-NG, customized to load its configuration from an LDAP backend,\nshipping with Sweet custom theme, loosly based on\nhttps://github.com/LemonLDAPNG/lemonldap-ng-docker\n\nDiverts from https://github.com/Worteks/docker-apache\n\nDepends on SweeLDAP - https://github.com/Worteks/docker-ldap. You would need\nto pass your OpenLDAP host address for lemon to start up, as LemonLDAP core\nconfiguration would refer to that LDAP storing the rest of its configuration.\n\n```\ngit clone github.com/Worteks/docker-ldap\ncd docker-ldap\nmake build demo\n```\n\nBuild with:\n```\n$ make build\n```\n\nTest with:\n```\n$ docker run -e OPENLDAP_ROOT_DOMAIN=demo.local \\\n    -e OPENLDAP_LEMONLDAP_PASSWORD=secret -e OPENLDAP_BIND_LDAP_PORT=389 \\\n    -e OPENLDAP_DEMO_PASSWORD=demo -p 389:389 -p 636:636 wsweet/openldap\n$ docker run -e OPENLDAP_BIND_PW=secret -e OPENLDAP_DOMAIN=demo.local \\\n    -e OPENLDAP_HOST=172.17.0.2 -e LLNG_HTTP_PORT=8080 \\\n    --add-host=auth.demo.local:127.0.0.1 \\\n    --add-host=portal.demo.local:127.0.0.1 \\\n    --add-host=manager.demo.local:127.0.0.1 \\\n    --add-host=reload.demo.local:127.0.0.1 \\\n    --add-host=test1.demo.local:127.0.0.1 \\\n    --add-host=test2.demo.local:127.0.0.1 \\\n    -p 8080:8080 wsweet/lemon\n$ make run\n```\n\nStart Demo or Cluster in OpenShift:\n\n```\n$ make ocdemo\n$ make ocprod\n```\n\nCleanup OpenShift assets:\n\n```\n$ make ocpurge\n```\n\nHosts overrides\n---------------\n\nPrefer adding the following records to your `/etc/hosts`. These may be set by\npassing the `--add-host=NAME:127.0.0.1` to the Docker `run` command.\n\n|     VirtualHost             |\n| :-------------------------: |\n|  `auth.OPENLDAP_DOMAIN`     |\n|  `portal.OPENLDAP_DOMAIN`   |\n|  `manager.OPENLDAP_DOMAIN`  |\n|  `reload.OPENLDAP_DOMAIN`   |\n|  `test1.OPENLDAP_DOMAIN`    |\n|  `test2.OPENLDAP_DOMAIN`    |\n\nEnvironment variables and volumes\n----------------------------------\n\nThe image recognizes the following environment variables that you can set during\ninitialization by passing `-e VAR=VALUE` to the Docker `run` command.\n\n|    Variable name           |    Description                | Default                                                     | Inherited From |\n| :------------------------- | ----------------------------- | ----------------------------------------------------------- | -------------- |\n|  `APACHE_DOMAIN`           | Apache ServerName             | `example.com`                                               | wsweet/apache  |\n|  `APACHE_IGNORE_OPENLDAP`  | Ignore LemonLDAP autoconf     | undef                                                       | wsweet/apache  |\n|  `GIT_SSH_PORT`            | SSH Port cloning LLNG Themes  | `22`                                                        |                |\n|  `LEMON_CUSTOM_THEMES`     | LemonLDAP Customer Themes     | undef                                                       |                |\n|  `LLNG_PROTO`              | Public LLNG Proto             | undef, assumes `http`                                       |                |\n|  `LLNG_HTTP_PORT`          | LemonLDAP HTTP(s) Port        | `8080`                                                      |                |\n|  `LLNG_PUB_PORT`           | LemonLDAP Public HTTP Port    | `80`                                                        |                |\n|  `OPENLDAP_BASE`           | OpenLDAP Base                 | seds `OPENLDAP_DOMAIN`, default produces `dc=demo,dc=local` | wsweet/apache  |\n|  `OPENLDAP_BIND_DN_RREFIX` | OpenLDAP Bind DN Prefix       | `cn=lemonldap,ou=services`                                  | wsweet/apache  |\n|  `OPENLDAP_BIND_PW`        | OpenLDAP Bind Password        | `secret`                                                    | wsweet/apache  |\n|  `OPENLDAP_CONF_DN_RREFIX` | OpenLDAP Conf DN Prefix       | `cn=lemonldap,ou=config`                                    | wsweet/apache  |\n|  `OPENLDAP_DOMAIN`         | OpenLDAP Domain Name          | undef                                                       | wsweet/apache  |\n|  `OPENLDAP_HOST`           | OpenLDAP Backend Address      | undef                                                       | wsweet/apache  |\n|  `OPENLDAP_PORT`           | OpenLDAP Bind Port            | `389` or `636` depending on `OPENLDAP_PROTO`                | wsweet/apache  |\n|  `OPENLDAP_PROTO`          | OpenLDAP Proto                | `ldap`                                                      | wsweet/apache  |\n\n\n|  Volume mount point                     | Description                                                                     | Inherited From |\n| :-------------------------------------- | ------------------------------------------------------------------------------- | -------------- |\n|  `/.ssh/id_rsa`                         | Optional Input Private Key setting up LemonLDAP-NG Themes                       |                |\n|  `/etc/lemonldap-ng`                    | LemonLDAP-NG Configuration                                                      |                |\n|  `/etc/lib/lemonldap-ng/notifications`  | LemonLDAP-NG Notifications Storage                                              |                |\n|  `/var/apache-secrets`                  | Apache Secrets root - install server.crt, server.key and ca.crt to enable https | wsweet/apache  |\n|  `/vhosts`                              | Apache VirtualHosts templates root - processed during container start           | wsweet/apache  |\n\nThemes\n------\n\nNote that the LemonLDAP deployment may eventually be configured shipping with\ncustom themes. Doing so, we would create a Git repository, create an SSH key\npair, define our public key as a \"deploy key\" in our Git repository settings,\ndefine our private key as a secret in the corresponding OpenShift project,\nand insert that secret into our LemonLDAP deploymentconfiguration.\n\nFirst create our keypair and secret:\n\n```\n$ ssh-keygen -t rsa -b 4096\n[...]\n$ oc create secret generic lemon-themes-wsweet --from-file=id_rsa=path/to/id_rsa\n$ oc edit dc/lemon-wsweet\n[...]\n      - env:\n        - name: GIT_SSH_PORT\n          value: \"2222\"\n        - name: LEMON_CUSTOM_THEMES\n          value: git+ssh://git.example.com/proj/repo.git\n[...]\n        volumeMounts:\n        - name: git-clone-ssh\n          mountPath: /.ssh/id_rsa\n          subPath: id_rsa\n[...]\n      volumes:\n      - secret:\n          mode: 420\n          secretName: lemon-themes-wsweet\n        name: git-clone-ssh\n[...]\n```\n\nWhen done and redeployed (check the logs, you should see you files being take\ncare of), switch LemonLDAP::NG to \"custom\" theme in the manager\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworteks%2Fdocker-lemonldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworteks%2Fdocker-lemonldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworteks%2Fdocker-lemonldap/lists"}