Commit a9e38fb
committed
fix(crl): move ldap extension check from constructor to connect()
Throwing in the constructor of PhpLdapConnection crashed the DI container
on every request on servers that do not have the php-ldap extension installed,
even when no LDAP CRL URL was being checked.
Moving the guard to connect() keeps instantiation safe and lets the
existing RuntimeException catch-block in fetchFromLdap log a warning and
return null gracefully instead.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent a112b35 commit a9e38fb
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 20 | | |
27 | 21 | | |
28 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
| |||
0 commit comments