src/LdapTools/Connection/BindUserStrategy.php
public function getUsername($username)
    {
        if ($this->isValidUserDn($username)) {
            return $username;
        }
        $replacements = [
            $username,
            $this->config->getDomainName(),
        ];

        return preg_replace($this->params, $replacements, $this->bindFormat);
    }
public function getUsername($username)
    {
        if ($this->isValidUserDn($username)) {
            return $username;
        }
        $replacements = [
            $username,
            $this->config->getDomainName(),
        ];

        return preg_replace($this->params, $replacements, $this->bindFormat);
    }
public function getUsername ( $ username ) { if ( $ this -> isValidUserDn ( $ username ) ) { return $ username ; } $ replacements = [ $ username , $ this -> config -> getDomainName ( ) , ] ; return preg_replace ( $ this -> params , $ replacements , $ this -> bindFormat ) ; }
Determine the format to use for a bind username going to LDAP.

@param string $username
@return string
Determine the format to use for a bind username going to LDAP .