getLdap ()->encryptPassword ($password); return $array; } public function genPasswordFields ($uid, $password) { return array ('userpassword' => $this->getLdap ()->encryptPassword ($password)); } } ?>