{"id":28414438,"url":"https://github.com/sismics/play-ldap","last_synced_at":"2025-07-25T15:10:06.499Z","repository":{"id":69126297,"uuid":"173086675","full_name":"sismics/play-ldap","owner":"sismics","description":"This module adds LDAP support to Play! Framework 1 applications.","archived":false,"fork":false,"pushed_at":"2020-12-28T09:59:15.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-25T06:42:47.891Z","etag":null,"topics":["apache-directory","directory","ldap","module","play","play-framework"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sismics.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2019-02-28T09:57:01.000Z","updated_at":"2020-12-28T09:56:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"a1e9bdf1-aa59-40d6-a52d-f78023469ae9","html_url":"https://github.com/sismics/play-ldap","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/sismics/play-ldap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sismics%2Fplay-ldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sismics%2Fplay-ldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sismics%2Fplay-ldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sismics%2Fplay-ldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sismics","download_url":"https://codeload.github.com/sismics/play-ldap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sismics%2Fplay-ldap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267023220,"owners_count":24022915,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"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":["apache-directory","directory","ldap","module","play","play-framework"],"created_at":"2025-06-03T08:15:22.326Z","updated_at":"2025-07-25T15:10:06.494Z","avatar_url":"https://github.com/sismics.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub release](https://img.shields.io/github/release/sismics/play-ldap.svg?style=flat-square)](https://github.com/sismics/play-ldap/releases/latest)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n# play-ldap plugin\n\nThis plugin adds [ldap](https://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol) support to Play! Framework 1 applications.\n\n# Features\n\n# How to use\n\n####  Add the dependency to your `dependencies.yml` file\n\n```\nrequire:\n    - ldap -\u003e ldap 1.5.0\n\nrepositories:\n    - sismicsNexusRaw:\n        type: http\n        artifact: \"https://nexus.sismics.com/repository/sismics/[module]-[revision].zip\"\n        contains:\n            - ldap -\u003e *\n\n```\n####  Set configuration parameters\n\nAdd the following parameters to **application.conf**:\n\n```\n# LDAP configuration\n# ~~~~~~~~~~~~~~~~~~~~\nldap.mock=false\nldap.host=ldap.example.com\nldap.port=389\nldap.adminDn=cn=user,ou=group,dc=example,dc=com\nldap.adminPassword=12345678\nldap.baseDn=ou=people,dc=example,dc=com\n```\n####  Connect to LDAP\n\nAdd the following annotation to inject an LDAP connection into your HTTP request:\n\n```\n@With({Ldap.class})\npublic class MyThings extends Controller {\n    public static void getUsersFromLdap() {\n        LdapConnection con = LdapContext.get().getLdapConnection();\n        con.search(...);\n    }\n\n}\n```\n\n####  Mock the connection in dev\n\nWe recommand to mock LDAP in development mode and test profile.\n\nUse the following configuration parameter:\n\n```\nldap.mock=true\n```\n\nPlay-ldap comes pre-initialized with some mock users.\n\nYou can add some test users in your fixtures:\n\n```\n        if (LdapUtil.isMock()) {\n            MockLdap.entryList = Lists.newArrayList(\n                new DefaultEntry(\"cn=test1,ou=people,dc=example,dc=com\"),\n                // ...\n            );\n```\n\n# License\n\nThis software is released under the terms of the Apache License, Version 2.0. See `LICENSE` for more\ninformation or see \u003chttps://opensource.org/licenses/Apache-2.0\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsismics%2Fplay-ldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsismics%2Fplay-ldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsismics%2Fplay-ldap/lists"}