8000 bug #28853 [LDAP] Add TIMEOUT Option to LDAP Connection Options (lmat… · symfony/symfony@d799f2b · GitHub
[go: up one dir, main page]

Skip to content

Commit d799f2b

Browse files
bug #28853 [LDAP] Add TIMEOUT Option to LDAP Connection Options (lmatte7)
This PR was submitted for the master branch but it was squashed and merged into the 4.2 branch instead (closes #28853). Discussion ---------- [LDAP] Add TIMEOUT Option to LDAP Connection Options | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? |no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This PR adds a TIMEOUT (Full name `LDAP_OPT_TIMEOUT`) option to the `ConnectionOptions.php` class in the LDAP Component. This option is not documented in the PHP Docs for the LDAP component but is required to set a timeout for certain server configurations. One use case for this option is if the LDAP server has a whitelist the client is not approved to access. Commits ------- 2d88b89 [LDAP] Add TIMEOUT Option to LDAP Connection Options
2 parents afb4244 + 2d88b89 commit d799f2b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Symfony/Component/Ldap/Adapter/ExtLdap/ConnectionOptions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ final class ConnectionOptions
3838
const ERROR_STRING = 0x32;
3939
const MATCHED_DN = 0x33;
4040
const DEBUG_LEVEL = 0x5001;
41+
const TIMEOUT = 0x5002;
4142
const NETWORK_TIMEOUT = 0x5005;
4243
const X_SASL_MECH = 0x6100;
4344
const X_SASL_REALM = 0x6101;

src/Symfony/Component/Ldap/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
-----
66

77
* added `EntryManager::applyOperations`
8+
* Added timeout option to `ConnectionOptions`
89

910
4.1.0
1011
-----

0 commit comments

Comments
 (0)
0