-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5281 from stonezdj/testcase_ldap_group_admin
Add testcase for define harbor admin by LDAP group DN
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
tests/testcases/Group3-RBAC/3-08-LDAP-define-harbor-admin-by-dn.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Test 3-08 - Define Harbor Admin By DN (LDAP Mode) | ||
======= | ||
|
||
# Purpose: | ||
|
||
To verify that harbor admin can be defined by LDAP group DN | ||
|
||
# References: | ||
User guide | ||
|
||
# Environment: | ||
* This test requires that a Harbor instance is running and available. | ||
* Harbor is set to authenticate against an LDAP or AD server. ( auth_mode is set to **ldap_auth** .) The user data is stored in an LDAP or AD server. | ||
* A linux host with Docker CLI installed (Docker client). | ||
* At least five(5) non-admin users are in Harbor. | ||
|
||
# Test Steps: | ||
|
||
|
||
1. Create group harbor_sys_admin in LDAP. | ||
1. Create LDAP user sys_admin in LDAP, and add sys_admin to the member of group harbor_sys_admin. | ||
1. Login as admin user, Go to Administration -> Configuration -> Authentication, set the configuration: "LDAP Groups With Admin Privilege" with the DN of harbor_sys_admin. | ||
1. Login in with LDAP user sys_admin. | ||
|
||
|
||
# Expected Outcome: | ||
|
||
1. The sys_admin user can have admin privileges, such as change the configuration, add/remove replication policy, manage repositories etc. | ||
|
||
# Possible Problems: | ||
None |