harbor
harbor copied to clipboard
LDAP - unable to add the group
Harbor version - v2.5.1 Type of install - Helm on k8s cluster
After integrating the LDAP for authentication, everything works fine for the user but is unable to add LDAP group to the Harbor. Requesting any help will be much appreciated. I am getting two types of errors.
1.
2022-09-07T15:14:08Z [DEBUG] [/pkg/ldap/ldap.go:351]: Groupname: , groupDN: cn=XX,ou=security groups,ou=XX,ou=us,dc=XX,dc=XX,dc=com
2022-09-07T15:14:08Z [DEBUG] [/lib/http/error.go:59]: {"errors":[{"code":"BAD_REQUEST","message":"LDAP Group DN is not found: DN:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}]}
2
Sep 7 11:52:14 172.23.0.1 core[1342]: 2022-09-07T15:52:14Z [WARNING] [/core/api/usergroup.go:56]: failed to parse user group id, error: strconv.ParseInt: parsing "": invalid syntax
Sep 7 11:52:42 172.23.0.1 core[1342]: 2022-09-07T15:52:42Z [WARNING] [/core/api/usergroup.go:56]: failed to parse user group id, error: strconv.ParseInt: parsing "": invalid syntax
Sep 7 11:52:52 172.23.0.1 core[1342]: 2022-09-07T15:52:52Z [WARNING] [/core/api/usergroup.go:56]: failed to parse user group id, error: strconv.ParseInt: parsing "": invalid syntax
Sep 7 11:52:53 172.23.0.1 core[1342]: 2022-09-07T15:52:53Z [WARNING] [/core/api/usergroup.go:56]: failed to parse user group id, error: strconv.ParseInt: parsing "": invalid syntax
Sep 7 11:53:14 172.23.0.1 core[1342]: 2022-09-07T15:53:14Z [WARNING] [/core/api/usergroup.go:56]: failed to parse user group id, error: strconv.ParseInt: parsing "": invalid syntax
Thanks Senthil
I'm having the same issue with v2.5.1.
Could you paste the LDAP configuration details in harbor?
Please find attached.
@chlins - do you have any update?
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.
@chlins - do you have any update?
@senthil13 from what i can tell your LDAP Group Base DN is wrong you should make it the same as the LDAP Base DN and it will probably work
@stonezdj Please take a look, thanks!
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.
Excuse me, how to solve this problem
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.
This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.