_userPassword = @$this->userPassword; $this->userPassword = array(); return $ret; } function validate() { $this->cn[0] = trim($this->givenName[0] . ' ' . $this->sn[0]); $this->uidNumber[0] = 2000; $this->gidNumber[0] = 2000; $this->homeDirectory = "/home/courier/".$this->uid[0]; $this->mail[0] = $this->uid[0]; print_r($this); if (@$this->newPassword[0]) { //print_r($this->userPassword); $this->userPassword[0] = "{crypt}".crypt($this->newPassword[0]); } return parent::validate(); } function base($base=false) { if ($base !== false) { return $this->_base = $base; } $options = PEAR::getStaticProperty('LDAP_DataObject','options'); if (isset($options['base'])) { $this->_base = 'ou=People,'.$options['base']; } return $this->_base; } } ?>