49 $this->tabs_gui = $ilTabs;
51 $this->lng->loadLanguageModule(
'registration');
52 $this->lng->loadLanguageModule(
'auth');
55 $this->ref_id = $a_auth_ref_id;
71 if(!$ilAccess->checkAccess(
'write',
'',$this->ref_id))
73 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_write'),$ilErr->WARNING);
76 $next_class = $this->ctrl->getNextClass($this);
77 $cmd = $this->ctrl->getCmd();
102 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
104 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.settings.html',
'Services/Radius');
107 $form->setFormAction($this->ctrl->getFormAction($this));
108 $form->setTitle($this->lng->txt(
'auth_radius_configure'));
114 $form->addItem($check);
116 $text =
new ilTextInputGUI($this->lng->txt(
'auth_radius_name'),
'name');
118 $text->setInfo($this->lng->txt(
'auth_radius_name_desc'));
119 $text->setValue($this->
settings->getName());
121 $text->setMaxLength(64);
122 $form->addItem($text);
124 $text =
new ilTextInputGUI($this->lng->txt(
'auth_radius_server'),
'servers');
126 $text->setInfo($this->lng->txt(
'auth_radius_server_desc'));
127 $text->setValue($this->
settings->getServersAsString());
129 $text->setMaxLength(255);
130 $form->addItem($text);
133 $text =
new ilTextInputGUI($this->lng->txt(
'auth_radius_port'),
'port');
135 $text->setValue($this->
settings->getPort());
137 $text->setMaxLength(5);
138 $form->addItem($text);
140 $text =
new ilTextInputGUI($this->lng->txt(
'auth_radius_shared_secret'),
'secret');
142 $text->setValue($this->
settings->getSecret());
144 $text->setMaxLength(32);
145 $form->addItem($text);
147 $encoding =
new ilSelectInputGUI($this->lng->txt(
'auth_radius_charset'),
'charset');
150 $encoding->setValue($this->
settings->getCharset());
151 $encoding->setInfo($this->lng->txt(
'auth_radius_charset_info'));
152 $form->addItem($encoding);
156 $check->
setInfo($this->lng->txt(
'auth_radius_sync_info'));
157 $check->setChecked($this->
settings->enabledCreation() ? 1 : 0);
161 $select =
new ilSelectInputGUI($this->lng->txt(
'auth_radius_role_select'),
'role');
163 $select->setValue($this->
settings->getDefaultRole());
164 $check->addSubItem($select);
167 $migr->
setInfo($this->lng->txt(
'auth_rad_migration_info'));
168 $migr->setChecked($this->
settings->isAccountMigrationEnabled() ? 1 : 0);
170 $check->addSubItem($migr);
171 $form->addItem($check);
175 $form->addCommandButton(
'save',$this->lng->txt(
'save'));
176 $form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
177 $this->tpl->setVariable(
'SETTINGS_TABLE',$form->getHTML());
188 $this->
settings->setActive((
int) $_POST[
'active']);
193 $this->
settings->setDefaultRole((
int) $_POST[
'role']);
194 $this->
settings->enableCreation((
int) $_POST[
'sync']);
195 $this->
settings->enableAccountMigration((
int) $_POST[
'migration']);
196 $this->
settings->setCharset((
int) $_POST[
'charset']);
198 if(!$this->
settings->validateRequired())
204 if(!$this->
settings->validatePort())
210 if(!$this->
settings->validateServers())
231 include_once(
'Services/Radius/classes/class.ilRadiusSettings.php');
239 global $rbacreview,$ilObjDataCache;
246 $select[0] = $this->lng->txt(
'links_select_one');
247 foreach($global_roles as $role_id)