(: August 12, 2019)

After installing Harbor registry server, the next action is probably proper user management. The standard user Authentication method in most companies is LDAP/AD. It is not justified to manage a separate user database for Harbor authentication if you have LDAP server in use.

This guide will discuss how you can configure LDAP backend as a database for user authentication in harbor. The pre-requisites for this setup are:

In my setup, I use FreeIPA Identity Management platform. Installation guides are available on our website.

.td_uid_2_5d909aef67564_rand.td-a-rec-img{text-align:left}.td_uid_2_5d909aef67564_rand.td-a-rec-img img{margin:0 auto 0 0}

How to Install FreeIPA Server on CentOS 7

How to Install and Configure FreeIPA Server on RHEL / CentOS 8

How to Install and Configure FreeIPA Server on Ubuntu 18.04 / Ubuntu 16.04

Step 1: Create Bind User on LDAP

Access your LDAP server and create a user account that will be used on Harbor to bind to the server.

Step 2: Configure LDAP Authentication on Harbor

Now access Harbor admin dashboard and navigate to Administration > Configuration > Authentication

Change your settings like below.

Auth Mode: LDAP
LDAP URL: ldap.example.com
LDAP Search DN: uid=service,cn=users,cn=accounts,dc=example,dc=com
LDAP Search Password: LDAP-Bind-User-Password
LDAP Base DN: cn=users,cn=accounts,dc=example,dc=com
LDAP UID: uid

And other values e.g for Group to suit your environment and desired authentication model. In my configuration, I’ve set:

Auth Mode: Set authentication mode to LDAP
LDAP URL: LDAP Server URL
LDAP Search DN: DN for user with permissions to search LDAP server.
LDAP Search Password: Search user password
LDAP Base DN: The base DN from which to lookup a user
LDAP UID: Attribute used in a search to match a user

When done, click “TEST LDAP SERVER” button to validate settings.

If the connection is successful, you’ll get this message.

Test login on Harbor web portal to confirm users on LDAP can access the service.

Input LDAP username and password to access Harbor dashboard.

You need to authenticate to access Harbor registry on Docker machine.

$ docker login reg1.example.com
Authenticating with existing credentials...
Existing credentials are invalid, please enter valid username and password
Username: computingforgeeks
Password: <LDAPPassword>
Login Succeeded!

We have confirmed we can access Harbor resources with LDAP credentials.

.td_uid_4_5d909aef67784_rand.td-a-rec-img{text-align:left}.td_uid_4_5d909aef67784_rand.td-a-rec-img img{margin:0 auto 0 0}
  • Restoring a Storm Server from an Image
  • IBM Director Declares ‘We’re All in on Blockchain’
  • Goldman Sachs CEO Lloyd Blankfein: I’m Open to Bitcoin
  • Coincheck Owner Monex Plans Proprietary Blockchain, ICO
  • Adding ssh key pair to Openstack using cli
  • How To Install InfluxDB on CentOS 8 / RHEL 8
  • FreeBSD tinydns: Sets Up a DNS Publication / Authoritative Name Server
  • Tether Says Its USDT Stablecoin May Not Be Backed By Fiat Alone
  • Why PwC’s New FinTech Director Won’t Rock the Blockchain Boat
  • Yelp Director Donates $10k in Bitcoin to Alma Mater
  • Bank of England Warns Finance Firms Over Crypto Risks
  • Centers for Disease Control to Launch First Blockchain Test on Disaster Relief
  • Zcash Team Reveals It Fixed a Catastrophic Coin Counterfeiting Bug
  • HITMAN Now Available For Linux – The Complete First Season
  • IBM Building Blockchain Dispute Resolution System
  • SXI LLC Company
    SXI.IO is a global Blockchain software company, specialized in developing white label crypto exchange platforms , Wallet platforms, ICO platforms, Token Erc20 .....
    Fully Managed VPS Fully Managed VPS Fully Managed VPS

    You Might Also Enjoy NewS Post

    Best Free Web Hosting 2020

    Free Hosting 1GB $0.00 USD/mo Disk space 1GB Traffic 10GB/Month Domains 2 Plesk Cpanel Databases 10 Free 12 Month https://my.sxi.io/cart.php?a=add&pid=196

    02/05/2020 READ MORE