Skip to content

Conversation

@johannes85
Copy link
Contributor

Q A
Branch? 6.4
Bug fix? no
New feature? no
Deprecations? no
License MIT

To be conistent with db46f3b, also add the LDAP error number to the exception in this case.

This is especially useful to perform a reconnect for long running php processes without doing something like this: if(str_contains($ex->getMessage(), 'LDAP error was [-1]')) {
Or to check for a [32] No such object error.

@carsonbot carsonbot added this to the 6.4 milestone Nov 8, 2023
@derrabus derrabus added the Ldap label Nov 8, 2023
@carsonbot carsonbot changed the title Set exception code to ldap error number [Ldap] Set exception code to ldap error number Nov 8, 2023
@nicolas-grekas
Copy link
Member

Thank you @johannes85.

@nicolas-grekas nicolas-grekas merged commit f04ea7c into symfony:6.4 Nov 9, 2023
@johannes85 johannes85 deleted the patch-2 branch November 9, 2023 10:34
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.

4 participants