LdapTools\AttributeConverter\EncodeWindowsPassword::toLdap PHP Method

toLdap() public method

public toLdap ( $password )
    public function toLdap($password)
    {
        $this->validateConfiguration();
        if (!is_null($this->getLdapConnection())) {
            $password = LdapUtilities::encode($password, $this->getLdapConnection()->getConfig()->getEncoding());
        }
        return iconv("UTF-8", "UTF-16LE", '"' . $password . '"');
    }