/** * * Init method. It sets up the LDAP connection parameters * and instantiates required objects. * */ public function init() { //Instantiate the configuration object $this->objConfig = $this->getObject('dbsysconfig', 'sysconfig'); // User object $this->objUser = $this->getObject('user', 'security'); // The FMP object $this->objFMPro = $this->getObject('fmpro', 'filemakerpro'); // Have to call the parent to init the class properties for sessions parent::init('tbl_users'); }
/** * * Init method. It sets up the LDAP connection parameters * and instantiates required objects. * */ public function init() { //Instantiate the configuration object $this->objConfig = $this->getObject('dbsysconfig', 'sysconfig'); $this->objUser = $this->getObject('user', 'security'); //explode these, might be multiple values, separated by hash $this->ldapserver = explode("#", $this->objConfig->getValue('MOD_SECURITY_LDAPSERVER', 'security')); $this->ldapuservarname = explode("#", $this->objConfig->getValue('MOD_SECURITY_LDAPUSERVARNAME', 'security')); $this->ldapWhere = explode("#", $this->objConfig->getValue('MOD_SECURITY_LDAPWHERE', 'security')); $this->ldapPassword = explode("#", $this->objConfig->getValue('MOD_SECURITY_LDAPPASSWORD', 'security')); $this->ldapPort = explode("#", $this->objConfig->getValue('MOD_SECURITY_LDAPPORT', 'security')); $this->ldapusernamevar = explode("#", $this->objConfig->getValue('MOD_SECURITY_LDAPUSERNAMEVAR', 'security')); parent::init('tbl_users'); }
/** * * Init method. It sets up the LDAP connection parameters * and instantiates required objects. * */ public function init() { //Instantiate the configuration object $this->objConfig = $this->getObject('dbsysconfig', 'sysconfig'); $this->objUser = $this->getObject('user', 'security'); $this->ldapserver1 = $this->objConfig->getValue('MOD_SECURITY_LDAPSERVER', 'security'); $this->ldapserver = $this->ldapserver1; $this->ldapserver2 = $this->objConfig->getValue('MOD_SECURITY_LDAPSERVER_2', 'security'); $this->ldapuservarname = $this->objConfig->getValue('MOD_SECURITY_LDAPUSERVARNAME', 'security'); $this->ldapwhere = $this->objConfig->getValue('MOD_SECURITY_LDAPWHERE', 'security'); if (strlen($this->ldapserver) < 3) { $this->ldapserver = "192.102.9.68"; // hard-coded for now - will be changed later $this->ldapuservarname = 'generationqualifier'; $this->ldapWhere = "o=UWC"; } if (strlen($this->ldapserver2) < 3) { $this->ldapserver2 = $this->ldapserver; } // Have to call the parent to init the class properties for sessions parent::init('tbl_users'); }
/** * * Init method. It sets up a connection to the users database table * and instantiates required objects. * */ public function init() { parent::init('tbl_users'); }