harbor icon indicating copy to clipboard operation
harbor copied to clipboard

Referral failure with LDAP auth

Open ilsaloving opened this issue 1 year ago • 1 comments

If you are reporting a problem, please make sure the following information are provided:

Expected behavior and actual behavior: Expectation: Successful authentication of AD user Actual: Login failure

Steps to reproduce the problem: Deploy Harbor and configure LDAP/AD authentication

Versions: Please specify the versions of following systems.

  • harbor version: 2.11.0
  • docker engine version: 24.0.7, build 24.0.7-0ubuntu4
  • docker-compose version: [2.24.6+ds1-0ubuntu2

Additional context:

The logs contain:

[/core/controllers/base.go:101]: Error occurred in UserLogin: LDAP Result Code 10 "Referral": 0000202B: RefErr: DSID-0310084B, data 0, 1 access points
	ref 1: 'myldapdomain.com'

Looks like you either need to enable Referrals in the code, or expose the setting for users to modify.

ilsaloving avatar Jun 20 '24 21:06 ilsaloving

Could you check your LDAP server log to identify the issue?

MinerYang avatar Jun 24 '24 08:06 MinerYang

I just took a quick look and realized there was a typo in my Base DN. >_< After I corrected that, authentication worked.

ilsaloving avatar Jul 05 '24 14:07 ilsaloving