示例#1
0
 function setAuthSourceItem($value)
 {
     parent::setAuthSourceItem($value);
     $auth_data_array = $value->getAuthData();
     $this->_server = $auth_data_array['HOST'];
 }
示例#2
0
 function setAuthSourceItem($value)
 {
     parent::setAuthSourceItem($value);
     $auth_data_array = $value->getAuthData();
     $this->_server = $auth_data_array['HOST'];
     $this->_server_port = $auth_data_array['PORT'];
     $this->_baseuser = $auth_data_array['BASE'];
     if (!empty($auth_data_array['USER'])) {
         $this->_rootuser = $auth_data_array['USER'];
     }
     if (!empty($auth_data_array['PASSWORD'])) {
         $this->_rootuser_password = $auth_data_array['PASSWORD'];
     }
     if (!empty($auth_data_array['ENCRYPTION'])) {
         $this->_encryption = $auth_data_array['ENCRYPTION'];
     }
     if (!empty($auth_data_array['DBCOLUMNUSERID'])) {
         $this->_field_userid = $auth_data_array['DBCOLUMNUSERID'];
     }
     if (!empty($auth_data_array['DBSEARCHUSERID'])) {
         $this->_search_userid = $auth_data_array['DBSEARCHUSERID'];
     } elseif (!empty($this->_field_userid)) {
         $this->_search_userid = $this->_field_userid;
     }
     // additional server - BEGIN
     if (!empty($auth_data_array['additional_server'])) {
         $temp_array = array();
         $temp_array['host'] = $this->_server;
         $temp_array['port'] = $this->_server_port;
         $this->_server_all[] = $temp_array;
         unset($temp_array);
         $this->_server_all = array_merge($this->_server_all, $auth_data_array['additional_server']);
     }
     if (!empty($auth_data_array['select_server'])) {
         $this->_server_selected = $auth_data_array['select_server'];
         $this->_server_selected_save = $auth_data_array['select_server'];
     }
     if (!empty($this->_server_selected) and $this->_server_selected != $this->_server) {
         $this->_server = $this->_server_selected;
         $this->_server_port = $this->_getPort($this->_server_all, $this->_server_selected);
     }
     // additional server - END
 }
示例#3
0
 function setAuthSourceItem($value)
 {
     parent::setAuthSourceItem($value);
 }
示例#4
0
 /** set auth source item
  * this method set the auth source item with information to contact the CAS Server
  *
  * @param object item auth source item
  */
 public function setAuthSourceItem($item)
 {
     parent::setAuthSourceItem($item);
     $this->_host = $this->_auth_data_array['HOST'];
     $this->_path = $this->_auth_data_array['PATH'];
 }