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 . '"');
}