function authIMAPUser($domain, $host = "localhost", $port = 143, $ssl = false) { authUser::authUser($domain); $this->host = $host; $this->port = $port; $this->ssl = $ssl == 'true' || $ssl === true ? true : false; }
function authLDAP2307User($domain, $basedn = "", $host = "", $port = 0) { authUser::authUser($domain); $this->basedn = $basedn; $this->host = $host; $this->port = $port; $this->groups = array(); }
function authLDAPUser($domain, $basedn = "", $host = "", $port = 389) { authUser::authUser($domain); $this->basedn = $basedn; $this->host = $host; $this->port = $port; // try ldap v3 first $this->ldapver = 3; }
function authStaticUser($domain) { global $theUser; authUser::authUser($domain); /* $this->users = array(); $this->users['john'] = array( 'password'=>'doe', 'groups'=>array( 'archivmaster' )); */ $this->users = $theUser; }
function authStaticUser($domain) { global $db, $db_prefix; $sql = "SELECT a.userid, passwd FROM " . $db_prefix . "user_auth as a, " . $db_prefix . "user_passwd as p WHERE " . "a.userid = p.userid AND a.authtype = 'static' AND active > 0"; $rs = $db->Execute($sql); if (!$rs) { die("Error reading users from database\n<br>\n"); } while (!$rs->EOF) { $this->users[$rs->fields['userid']] = array('password' => $rs->fields['passwd'], 'groups' => array()); $rs->MoveNext(); } authUser::authUser($domain); }