Skip to content

[v13] Clean up LDAP error handling#26984

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

[v13] Clean up LDAP error handling#26984
zmb3 merged 1 commit intobranch/v13from
bot/backport-26875-branch/v13

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented May 26, 2023

Backport #26875 to branch/v13

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/v13 with commit 4c49117 May 26, 2023
@zmb3 zmb3 deleted the bot/backport-26875-branch/v13 branch May 26, 2023 21:35
@r0mant r0mant mentioned this pull request Jul 14, 2023
@fheinecke fheinecke mentioned this pull request Sep 26, 2023
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