Harbor authentication with Active Directory (LDAP)
Authenticate Harbor users against AD and grant project roles to selected directory groups.
Last updated
On this page (5)
Harbor · Active Directory / LDAP · LDAP
Before you start
- Harbor eligible to change authentication mode.
- AD read-only search bind, reachable LDAPS endpoint and trusted certificate.
- Known user and group search bases.
Configure sign-in
- In Authentication settings choose LDAP, enter LDAP URL, Search DN and password, Base DN, filter and scope, and choose the LDAP UID attribute matching your AD login convention.
- Set Group Base DN, group filter/GID and group membership attribute to match the AD schema. Only set LDAP Group Admin DN to a dedicated, approved administrator group.
- Use the connection test, then assign LDAP groups to specific Harbor projects and roles instead of giving general system administrator access.
Verify the result
- Check AD login and pull/push access on a test project for members and nonmembers.
- Verify the optional administrator DN elevates only its intended members.
