{"id":26965748,"url":"https://github.com/pinepain/ldap-auth-proxy","last_synced_at":"2025-04-03T07:34:18.925Z","repository":{"id":49242147,"uuid":"127350931","full_name":"pinepain/ldap-auth-proxy","owner":"pinepain","description":"A simple drop-in HTTP proxy for transparent LDAP authentication which is also a HTTP auth backend.","archived":false,"fork":false,"pushed_at":"2020-07-29T12:25:13.000Z","size":1118,"stargazers_count":74,"open_issues_count":5,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-18T23:01:48.319Z","etag":null,"topics":["ingress-nginx","ldap","ldap-auth","proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","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/pinepain.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}},"created_at":"2018-03-29T21:49:39.000Z","updated_at":"2024-05-15T12:02:30.000Z","dependencies_parsed_at":"2022-09-26T20:01:28.296Z","dependency_job_id":null,"html_url":"https://github.com/pinepain/ldap-auth-proxy","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinepain%2Fldap-auth-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinepain%2Fldap-auth-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinepain%2Fldap-auth-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinepain%2Fldap-auth-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinepain","download_url":"https://codeload.github.com/pinepain/ldap-auth-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246956602,"owners_count":20860465,"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":["ingress-nginx","ldap","ldap-auth","proxy"],"created_at":"2025-04-03T07:32:07.175Z","updated_at":"2025-04-03T07:34:18.918Z","avatar_url":"https://github.com/pinepain.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LDAP Auth proxy\n\n[![Build Status](https://api.travis-ci.org/pinepain/ldap-auth-proxy.svg?branch=master)](https://travis-ci.org/pinepain/ldap-auth-proxy)\n[![Go Report Card](https://goreportcard.com/badge/github.com/pinepain/ldap-auth-proxy)](https://goreportcard.com/report/github.com/pinepain/ldap-auth-proxy)\n\nA simple drop-in HTTP proxy for transparent LDAP authorization which is also a HTTP auth backend.\n\n## Usage\n\nYou can use `pinepain/ldap-auth-proxy` docker image (see available tags [here](https://hub.docker.com/r/pinepain/ldap-auth-proxy/tags/))\nor build binary by yourself, `Dockerfile` and `.travis.yml` list all necessary steps to build it.\n\nUsage examples could be found in [examples](./examples) folder.\n\n## Architecture\n\nLDAP auth proxy could be used in two modes: as an auth backend and as a proxy:\n\n### Auth backend\n\n![auth backend](https://user-images.githubusercontent.com/2185793/38117476-e3a456dc-33bd-11e8-927d-ef68a9a863d7.png)\n\nExamples:\n  - Kubernetes `ingress-nginx` setup could be found in [examples/k8s-ingress-nginx](./examples/k8s-ingress-nginx).\n  - `docker-compose` setup could be found in [examples/auth_backend](./examples/auth_backend).\n\n### Proxy\n\n![proxy](https://user-images.githubusercontent.com/2185793/38117475-e384e496-33bd-11e8-9959-fbef372ea06a.png)\n\nand it's variation, proxy behind nginx:\n\n![proxy behind nginx](https://user-images.githubusercontent.com/2185793/38117474-e367794c-33bd-11e8-86a4-1b16d9fa6e4b.png)\n\nExample `docker-compose` setup could be found in [examples/proxy](./examples/proxy)\n\n## Example settings for JumpCloud users:\n\n    export LDAP_SERVER='ldaps://ldap.jumpcloud.com'\n    export LDAP_BASE='o=\u003coid\u003e,dc=jumpcloud,dc=com'\n    export LDAP_BIND_DN='uid=\u003cbind user name\u003e,ou=Users,o=\u003coid\u003e,dc=jumpcloud,dc=com'\n    export LDAP_BIND_PASSWORD='\u003cbind user password\u003e'\n    export LDAP_USER_FILTER='(uid=%s)'\n    export LDAP_GROUP_FILTER='(\u0026(objectClass=groupOfNames)(member=uid=%s,ou=Users,o=\u003coid\u003e,dc=jumpcloud,dc=com))'\n    export GROUP_HEADER='X-Ldap-Group'\n    export HEADERS_MAP='X-LDAP-Mail:mail,X-LDAP-UID:uid,X-LDAP-CN:cn,X-LDAP-DN:dn'\n\nwhere `\u003coid\u003e` is your organisation id.\n\n\n## Notes\n\nA zero length password is always considered invalid since it is, according to the LDAP spec, a request for\n\"unauthenticated authentication.\" Unauthenticated authentication should not be used for LDAP based authentication.\nSee `section 5.1.2 of RFC-4513 \u003chttp://tools.ietf.org/html/rfc4513#section-5.1.2\u003e`_ for a description of this behavior.\n\nNeither zero length username supported. Anonymous authentication should also not be used for LDAP based authentication.\nSee `section 5.1.1 of RFC-4513 \u003chttp://tools.ietf.org/html/rfc4513#section-5.1.1\u003e`_ for a description of that behavior.\n\n\n## License\n\n[ldap-auth-proxy](https://github.com/pinepain/ldap-auth-proxy) is licensed under the [MIT license](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinepain%2Fldap-auth-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinepain%2Fldap-auth-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinepain%2Fldap-auth-proxy/lists"}