Skip to content

[v11] Clean up LDAP error handling#26982

Merged
zmb3 merged 1 commit intobranch/v11from
bot/backport-26875-branch/v11
May 27, 2023
Merged

[v11] Clean up LDAP error handling#26982
zmb3 merged 1 commit intobranch/v11from
bot/backport-26875-branch/v11

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented May 26, 2023

Backport #26875 to branch/v11

The following error often confuses users:

    *ldap.Error LDAP Result Code 1 "Operations Error": 000004DC: LdapErr: DSID-0C090ACD,
    comment: In order to perform this operation a successful bind must be completed on the connection.

Since Teleport always uses x509 certs to bind, this error indicates
that the Teleport-issued cert is not trusted (which is likely due to
Teleport's CA not being imported as a trusted root).

While fixing this, unify the LDAP error handling with a common
utility for converting between LDAP error codes and trace errors.
@zmb3 zmb3 added this pull request to the merge queue May 26, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks May 26, 2023
@zmb3 zmb3 added this pull request to the merge queue May 27, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks May 27, 2023
@zmb3 zmb3 added this pull request to the merge queue May 27, 2023
Merged via the queue into branch/v11 with commit b03cb22 May 27, 2023
@zmb3 zmb3 deleted the bot/backport-26875-branch/v11 branch May 27, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants