89 $this->
lng->loadLanguageModule(
'auth');
92 $form->setFormAction($this->
ctrl->getFormAction($this));
94 $form->setTitle($this->
lng->txt(
'auth_cas_auth'));
96 $drop_in_replacements_url =
'https://github.com/ILIAS-eLearning/ILIAS/tree/trunk/components/ILIAS/HTTP#dropinreplacements';
97 $drop_in_replacements_link = $this->factory->link()->standard(
98 $this->
lng->txt(
"auth_cas_auth_desc"),
99 $drop_in_replacements_url
101 $form->setDescription($this->renderer->render(
102 $drop_in_replacements_link
112 $text->setValue($this->
getSettings()->getServer());
113 $text->setRequired(
true);
114 $text->setInfo($this->
lng->txt(
'auth_cas_server_desc'));
116 $text->setMaxLength(255);
117 $form->addItem($text);
121 $port->setRequired(
true);
122 $port->setMinValue(0);
123 $port->setMaxValue(65535);
125 $port->setMaxLength(5);
126 $port->setInfo($this->
lng->txt(
'auth_cas_port_desc'));
127 $form->addItem($port);
131 $text->setRequired(
true);
132 $text->setInfo($this->
lng->txt(
'auth_cas_uri_desc'));
134 $text->setMaxLength(255);
135 $form->addItem($text);
143 $form->addItem($sync);
147 $this->
lng->txt(
'disabled'),
148 (string) self::SYNC_DISABLED,
151 $sync->addOption($dis);
155 $this->
lng->txt(
'auth_sync_cas'),
156 (string) self::SYNC_CAS,
159 $rad->setInfo($this->
lng->txt(
'auth_sync_cas_info'));
160 $sync->addOption($rad);
164 $select->setValue($this->
getSettings()->getDefaultRole());
165 $rad->addSubItem($select);
171 if (count($server_ids)) {
173 $this->
lng->txt(
'auth_css_ldap'),
177 $ldap->setInfo($this->
lng->txt(
'auth_cas_ldap_info'));
178 $sync->addOption($ldap);
180 $ldap_server_select =
new ilSelectInputGUI($this->
lng->txt(
'auth_ldap_server_ds'),
'ldap_sid');
181 $options[0] = $this->
lng->txt(
'select_one');
182 foreach ($server_ids as $ldap_sid) {
184 $options[$ldap_sid] = $ldap_server->getName();
187 $ldap_server_select->setRequired(
true);
189 $ldap_server_select->setValue($ds);
191 $ldap->addSubItem($ldap_server_select);
206 $instruction->setRows(6);
207 $instruction->setValue($this->
getSettings()->getLoginInstruction());
208 $form->addItem($instruction);
211 $create->
setInfo($this->
lng->txt(
'auth_cas_allow_local_desc'));
212 $create->setChecked($this->
getSettings()->isLocalAuthenticationEnabled());
213 $create->setValue(
"1");
214 $form->addItem($create);
216 if ($this->rbacSystem->checkAccess(
'write', $this->ref_id)) {
217 $form->addCommandButton(
'save', $this->
lng->txt(
'save'));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getDataSource(int $a_auth_mode)
static getAvailableDataSources(int $a_auth_mode)
static isDataSourceActive(int $a_auth_mode)
Check if a data source is active for a specific auth mode.
This class represents a text area property in a property form.