src/LdapTools/Operation/Handler/AuthenticationOperationHandler.php
protected function switchCredentials(AuthenticationOperation $operation)
    {
        $this->connection->getConfig()->setUsername($operation->getUsername());
        $this->connection->getConfig()->setPassword($operation->getPassword());
    }
protected function switchCredentials(AuthenticationOperation $operation)
    {
        $this->connection->getConfig()->setUsername($operation->getUsername());
        $this->connection->getConfig()->setPassword($operation->getPassword());
    }
protected function switchCredentials ( AuthenticationOperation $ operation ) { $ this -> connection -> getConfig ( ) -> setUsername ( $ operation -> getUsername ( ) ) ; $ this -> connection -> getConfig ( ) -> setPassword ( $ operation -> getPassword ( ) ) ; }
If the operation requested that the credentials be switched, then update the credential information in the
connections config. Otherwise it will switch again on other auth-attempts or re-connects.

@param AuthenticationOperation $operation
If the operation requested that the credentials be switched then update the credential information in the connections config . Otherwise it will switch again on other auth - attempts or re - connects .