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

  1. 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.
  2. 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.
  3. 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.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy Harbor with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.