Skip to content

[v12] Clean up LDAP error handling#26983

Merged
zmb3 merged 1 commit intobranch/v12from
bot/backport-26875-branch/v12
May 26, 2023
Merged

[v12] Clean up LDAP error handling#26983
zmb3 merged 1 commit intobranch/v12from
bot/backport-26875-branch/v12

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented May 26, 2023

Backport #26875 to branch/v12

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
Merged via the queue into branch/v12 with commit 4d8b7d7 May 26, 2023
@zmb3 zmb3 deleted the bot/backport-26875-branch/v12 branch May 26, 2023 21:35
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