{"id":19271557,"url":"https://github.com/eip-work/kuboard-v4-ldap-example","last_synced_at":"2025-04-21T21:33:31.269Z","repository":{"id":239408941,"uuid":"799413666","full_name":"eip-work/kuboard-v4-ldap-example","owner":"eip-work","description":"Integrate Kuboard v4 with LDAP","archived":false,"fork":false,"pushed_at":"2024-11-03T10:09:34.000Z","size":1151,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-11-03T11:18:09.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/eip-work.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":"2024-05-12T04:14:50.000Z","updated_at":"2024-11-03T10:09:37.000Z","dependencies_parsed_at":"2024-05-12T08:27:12.164Z","dependency_job_id":"37dc9bc1-a02b-4da3-8592-8ac98e3a2830","html_url":"https://github.com/eip-work/kuboard-v4-ldap-example","commit_stats":null,"previous_names":["eip-work/kuboard-v4-ldap-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eip-work%2Fkuboard-v4-ldap-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eip-work%2Fkuboard-v4-ldap-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eip-work%2Fkuboard-v4-ldap-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eip-work%2Fkuboard-v4-ldap-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eip-work","download_url":"https://codeload.github.com/eip-work/kuboard-v4-ldap-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223880729,"owners_count":17219188,"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":[],"created_at":"2024-11-09T20:32:22.840Z","updated_at":"2024-11-09T20:32:23.445Z","avatar_url":"https://github.com/eip-work.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kuboard v4 Ldap example\n\nThis project is a example to show how to authenticate Kuboard v4 via LDAP server.\n\nKuboard v4 has a Service Provider Interface to authenticate user and load user details info.\n\n\n## Prerequisit\n\nTo run the example, you have to prepare:\n* docker engine \u003e= 20.01\n\n\n## Run the example\n\n* Execute the following command in the source code root directory.\n\n  ```sh\n  git clone https://github.com/eip-work/kuboard-v4-ldap-example.git\n  cd kuboard-v4-ldap-example\n  docker compose up -d\n  ```\n\n* Open the following url in your browser\n\n  `http://localhost:8000`\n\n  ![Login UI](./docs/assets/kuboard_login.png)\n\n* Login with admin user:\n\n  * username: `admin`\n  * password: `Kuboard123`\n\n* Navigate to `系统设置` -\u003e `用户登录设置`: \u003cbr\u003e\n  Navigate to `System Settings` -\u003e `User Authentication Settings` Menu:\n\n  ![Settings](./docs/assets/settings.jpg)\n\n  * Enable `启用外部用户 Webhook`\u003cbr\u003e\n    Enable `Enable External User Respository`\n  * Fill in `外部用户 Webhook`\u003cbr\u003e\n    Fill in `External User Respository Webhook`\n    with value `http://ldap-example:9090/api/kuboard/example/ldap-users`\n  * Click `保存` button\u003cbr\u003e\n    Click `Save` button\n\n* Logout with the button on the top right of the screen.\n\n  ![Logout](./docs/assets/logout.jpg)\n\n* Login with Ldap user:\n\n  * username: `user01`\n  * password: `password1`\n\n  or \n\n  * username: `user02`\n  * password: `password2`\n\n* Navigate to `个人信息` -\u003e `所属分组`: \u003cbr\u003e\n  Navigate to `Profile` -\u003e `User Groups` Menu:\n\n  ![Group](./docs/assets/group.jpg)\n\n  We can see that `user01` derives two group bindings from webhook api, `test-group` and `group1`. We could also get to know from menu `个人信息` -\u003e `权限信息` (`Profile` -\u003e `Privileges`) that `user01` has no privilege to do anything at the moment.\n\n  To grant `user01` with privileges, take the following actions:\n  * Login with user `admin`\n  * Navigate to menu `用户与权限` -\u003e `用户组` (`Users and Roles` -\u003e `Groups`)\n  * Create a group named `test-group` (or `group1`)\n  * Bind the group with proper roles.\n\n  You can also grant `user01` with privileges by taking following actions:\n  * Login with user `admin`\n  * Navigate to menu `用户与权限` -\u003e `用户组` (`Users and Roles` -\u003e `Groups`)\n  * Click a existing group which has proper privileges\n  * Bind the group with user `user01`\n\n## Build the example\n\n* Execute the following command in the source code root directory.\n\n  ```sh\n  docker build -t eipwork/kuboard-v4-ldap-example:v4 .\n  ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feip-work%2Fkuboard-v4-ldap-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feip-work%2Fkuboard-v4-ldap-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feip-work%2Fkuboard-v4-ldap-example/lists"}