| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 31 | public function getAuthenticatedAdLdap() |
||
| 32 | { |
||
| 33 | $token = $this->tokenStorage->getToken(); |
||
| 34 | if ($token instanceof FaultyToken) { |
||
| 35 | throw new WrongTokenException( |
||
| 36 | 'The token is not the right one. Did you forget to set "keep_password_in_token" to "true" in bundle configuration ?' |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | $adldap = $this->adldapService->getInstance(); |
||
| 40 | $adldap->authenticate($token->getUsername(), $token->getCredentials()); |
||
| 41 | } |
||
| 42 | |||
| 44 |