{"id":16189376,"url":"https://github.com/caolan/chicken-ldap-bind","last_synced_at":"2026-03-18T18:19:41.716Z","repository":{"id":65991217,"uuid":"41541302","full_name":"caolan/chicken-ldap-bind","owner":"caolan","description":"Implements LDAP bind for authentication using OpenLDAP","archived":false,"fork":false,"pushed_at":"2022-09-30T09:35:55.000Z","size":132,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-28T14:45:31.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scheme","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/caolan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2015-08-28T10:22:52.000Z","updated_at":"2018-04-26T00:38:01.000Z","dependencies_parsed_at":"2023-02-28T11:16:46.305Z","dependency_job_id":null,"html_url":"https://github.com/caolan/chicken-ldap-bind","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/caolan/chicken-ldap-bind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fchicken-ldap-bind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fchicken-ldap-bind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fchicken-ldap-bind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fchicken-ldap-bind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caolan","download_url":"https://codeload.github.com/caolan/chicken-ldap-bind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caolan%2Fchicken-ldap-bind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29326148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T02:08:56.257Z","status":"ssl_error","status_checked_at":"2026-02-11T02:08:51.338Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-10T07:35:15.222Z","updated_at":"2026-02-11T03:31:12.384Z","avatar_url":"https://github.com/caolan.png","language":"Scheme","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ldap-bind\n\nA CHICKEN egg implementing LDAP bind for authentication purposes using\nthe OpenLDAP library. This is not a complete binding to the OpenLDAP\nlibrary and only covers the authentication use-case.\n\nRequires OpenLDAP / libldap and liblber to be installed.\n\n## API\n\n#### (ldap-initialize uris #!optional (version 3))\n\nInitializes the LDAP library and opens a connection to an LDAP server.\nReturns an ldap-connection record.\n\n#### (ldap-bind conn dn pass)\n\nAttempts to bind to a dn using the given password. The conn argument is\na connection record returned from ldap-initialize. Returns #t if the\nbind succeeded, #f otherwise.\n\n#### (ldap-unbind conn)\n\nTerminate the current association, and free the resources contained in\nthe connecction record. After calling ldap-unbind the connection to\nthe LDAP server is closed and the connection record becomes invalid.\n\n## Example\n\n```scheme\n(use ldap-bind)\n\n(define ld (ldap-initialize \"ldaps://example.com\"))\n\n(if (ldap-bind ld \"uid=testuser,cn=users,dc=example,dc=com\" \"password\")\n  (print \"Welcome, authenticated user!\")\n  (print \"Invalid Credentials\"))\n\n;; or, using list syntax for a base dn:\n\n(define base-dn\n  '((cn \"users\") (dc \"example\") (dc \"com\")))\n\n(if (ldap-bind ld (cons '(uid \"testuser\") base-dn) \"password\")\n  (print \"Welcome, authenticated user!\")\n  (print \"Invalid Credentials\"))\n\n(ldap-unbind ld)\n```\n\n## Author\n\nOriginal implementation work by Moritz Heidkamp, updated to latest APIs\nand released with just the ldap-bind feature by Caolan McMahon (with kind\npermission).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaolan%2Fchicken-ldap-bind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaolan%2Fchicken-ldap-bind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaolan%2Fchicken-ldap-bind/lists"}