ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjAuthSettingsGUI Class Reference

Class ilObjAuthSettingsGUI. More...

+ Inheritance diagram for ilObjAuthSettingsGUI:
+ Collaboration diagram for ilObjAuthSettingsGUI:

Public Member Functions

 ilObjAuthSettingsGUI ($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
 Constructor public.
 viewObject ()
 list childs of current object
 authSettingsObject ()
 display settings menu
 loginInfoObject ()
 displays login information of all installed languages
 cancelObject ()
 setAuthModeObject ()
 editSOAPObject ()
 Configure soap settings.
 testSoapAuthConnectionObject ()
 saveSOAPObject ()
 validates all input data, save them to database if correct and active chosen auth mode
 editScriptObject ()
 Configure Custom settings.
 saveScriptObject ()
 validates all input data, save them to database if correct and active chosen auth mode
 getAuthModeTitle ()
 get the title of auth mode
 updateAuthRolesObject ()
 updateAuthModeDeterminationObject ()
 update auth mode determination
 executeCommand ()
 Execute command.
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder
 getTabs (&$tabs_gui)
 get tabs public
 setSubTabs ($a_tab)
 set sub tabs
 apacheAuthSettingsObject ($form=false)
 saveApacheSettingsObject ()
 getApacheAuthSettingsForm ()
 addToExternalSettingsForm ($a_form_id)
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not)
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui
 getCreationMode ()
 get creation mode
 getHTML ()
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled
 cancelDeleteObject ()
 cancel deletion of object
 cancelObject ($in_rep=false)
 cancel action and go back to previous page public
 createObject ()
 create new object form
 cancelCreation ()
 cancel create action and go back to repository parent
 saveObject ()
 save object
 editObject ()
 edit object
 updateObject ()
 updates object entry in object_data
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g.
 isVisible ($a_ref_id, $a_type)
 deleteObject ($a_error=false)
 Display deletion confirmation screen.
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI.

Protected Member Functions

 initAuthModeDetermination ()
 init auth mode determinitation form
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 prepareOutput ()
 prepare output
 setTitleAndDescription ()
 called by prepare output
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu.
 insertHeaderAction ($a_list_gui)
 Insert header action into main template.
 addHeaderAction ()
 Add header action menu.
 redrawHeaderActionObject ()
 Ajax call: redraw action header only.
 showMountWebfolderIcon ()
 setTabs ()
 set admin tabs public
 setAdminTabs ()
 set admin tabs public
 setLocator ()
 set Locator
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded)
 omitLocator ($a_omit=true)
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded)
 initCreationForms ($a_new_type)
 Init creation froms.
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion)
 initCreateForm ($a_new_type)
 Init object creation form.
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types.
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates.
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen.
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position.
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook.
 initEditForm ()
 Init object edit form.
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form.
 getEditFormValues ()
 Get values for edit form.
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields.
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object.
 afterUpdate ()
 Post (successful) object update hook.
 initImportForm ($a_new_type)
 Init object import form.
 importFileObject ($parent_id=null)
 Import.
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook.
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g.
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g.
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu)
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl.
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste
 __showButton ($a_cmd, $a_text, $a_target= '')
 hitsperpageObject ()
__initTableGUI ()
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning.
 getCenterColumnHTML ()
 Get center column.
 getRightColumnHTML ()
 Display right column.
 setColumnSettings ($column_gui)
 May be overwritten in subclasses.
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error.
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission.
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files.
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting.

Private Member Functions

 validateApacheAuthAllowedDomains ($text)

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root.
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root.
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 $ilias
 $objDefinition
 $tpl
 $tree
 $lng
 $data
 $object
 $ref_id
 $obj_id
 $maxcount
 $formaction
 $return_location
 $target_frame
 $tab_target_script
 $actions
 $sub_objects
 $omit_locator = false
const CFORM_NEW = 1
const CFORM_IMPORT = 2
const CFORM_CLONE = 3

Detailed Description

Member Function Documentation

ilObjAuthSettingsGUI::addToExternalSettingsForm (   $a_form_id)
Parameters
string$a_form_id
Returns
array

Definition at line 1200 of file class.ilObjAuthSettingsGUI.php.

References ilAdministrationSettingsFormHandler\FORM_ACCESSIBILITY, and ilAdministrationSettingsFormHandler\VALUE_BOOL.

{
switch($a_form_id)
{
require_once 'Services/Captcha/classes/class.ilCaptchaUtil.php';
$fields = array(
'adm_captcha_anonymous_short' => array(ilCaptchaUtil::isActiveForLogin(), ilAdministrationSettingsFormHandler::VALUE_BOOL),
);
return array('authentication_settings' => array('authSettings', $fields));
}
}
ilObjAuthSettingsGUI::apacheAuthSettingsObject (   $form = false)

Definition at line 1029 of file class.ilObjAuthSettingsGUI.php.

References $path, ilObjectGUI\$tpl, and getApacheAuthSettingsForm().

Referenced by saveApacheSettingsObject().

{
global $ilDB, $tpl;
$this->tabs_gui->setTabActive("apache_auth_settings");
//$this->setSubTabs("authSettings");
//$this->tabs_gui->setSubTabActive("apache_auth_settings");
if (!$form)
{
$form = $this->getApacheAuthSettingsForm();
$settings = new ilSetting('apache_auth');
$settingsMap = $settings->getAll();
$path = ILIAS_DATA_DIR . '/' . CLIENT_ID . '/apache_auth_allowed_domains.txt';
if (file_exists($path) && is_readable($path)) {
$settingsMap['apache_auth_domains'] = file_get_contents($path);
}
$form->setValuesByArray($settingsMap);
}
$tpl->setVariable('ADM_CONTENT', $form->getHtml());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAuthSettingsGUI::authSettingsObject ( )

display settings menu

public

Definition at line 50 of file class.ilObjAuthSettingsGUI.php.

References $ilSetting, ilAuthUtils\_getActiveAuthModes(), ilLDAPServer\_getActiveServerList(), ilAuthUtils\_getAllAuthModes(), ilAuthUtils\_getAuthModeName(), ilObjUser\_getNumberOfUsersPerAuthMode(), ilObjRole\_lookupRegisterAllowed(), AUTH_APACHE, AUTH_CAS, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, initAuthModeDetermination(), and setSubTabs().

Referenced by updateAuthModeDeterminationObject(), and viewObject().

{
global $rbacsystem, $ilSetting;
if (!$rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
$this->tabs_gui->setTabActive('authentication_settings');
$this->setSubTabs('authSettings');
$this->tabs_gui->setSubTabActive("auth_settings");
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.auth_general.html",
"Services/Authentication");
$this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
$this->tpl->setVariable("TXT_AUTH_TITLE", $this->lng->txt("auth_select"));
$this->tpl->setVariable("TXT_AUTH_MODE", $this->lng->txt("auth_mode"));
$this->tpl->setVariable("TXT_AUTH_DEFAULT", $this->lng->txt("default"));
$this->tpl->setVariable("TXT_AUTH_ACTIVE", $this->lng->txt("active"));
$this->tpl->setVariable("TXT_AUTH_NUM_USERS", $this->lng->txt("num_users"));
$this->tpl->setVariable("TXT_LOCAL", $this->lng->txt("auth_local"));
$this->tpl->setVariable("TXT_LDAP", $this->lng->txt("auth_ldap"));
$this->tpl->setVariable("TXT_SHIB", $this->lng->txt("auth_shib"));
$this->tpl->setVariable("TXT_CAS", $this->lng->txt("auth_cas"));
$this->tpl->setVariable("TXT_RADIUS", $this->lng->txt("auth_radius"));
$this->tpl->setVariable("TXT_SCRIPT", $this->lng->txt("auth_script"));
$this->tpl->setVariable("TXT_APACHE", $this->lng->txt("auth_apache"));
foreach($auth_modes as $mode => $mode_name)
{
//echo "-".$ilSetting->get('auth_mode')."-".$mode."-";
if ($ilSetting->get('auth_mode') == $mode)
{
$this->tpl->setVariable("NUM_".strtoupper($mode_name),
((int) $auth_cnt[$mode_name] + $auth_cnt["default"])." (".$this->lng->txt("auth_per_default").
": ".$auth_cnt["default"].")");
}
else
{
$this->tpl->setVariable("NUM_".strtoupper($mode_name),
(int) $auth_cnt[$mode_name]);
}
}
$this->tpl->setVariable("TXT_CONFIGURE", $this->lng->txt("auth_configure"));
$this->tpl->setVariable("TXT_AUTH_REMARK", $this->lng->txt("auth_remark_non_local_auth"));
$this->tpl->setVariable("TXT_SUBMIT", $this->lng->txt("save"));
$this->tpl->setVariable("CMD_SUBMIT", "setAuthMode");
// local vars
$checked = "checked=\"checked\"";
$disabled = "disabled=\"disabled\"";
$style_disabled = "_disabled";
// icon handlers
$icon_ok = "<img src=\"".ilUtil::getImagePath("icon_ok.png")."\" alt=\"".$this->lng->txt("enabled")."\" title=\"".$this->lng->txt("enabled")."\" border=\"0\" vspace=\"0\"/>";
$icon_not_ok = "<img src=\"".ilUtil::getImagePath("icon_not_ok.png")."\" alt=\"".$this->lng->txt("disabled")."\" title=\"".$this->lng->txt("disabled")."\" border=\"0\" vspace=\"0\"/>";
$this->tpl->setVariable("AUTH_LOCAL_ACTIVE", $icon_ok);
include_once('Services/LDAP/classes/class.ilLDAPServer.php');
$this->tpl->setVariable('AUTH_LDAP_ACTIVE',count(ilLDAPServer::_getActiveServerList()) ? $icon_ok : $icon_not_ok);
#$this->tpl->setVariable("AUTH_LDAP_ACTIVE", $this->ilias->getSetting('ldap_active') ? $icon_ok : $icon_not_ok);
$this->tpl->setVariable("AUTH_RADIUS_ACTIVE", $this->ilias->getSetting('radius_active') ? $icon_ok : $icon_not_ok);
$this->tpl->setVariable("AUTH_SHIB_ACTIVE", $this->ilias->getSetting('shib_active') ? $icon_ok : $icon_not_ok);
$this->tpl->setVariable("AUTH_SCRIPT_ACTIVE", $this->ilias->getSetting('script_active') ? $icon_ok : $icon_not_ok);
$this->tpl->setVariable("AUTH_CAS_ACTIVE", $this->ilias->getSetting('cas_active') ? $icon_ok : $icon_not_ok);
$this->tpl->setVariable("AUTH_APACHE_ACTIVE", $this->ilias->getSetting('apache_active') ? $icon_ok : $icon_not_ok);
// alter style and disable buttons depending on current selection
switch ($this->ilias->getSetting('auth_mode'))
{
case AUTH_LOCAL: // default
$this->tpl->setVariable("CHK_LOCAL", $checked);
break;
case AUTH_LDAP: // LDAP
$this->tpl->setVariable("CHK_LDAP", $checked);
break;
case AUTH_SHIBBOLETH: // SHIB
$this->tpl->setVariable("CHK_SHIB", $checked);
break;
case AUTH_RADIUS: // RADIUS
$this->tpl->setVariable("CHK_RADIUS", $checked);
break;
case AUTH_CAS: // CAS
$this->tpl->setVariable("CHK_CAS", $checked);
break;
case AUTH_SCRIPT: // script
$this->tpl->setVariable("CHK_SCRIPT", $checked);
break;
case AUTH_APACHE: // apache
$this->tpl->setVariable("CHK_APACHE", $checked);
break;
}
// auth mode determinitation
{
$this->tpl->setVariable('TABLE_AUTH_DETERMINATION',$this->form->getHTML());
}
// roles table
$this->tpl->setVariable("FORMACTION_ROLES",
$this->ctrl->getFormAction($this));
$this->tpl->setVariable("TXT_AUTH_ROLES", $this->lng->txt("auth_active_roles"));
$this->tpl->setVariable("TXT_ROLE", $this->lng->txt("obj_role"));
$this->tpl->setVariable("TXT_ROLE_AUTH_MODE", $this->lng->txt("auth_role_auth_mode"));
$this->tpl->setVariable("CMD_SUBMIT_ROLES", "updateAuthRoles");
include_once("./Services/AccessControl/classes/class.ilObjRole.php");
// auth mode selection
include_once('./Services/Authentication/classes/class.ilAuthUtils.php');
$active_auth_modes = ilAuthUtils::_getActiveAuthModes();
foreach ($reg_roles as $role)
{
foreach ($active_auth_modes as $auth_name => $auth_key)
{
// do not list auth modes with external login screen
// even not default, because it can easily be set to
// a non-working auth mode
if ($auth_name == "default" || $auth_name == "cas"
|| $auth_name == "shibboleth" || $auth_name == 'ldap'
|| $auth_name == 'apache' || $auth_name == "ecs"
|| $auth_name == "openid")
{
continue;
}
$this->tpl->setCurrentBlock("auth_mode_selection");
if ($auth_name == 'default')
{
$name = $this->lng->txt('auth_'.$auth_name)." (".$this->lng->txt('auth_'.ilAuthUtils::_getAuthModeName($auth_key)).")";
}
else
{
$name = $this->lng->txt('auth_'.$auth_name);
}
$this->tpl->setVariable("AUTH_MODE_NAME", $name);
$this->tpl->setVariable("AUTH_MODE", $auth_name);
if ($role['auth_mode'] == $auth_name)
{
$this->tpl->setVariable("SELECTED_AUTH_MODE", "selected=\"selected\"");
}
$this->tpl->parseCurrentBlock();
} // END auth_mode selection
$this->tpl->setCurrentBlock("roles");
$this->tpl->setVariable("ROLE", $role['title']);
$this->tpl->setVariable("ROLE_ID", $role['id']);
$this->tpl->parseCurrentBlock();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAuthSettingsGUI::cancelObject ( )

Definition at line 260 of file class.ilObjAuthSettingsGUI.php.

{
$this->ctrl->redirect($this, "authSettings");
}
ilObjAuthSettingsGUI::editScriptObject ( )

Configure Custom settings.

public

Definition at line 571 of file class.ilObjAuthSettingsGUI.php.

References $_SESSION.

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
if ($_SESSION["error_post_vars"])
{
$this->tpl->setVariable("AUTH_SCRIPT_NAME", $_SESSION["error_post_vars"]["auth_script"]["name"]);
}
else
{
// set already saved data
$settings = $this->ilias->getAllSettings();
$this->tpl->setVariable("AUTH_SCRIPT_NAME", $settings["auth_script_name"]);
}
$this->tabs_gui->setTabActive('auth_script');
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.auth_script.html",
"Services/Authentication");
$this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
$this->tpl->setVariable("COLSPAN", 3);
$this->tpl->setVariable("TXT_AUTH_SCRIPT_TITLE", $this->lng->txt("auth_script_configure"));
$this->tpl->setVariable("TXT_OPTIONS", $this->lng->txt("options"));
$this->tpl->setVariable("TXT_AUTH_SCRIPT_NAME", $this->lng->txt("auth_script_name"));
$this->tpl->setVariable("TXT_REQUIRED_FLD", $this->lng->txt("required_field"));
$this->tpl->setVariable("TXT_CANCEL", $this->lng->txt("cancel"));
$this->tpl->setVariable("TXT_SUBMIT", $this->lng->txt("save"));
$this->tpl->setVariable("CMD_SUBMIT", "saveScript");
}
ilObjAuthSettingsGUI::editSOAPObject ( )

Configure soap settings.

public

Definition at line 334 of file class.ilObjAuthSettingsGUI.php.

References $_POST, $_SESSION, $https, $ilCtrl, $ilSetting, ilObjectGUI\$lng, $namespace, $ret, $server, and ilUtil\stripSlashes().

Referenced by testSoapAuthConnectionObject().

{
global $rbacsystem, $rbacreview, $ilSetting, $ilCtrl, $lng;
if (!$rbacsystem->checkAccess("read",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
$this->tabs_gui->setTabActive('auth_soap');
//set Template
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.auth_soap.html','Services/Authentication');
// compose role list
$role_list = $rbacreview->getRolesByFilter(2,$this->object->getId());
$roles = array();
foreach ($role_list as $role)
{
$roles[$role['obj_id']] = $role['title'];
}
//set property form gui
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$soap_config = new ilPropertyFormGUI();
$soap_config->setTitle($this->lng->txt("auth_soap_auth"));
$soap_config->setDescription($this->lng->txt("auth_soap_auth_desc"));
$soap_config->setFormAction($this->ctrl->getFormAction($this, "editSOAP"));
$soap_config->addCommandButton("saveSOAP", $this->lng->txt("save"));
$soap_config->addCommandButton("editSOAP", $this->lng->txt("cancel"));
//set activ
$active = new ilCheckboxInputGUI();
$active->setTitle($this->lng->txt("active"));
$active->setPostVar("soap[active]");
//set server
$server->setTitle($this->lng->txt("server"));
$server->setInfo($this->lng->txt("auth_soap_server_desc"));
$server->setPostVar("soap[server]");
$server->setSize(50);
$server->setMaxLength(256);
$server->setRequired(true);
//set port
$port = new ilTextInputGUI();
$port->setTitle($this->lng->txt("port"));
$port->setInfo($this->lng->txt("auth_soap_port_desc"));
$port->setPostVar("soap[port]");
$port->setSize(7);
$port->setMaxLength(5);
//set https
$https->setTitle($this->lng->txt("auth_soap_use_https"));
$https->setPostVar("soap[use_https]");
//set uri
$uri = new ilTextInputGUI();
$uri->setTitle($this->lng->txt("uri"));
$uri->setInfo($this->lng->txt("auth_soap_uri_desc"));
$uri->setPostVar("soap[uri]");
$uri->setSize(50);
$uri->setMaxLength(256);
//set namespace
$namespace->setTitle($this->lng->txt("auth_soap_namespace"));
$namespace->setInfo($this->lng->txt("auth_soap_namespace_desc"));
$namespace->setPostVar("soap[namespace]");
$namespace->setSize(50);
$namespace->setMaxLength(256);
//set dotnet
$dotnet = new ilCheckboxInputGUI();
$dotnet->setTitle($this->lng->txt("auth_soap_use_dotnet"));
$dotnet->setPostVar("soap[use_dotnet]");
//set create users
$createuser = new ilCheckboxInputGUI();
$createuser->setTitle($this->lng->txt("auth_create_users"));
$createuser->setInfo($this->lng->txt("auth_soap_create_users_desc"));
$createuser->setPostVar("soap[create_users]");
//set account mail
$sendmail = new ilCheckboxInputGUI();
$sendmail->setTitle($this->lng->txt("user_send_new_account_mail"));
$sendmail->setInfo($this->lng->txt("auth_new_account_mail_desc"));
$sendmail->setPostVar("soap[account_mail]");
//set user default role
$defaultrole = new ilSelectInputGUI();
$defaultrole->setTitle($this->lng->txt("auth_user_default_role"));
$defaultrole->setInfo($this->lng->txt("auth_soap_user_default_role_desc"));
$defaultrole->setPostVar("soap[user_default_role]");
$defaultrole->setOptions($roles);
//set allow local authentication
$allowlocal = new ilCheckboxInputGUI();
$allowlocal->setTitle($this->lng->txt("auth_allow_local"));
$allowlocal->setInfo($this->lng->txt("auth_soap_allow_local_desc"));
$allowlocal->setPostVar("soap[allow_local]");
// get all settings
$settings = $ilSetting->getAll();
// get values in error case
if ($_SESSION["error_post_vars"])
{
$active ->setChecked($_SESSION["error_post_vars"]["soap"]["active"]);
$server ->setValue($_SESSION["error_post_vars"]["soap"]["server"]);
$port ->setValue($_SESSION["error_post_vars"]["soap"]["port"]);
$https ->setChecked($_SESSION["error_post_vars"]["soap"]["use_https"]);
$uri ->setValue($_SESSION["error_post_vars"]["soap"]["uri"]);
$namespace ->setValue($_SESSION["error_post_vars"]["soap"]["namespace"]);
$dotnet ->setChecked($_SESSION["error_post_vars"]["soap"]["use_dotnet"]);
$createuser ->setChecked($_SESSION["error_post_vars"]["soap"]["create_users"]);
$allowlocal ->setChecked($_SESSION["error_post_vars"]["soap"]["allow_local"]);
$defaultrole->setValue($_SESSION["error_post_vars"]["soap"]["user_default_role"]);
$sendmail ->setChecked($_SESSION["error_post_vars"]["soap"]["account_mail"]);
}
else
{
$active ->setChecked($settings["soap_auth_active"]);
$server ->setValue($settings["soap_auth_server"]);
$port ->setValue($settings["soap_auth_port"]);
$https ->setChecked($settings["soap_auth_use_https"]);
$uri ->setValue($settings["soap_auth_uri"]);
$namespace ->setValue($settings["soap_auth_namespace"]);
$dotnet ->setChecked($settings["soap_auth_use_dotnet"]);
$createuser ->setChecked($settings["soap_auth_create_users"]);
$allowlocal ->setChecked($settings["soap_auth_allow_local"]);
$defaultrole->setValue($settings["soap_auth_user_default_role"]);
$sendmail ->setChecked($settings["soap_auth_account_mail"]);
}
if (!$defaultrole->getValue())
{
$defaultrole->setValue(4);
}
//add Items to property gui
$soap_config->addItem($active);
$soap_config->addItem($server);
$soap_config->addItem($port);
$soap_config->addItem($https);
$soap_config->addItem($uri);
$soap_config->addItem($namespace);
$soap_config->addItem($dotnet);
$soap_config->addItem($createuser);
$soap_config->addItem($sendmail);
$soap_config->addItem($defaultrole);
$soap_config->addItem($allowlocal);
$this->tpl->setVariable("CONFIG_FORM", $soap_config->getHTML());
// test form
$form = new ilPropertyFormGUI();
$form->setFormAction($ilCtrl->getFormAction($this));
$form->setTitle("Test Request");
$text_prop = new ilTextInputGUI("ext_uid", "ext_uid");
$form->addItem($text_prop);
$text_prop2 = new ilTextInputGUI("soap_pw", "soap_pw");
$form->addItem($text_prop2);
$cb = new ilCheckboxInputGUI("new_user", "new_user");
$form->addItem($cb);
$form->addCommandButton("testSoapAuthConnection",
"Send");
if ($ilCtrl->getCmd() == "testSoapAuthConnection")
{
include_once("./Services/SOAPAuth/classes/class.ilSOAPAuth.php");
$ret = "<br />".ilSOAPAuth::testConnection(
(boolean) $_POST["new_user"]
);
}
$this->tpl->setVariable("TEST_FORM", $form->getHTML().$ret);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAuthSettingsGUI::executeCommand ( )

Execute command.

Called from control class ilAccessHandler $ilAccess ilErrorHandling $ilErr

Returns
void

Reimplemented from ilObjectGUI.

Definition at line 831 of file class.ilObjAuthSettingsGUI.php.

References $cmd, $ilErr, $ret, ilObjectGUI\prepareOutput(), and setSubTabs().

{
global $ilAccess,$ilErr;
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
$this->prepareOutput();
if(!$ilAccess->checkAccess('read','',$this->object->getRefId()))
{
$ilErr->raiseError($this->lng->txt('msg_no_perm_read'),$ilErr->WARNING);
}
switch($next_class)
{
case 'ilregistrationsettingsgui':
include_once './Services/Registration/classes/class.ilRegistrationSettingsGUI.php';
// Enable tabs
$this->tabs_gui->setTabActive('registration_settings');
$registration_gui =& new ilRegistrationSettingsGUI();
$this->ctrl->forwardCommand($registration_gui);
break;
case 'ilpermissiongui':
// Enable tabs
$this->tabs_gui->setTabActive('perm_settings');
include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
$perm_gui =& new ilPermissionGUI($this);
$ret =& $this->ctrl->forwardCommand($perm_gui);
break;
case 'illdapsettingsgui':
// Enable Tabs
$this->tabs_gui->setTabActive('auth_ldap');
include_once './Services/LDAP/classes/class.ilLDAPSettingsGUI.php';
$ldap_settings_gui = new ilLDAPSettingsGUI($this->object->getRefId());
$this->ctrl->forwardCommand($ldap_settings_gui);
break;
case 'ilauthshibbolethsettingsgui':
$this->tabs_gui->setTabActive('auth_shib');
include_once('./Services/AuthShibboleth/classes/class.ilAuthShibbolethSettingsGUI.php');
$shib_settings_gui = new ilAuthShibbolethSettingsGUI($this->object->getRefId());
$this->ctrl->forwardCommand($shib_settings_gui);
break;
case 'ilcassettingsgui':
$this->tabs_gui->setTabActive('auth_cas');
include_once './Services/CAS/classes/class.ilCASSettingsGUI.php';
$cas_settings = new ilCASSettingsGUI($this->object->getRefId());
$this->ctrl->forwardCommand($cas_settings);
break;
case 'ilradiussettingsgui':
$this->tabs_gui->setTabActive('auth_radius');
include_once './Services/Radius/classes/class.ilRadiusSettingsGUI.php';
$radius_settings_gui = new ilRadiusSettingsGUI($this->object->getRefId());
$this->ctrl->forwardCommand($radius_settings_gui);
break;
case 'ilopenidsettingsgui':
$this->tabs_gui->setTabActive('auth_openid');
include_once './Services/OpenId/classes/class.ilOpenIdSettingsGUI.php';
$os = new ilOpenIdSettingsGUI($this->object->getRefId());
$this->ctrl->forwardCommand($os);
break;
case 'ilauthloginpageeditorgui':
$this->setSubTabs("authSettings");
$this->tabs_gui->setTabActive('authentication_settings');
$this->tabs_gui->setSubTabActive("auth_login_editor");
include_once './Services/Authentication/classes/class.ilAuthLoginPageEditorGUI.php';
$lpe = new ilAuthLoginPageEditorGUI($this->object->getRefId());
$this->ctrl->forwardCommand($lpe);
break;
default:
if(!$cmd)
{
$cmd = "authSettings";
}
$cmd .= "Object";
$this->$cmd();
break;
}
return true;
}

+ Here is the call graph for this function:

ilObjAuthSettingsGUI::getAdminTabs ( $tabs_gui)

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

Definition at line 934 of file class.ilObjAuthSettingsGUI.php.

References getTabs().

{
$this->getTabs($tabs_gui);
}

+ Here is the call graph for this function:

ilObjAuthSettingsGUI::getApacheAuthSettingsForm ( )

Definition at line 1101 of file class.ilObjAuthSettingsGUI.php.

References ilObject\_lookupTitle(), ilSubEnabledFormPropertyGUI\addSubItem(), ilRadioOption\setDisabled(), ilFormPropertyGUI\setInfo(), and ilFormPropertyGUI\setRequired().

Referenced by apacheAuthSettingsObject(), and saveApacheSettingsObject().

{
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this));
$form->setTitle($this->lng->txt('apache_settings'));
$chb_enabled = new ilCheckboxInputGUI($this->lng->txt('apache_enable_auth'), 'apache_enable_auth');
$form->addItem($chb_enabled);
$chb_local_create_account = new ilCheckboxInputGUI($this->lng->txt('apache_autocreate'), 'apache_local_autocreate');
$chb_enabled->addSubitem($chb_local_create_account);
global $rbacreview;
$roles = $rbacreview->getGlobalRolesArray();
$select = new ilSelectInputGUI($this->lng->txt('apache_default_role'), 'apache_default_role');
$roleOptions = array();
foreach($roles as $role) {
$roleOptions[$role['obj_id']] = ilObject::_lookupTitle($role['obj_id']);
}
$select->setOptions($roleOptions);
$select->setValue(4);
$chb_local_create_account->addSubitem($select);
$chb_local = new ilCheckboxInputGUI($this->lng->txt('apache_enable_local'), 'apache_enable_local');
$form->addItem($chb_local);
$chb_ldap = new ilCheckboxInputGUI($this->lng->txt('apache_enable_ldap'), 'apache_enable_ldap');
$chb_ldap->setInfo($this->lng->txt('apache_ldap_hint_ldap_must_be_configured'));
$form->addItem($chb_ldap);
$txt = new ilTextInputGUI($this->lng->txt('apache_auth_indicator_name'), 'apache_auth_indicator_name');
$txt->setRequired(true);
$form->addItem($txt);
$txt = new ilTextInputGUI($this->lng->txt('apache_auth_indicator_value'), 'apache_auth_indicator_value');
$txt->setRequired(true);
$form->addItem($txt);
$chb = new ilCheckboxInputGUI($this->lng->txt('apache_auth_enable_override_login'), 'apache_auth_enable_override_login_page');
$form->addItem($chb);
$txt = new ilTextInputGUI($this->lng->txt('apache_auth_target_override_login'), 'apache_auth_target_override_login_page');
$txt->setRequired(true);
$chb->addSubItem($txt);
$chb = new ilCheckboxInputGUI($this->lng->txt('apache_auth_authenticate_on_login_page'), 'apache_auth_authenticate_on_login_page');
$form->addItem($chb);
$sec = new ilFormSectionHeaderGUI();
$sec->setTitle($this->lng->txt('apache_auth_username_config'));
$form->addItem($sec);
$rag = new ilRadioGroupInputGUI($this->lng->txt('apache_auth_username_config_type'), 'apache_auth_username_config_type');
$form->addItem($rag);
$rao = new ilRadioOption($this->lng->txt('apache_auth_username_direct_mapping'), 1);
$rag->addOption($rao);
$txt = new ilTextInputGUI($this->lng->txt('apache_auth_username_direct_mapping_fieldname'), 'apache_auth_username_direct_mapping_fieldname');
//$txt->setRequired(true);
$rao->addSubItem($txt);
$rao = new ilRadioOption($this->lng->txt('apache_auth_username_extended_mapping'), 2);
$rao->setDisabled(true);
$rag->addOption($rao);
$rao = new ilRadioOption($this->lng->txt('apache_auth_username_by_function'), 3);
$rag->addOption($rao);
/* $txt = new ilTextInputGUI($this->lng->txt('apache_auth_username_by_function_functionname'), 'apache_auth_username_by_function_functionname');
$rao->addSubItem($txt);*/
$sec = new ilFormSectionHeaderGUI();
$sec->setTitle($this->lng->txt('apache_auth_security'));
$form->addItem($sec);
$txt = new ilTextAreaInputGUI($this->lng->txt('apache_auth_domains'), 'apache_auth_domains');
$txt->setInfo($this->lng->txt('apache_auth_domains_description'));
$form->addItem($txt);
$form->addCommandButton('saveApacheSettings',$this->lng->txt('save'));
$form->addCommandButton('cancel',$this->lng->txt('cancel'));
return $form;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAuthSettingsGUI::getAuthModeTitle ( )

get the title of auth mode

public

Returns
string language dependent title of auth mode

Definition at line 646 of file class.ilObjAuthSettingsGUI.php.

References AUTH_APACHE, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SCRIPT, and AUTH_SHIBBOLETH.

Referenced by saveScriptObject(), and setAuthModeObject().

{
switch ($this->ilias->getSetting("auth_mode"))
{
case AUTH_LOCAL:
return $this->lng->txt("auth_local");
break;
case AUTH_LDAP:
return $this->lng->txt("auth_ldap");
break;
return $this->lng->txt("auth_shib");
break;
return $this->lng->txt("auth_radius");
break;
return $this->lng->txt("auth_script");
break;
return $this->lng->txt("auth_apache");
break;
default:
return $this->lng->txt("unknown");
break;
}
}

+ Here is the caller graph for this function:

ilObjAuthSettingsGUI::getTabs ( $tabs_gui)

get tabs public

Parameters
objecttabs gui object

Reimplemented from ilObjectGUI.

Definition at line 944 of file class.ilObjAuthSettingsGUI.php.

Referenced by getAdminTabs().

{
global $rbacsystem;
$this->ctrl->setParameter($this,"ref_id",$this->object->getRefId());
if ($rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
{
$tabs_gui->addTarget("authentication_settings", $this->ctrl->getLinkTarget($this, "authSettings"),
"", "", "");
$tabs_gui->addTarget('registration_settings',
$this->ctrl->getLinkTargetByClass('ilregistrationsettingsgui','view'));
$tabs_gui->addTarget("auth_ldap", $this->ctrl->getLinkTargetByClass('illdapsettingsgui','serverList'),
"", "", "");
#$tabs_gui->addTarget("auth_ldap", $this->ctrl->getLinkTarget($this, "editLDAP"),
# "", "", "");
$tabs_gui->addTarget('auth_shib',$this->ctrl->getLinkTargetByClass('ilauthshibbolethsettingsgui','settings'));
$tabs_gui->addTarget(
'auth_cas',
$this->ctrl->getLinkTargetByClass('ilcassettingsgui','settings')
);
$tabs_gui->addTarget("auth_radius", $this->ctrl->getLinkTargetByClass('ilradiussettingsgui', "settings"),
"", "", "");
$tabs_gui->addTarget("auth_soap", $this->ctrl->getLinkTarget($this, "editSOAP"),
"", "", "");
$tabs_gui->addTarget(
'auth_openid',
$this->ctrl->getLinkTargetByClass('ilopenidsettingsgui','settings'),
'',
'',
''
);
$tabs_gui->addTarget("apache_auth_settings", $this->ctrl->getLinkTarget($this,'apacheAuthSettings'),
"", "", "");
}
if ($rbacsystem->checkAccess('edit_permission',$this->object->getRefId()))
{
$tabs_gui->addTarget("perm_settings",
$this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"),
array("perm","info","owner"), 'ilpermissiongui');
}
}

+ Here is the caller graph for this function:

ilObjAuthSettingsGUI::ilObjAuthSettingsGUI (   $a_data,
  $a_id,
  $a_call_by_reference,
  $a_prepare_output = true 
)

Constructor public.

Definition at line 25 of file class.ilObjAuthSettingsGUI.php.

References ilObjectGUI\ilObjectGUI().

{
$this->type = "auth";
$this->ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
$this->lng->loadLanguageModule('registration');
define('LDAP_DEFAULT_PORT',389);
define('RADIUS_DEFAULT_PORT',1812);
}

+ Here is the call graph for this function:

ilObjAuthSettingsGUI::initAuthModeDetermination ( )
protected

init auth mode determinitation form

protected

Definition at line 701 of file class.ilObjAuthSettingsGUI.php.

References ilAuthModeDetermination\_getInstance(), AUTH_APACHE, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SOAP, ilCaptchaUtil\checkFreetype(), ilAuthUtils\getAuthPlugins(), and ilFormPropertyGUI\setInfo().

Referenced by authSettingsObject().

{
if(is_object($this->form))
{
return true;
}
// Are there any authentication methods that support automatic determination ?
include_once('Services/Authentication/classes/class.ilAuthModeDetermination.php');
if($det->getCountActiveAuthModes() <= 1)
{
return false;
}
include_once('./Services/Form/classes/class.ilPropertyFormGUI.php');
$this->form = new ilPropertyFormGUI();
$this->form->setFormAction($this->ctrl->getFormAction($this));
$this->form->setTableWidth('100%');
$this->form->setTitle($this->lng->txt('auth_auth_settings'));
$this->form->addCommandButton('updateAuthModeDetermination',$this->lng->txt('save'));
require_once 'Services/Captcha/classes/class.ilCaptchaUtil.php';
$cap = new ilCheckboxInputGUI($this->lng->txt('adm_captcha_anonymous_short'), 'activate_captcha_anonym');
$cap->setInfo($this->lng->txt('adm_captcha_anonymous_auth'));
$cap->setValue(1);
{
$cap->setAlert(ilCaptchaUtil::getPreconditionsMessage());
}
$cap->setChecked(ilCaptchaUtil::isActiveForLogin());
$this->form->addItem($cap);
$header = new ilFormSectionHeaderGUI();
$header->setTitle($this->lng->txt('auth_auth_mode_determination'));
$this->form->addItem($header);
$kind = new ilRadioGroupInputGUI($this->lng->txt('auth_kind_determination'),'kind');
$kind->setInfo($this->lng->txt('auth_mode_determination_info'));
$kind->setValue($det->getKind());
$kind->setRequired(true);
$option_user = new ilRadioOption($this->lng->txt('auth_by_user'),0);
$kind->addOption($option_user);
$option_determination = new ilRadioOption($this->lng->txt('auth_automatic'),1);
include_once('Services/Authentication/classes/class.ilAuthUtils.php');
$auth_sequenced = $det->getAuthModeSequence();
$counter = 1;
foreach($auth_sequenced as $auth_mode)
{
switch($auth_mode)
{
case AUTH_LDAP:
$text = $this->lng->txt('auth_ldap');
break;
$text = $this->lng->txt('auth_radius');
break;
case AUTH_LOCAL:
$text = $this->lng->txt('auth_local');
break;
case AUTH_SOAP:
$text = $this->lng->txt('auth_soap');
break;
$text = $this->lng->txt('auth_apache');
break;
// begin-patch auth_plugin
default:
foreach(ilAuthUtils::getAuthPlugins() as $pl)
{
$option = $pl->getMultipleAuthModeOptions($auth_mode);
$text = $option[$auth_mode]['txt'];
}
break;
// end-patch auth_plugin
}
$pos = new ilTextInputGUI($text,'position['.$auth_mode.']');
$pos->setValue($counter++);
$pos->setSize(1);
$pos->setMaxLength(1);
$option_determination->addSubItem($pos);
}
$kind->addOption($option_determination);
$this->form->addItem($kind);
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAuthSettingsGUI::loginInfoObject ( )

displays login information of all installed languages

public

Author
Michael Jansen

Definition at line 234 of file class.ilObjAuthSettingsGUI.php.

References $ilSetting, ilObjectGUI\$lng, and setSubTabs().

{
global $rbacsystem, $lng,$ilSetting;
if (!$rbacsystem->checkAccess("visible,read", $this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
}
$this->tabs_gui->setTabActive("authentication_settings");
$this->setSubTabs("authSettings");
$this->tabs_gui->setSubTabActive("auth_login_editor");
$lng->loadLanguageModule("meta");
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.auth_login_messages.html",
"Services/Authentication");
$this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
$this->tpl->setVariable("TXT_HEADLINE", $this->lng->txt("login_information"));
$this->tpl->setVariable("TXT_DESCRIPTION", $this->lng->txt("login_information_desc"));
$this->tpl->setVariable("TXT_SUBMIT", $this->lng->txt("save"));
$this->initLoginForm();
$this->tpl->setVariable('LOGIN_INFO',$this->form->getHTML());
}

+ Here is the call graph for this function:

ilObjAuthSettingsGUI::saveApacheSettingsObject ( )

Definition at line 1053 of file class.ilObjAuthSettingsGUI.php.

References $ilCtrl, $ilSetting, apacheAuthSettingsObject(), AUTH_APACHE, AUTH_LOCAL, getApacheAuthSettingsForm(), ilUtil\sendSuccess(), and validateApacheAuthAllowedDomains().

{
global $ilCtrl;
$form = $this->getApacheAuthSettingsForm();
$form->setValuesByPost();
/*$items = $form->getItems();
foreach($items as $item)
$item->validate();*/
if ($form->checkInput())
{
$settings = new ilSetting('apache_auth');
$fields = array
(
'apache_auth_indicator_name', 'apache_auth_indicator_value',
'apache_enable_auth', 'apache_enable_local', 'apache_local_autocreate',
'apache_enable_ldap', 'apache_auth_username_config_type',
'apache_auth_username_direct_mapping_fieldname',
'apache_default_role', 'apache_auth_target_override_login_page',
'apache_auth_enable_override_login_page',
'apache_auth_authenticate_on_login_page'
// 'apache_auth_username_by_function_functionname',
);
foreach($fields as $field)
$settings->set($field, $form->getInput($field));
if ($form->getInput('apache_enable_auth'))
$this->ilias->setSetting('apache_active', true);
else {
$this->ilias->setSetting('apache_active', false);
global $ilSetting;
if ($ilSetting->get("auth_mode") == AUTH_APACHE) {
$ilSetting->set("auth_mode", AUTH_LOCAL);
}
}
$allowedDomains = $this->validateApacheAuthAllowedDomains($form->getInput('apache_auth_domains'));
file_put_contents(ILIAS_DATA_DIR . '/' . CLIENT_ID . '/apache_auth_allowed_domains.txt', $allowedDomains);
ilUtil::sendSuccess($this->lng->txt('apache_settings_changed_success'), true);
$this->ctrl->redirect($this, 'apacheAuthSettings');
}
else
{
$this->apacheAuthSettingsObject($form);
}
}

+ Here is the call graph for this function:

ilObjAuthSettingsGUI::saveScriptObject ( )

validates all input data, save them to database if correct and active chosen auth mode

public

Definition at line 614 of file class.ilObjAuthSettingsGUI.php.

References $_POST, AUTH_SCRIPT, getAuthModeTitle(), and ilUtil\sendSuccess().

{
// validate required data
if (!$_POST["auth_script"]["name"])
{
$this->ilias->raiseError($this->lng->txt("fill_out_all_required_fields"),$this->ilias->error_obj->MESSAGE);
}
// validate script url
/*
if (( TODO ,$_POST["ldap"]["server"])) == false)
{
$this->ilias->raiseError($this->lng->txt("err_invalid_server"),$this->ilias->error_obj->MESSAGE);
}*/
// TODO: check connection to server
// all ok. save settings and activate auth by external script
$this->ilias->setSetting("auth_script_name", $_POST["auth_script"]["name"]);
$this->ilias->setSetting("auth_mode", AUTH_SCRIPT);
ilUtil::sendSuccess($this->lng->txt("auth_mode_changed_to")." ".$this->getAuthModeTitle(),true);
$this->ctrl->redirect($this,'editScript');
}

+ Here is the call graph for this function:

ilObjAuthSettingsGUI::saveSOAPObject ( )

validates all input data, save them to database if correct and active chosen auth mode

public

Definition at line 529 of file class.ilObjAuthSettingsGUI.php.

References $_POST, $ilSetting, $ilUser, and ilUtil\sendSuccess().

{
global $ilUser, $ilSetting, $rbacsystem;
if (!$rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
// validate required data
if (!$_POST["soap"]["server"])
{
$this->ilias->raiseError($this->lng->txt("fill_out_all_required_fields"),$this->ilias->error_obj->MESSAGE);
}
// validate port
if ($_POST["soap"]["server"] != "" && (preg_match("/^[0-9]{0,5}$/",$_POST["soap"]["port"])) == false)
{
$this->ilias->raiseError($this->lng->txt("err_invalid_port"),$this->ilias->error_obj->MESSAGE);
}
$ilSetting->set("soap_auth_server", $_POST["soap"]["server"]);
$ilSetting->set("soap_auth_port", $_POST["soap"]["port"]);
$ilSetting->set("soap_auth_active", $_POST["soap"]["active"]);
$ilSetting->set("soap_auth_uri", $_POST["soap"]["uri"]);
$ilSetting->set("soap_auth_namespace", $_POST["soap"]["namespace"]);
$ilSetting->set("soap_auth_create_users", $_POST["soap"]["create_users"]);
$ilSetting->set("soap_auth_allow_local", $_POST["soap"]["allow_local"]);
$ilSetting->set("soap_auth_account_mail", $_POST["soap"]["account_mail"]);
$ilSetting->set("soap_auth_use_https", $_POST["soap"]["use_https"]);
$ilSetting->set("soap_auth_use_dotnet", $_POST["soap"]["use_dotnet"]);
$ilSetting->set("soap_auth_user_default_role", $_POST["soap"]["user_default_role"]);
ilUtil::sendSuccess($this->lng->txt("auth_soap_settings_saved"),true);
$this->ctrl->redirect($this,'editSOAP');
}

+ Here is the call graph for this function:

ilObjAuthSettingsGUI::setAuthModeObject ( )

Definition at line 265 of file class.ilObjAuthSettingsGUI.php.

References $_POST, $ilSetting, AUTH_LDAP, AUTH_RADIUS, AUTH_SCRIPT, getAuthModeTitle(), ilObjectGUI\getReturnLocation(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\sendSuccess().

{
global $rbacsystem,$ilSetting;
if (!$rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
if (empty($_POST["auth_mode"]))
{
$this->ilias->raiseError($this->lng->txt("auth_err_no_mode_selected"),$this->ilias->error_obj->MESSAGE);
}
if ($_POST["auth_mode"] == AUTH_DEFAULT)
{
ilUtil::sendInfo($this->lng->txt("auth_mode").": ".$this->getAuthModeTitle()." ".$this->lng->txt("auth_mode_not_changed"),true);
$this->ctrl->redirect($this,'authSettings');
}
switch ($_POST["auth_mode"])
{
case AUTH_LDAP:
/*
if ($this->object->checkAuthLDAP() !== true)
{
ilUtil::sendInfo($this->lng->txt("auth_ldap_not_configured"),true);
ilUtil::redirect($this->getReturnLocation("authSettings",$this->ctrl->getLinkTarget($this,"editLDAP", "", false, false)));
}
*/
break;
case AUTH_SHIB:
if ($this->object->checkAuthSHIB() !== true)
{
ilUtil::sendFailure($this->lng->txt("auth_shib_not_configured"),true);
ilUtil::redirect($this->getReturnLocation("authSettings",$this->ctrl->getLinkTarget($this,"editSHIB", "", false, false)));
}
break;
if ($this->object->checkAuthRADIUS() !== true)
{
ilUtil::sendFailure($this->lng->txt("auth_radius_not_configured"),true);
$this->ctrl->redirect($this,'editRADIUS');
}
break;
if ($this->object->checkAuthScript() !== true)
{
ilUtil::sendFailure($this->lng->txt("auth_script_not_configured"),true);
ilUtil::redirect($this->getReturnLocation("authSettings",$this->ctrl->getLinkTarget($this,"editScript", "", false, false)));
}
break;
}
$this->ilias->setSetting("auth_mode",$_POST["auth_mode"]);
ilUtil::sendSuccess($this->lng->txt("auth_default_mode_changed_to")." ".$this->getAuthModeTitle(),true);
$this->ctrl->redirect($this,'authSettings');
}

+ Here is the call graph for this function:

ilObjAuthSettingsGUI::setSubTabs (   $a_tab)

set sub tabs

Definition at line 1001 of file class.ilObjAuthSettingsGUI.php.

References $GLOBALS, and $ilUser.

Referenced by authSettingsObject(), executeCommand(), and loginInfoObject().

{
global $rbacsystem,$ilUser,$ilAccess;
$GLOBALS['lng']->loadLanguageModule('auth');
switch ($a_tab)
{
case 'authSettings':
if($ilAccess->checkAccess('write','',$this->object->getRefId()))
{
$this->tabs_gui->addSubTabTarget("auth_settings",
$this->ctrl->getLinkTarget($this,'authSettings'),
"");
}
if($ilAccess->checkAccess('write','',$this->object->getRefId()))
{
$this->tabs_gui->addSubTabTarget(
'auth_login_editor',
$this->ctrl->getLinkTargetByClass('ilauthloginpageeditorgui',''),
''
);
}
break;
}
}

+ Here is the caller graph for this function:

ilObjAuthSettingsGUI::testSoapAuthConnectionObject ( )

Definition at line 519 of file class.ilObjAuthSettingsGUI.php.

References editSOAPObject().

{
$this->editSOAPObject();
}

+ Here is the call graph for this function:

ilObjAuthSettingsGUI::updateAuthModeDeterminationObject ( )

update auth mode determination

public

Definition at line 800 of file class.ilObjAuthSettingsGUI.php.

References $_POST, ilAuthModeDetermination\_getInstance(), authSettingsObject(), and ilUtil\sendSuccess().

{
include_once('Services/Authentication/classes/class.ilAuthModeDetermination.php');
$det->setKind((int) $_POST['kind']);
$pos = $_POST['position'] ? $_POST['position'] : array();
asort($pos,SORT_NUMERIC);
$counter = 0;
foreach($pos as $auth_mode => $dummy)
{
$position[$counter++] = $auth_mode;
}
$det->setAuthModeSequence($position ? $position : array());
$det->save();
require_once 'Services/Captcha/classes/class.ilCaptchaUtil.php';
ilCaptchaUtil::setActiveForLogin((bool)$_POST['activate_captcha_anonym']);
ilUtil::sendSuccess($this->lng->txt('settings_saved'));
}

+ Here is the call graph for this function:

ilObjAuthSettingsGUI::updateAuthRolesObject ( )

Definition at line 680 of file class.ilObjAuthSettingsGUI.php.

References $_POST, ilObjRole\_updateAuthMode(), and ilUtil\sendSuccess().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
include_once('./Services/AccessControl/classes/class.ilObjRole.php');
ilUtil::sendSuccess($this->lng->txt("auth_mode_roles_changed"),true);
$this->ctrl->redirect($this,'authSettings');
}

+ Here is the call graph for this function:

ilObjAuthSettingsGUI::validateApacheAuthAllowedDomains (   $text)
private

Definition at line 1192 of file class.ilObjAuthSettingsGUI.php.

Referenced by saveApacheSettingsObject().

{
return join("\n", preg_split("/[\r\n]+/", $text));
}

+ Here is the caller graph for this function:

ilObjAuthSettingsGUI::viewObject ( )

list childs of current object

public

Reimplemented from ilObjectGUI.

Definition at line 39 of file class.ilObjAuthSettingsGUI.php.

References authSettingsObject().

{
return $this->authSettingsObject();
}

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: