MDL-21577 fixed regression, thanks James Gheel for the patch
[moodle.git] / auth / ldap / config.html
CommitLineData
a4080313 1<?php
b9ddb2d5 2
b9ddb2d5 3 // set to defaults if undefined
139ebfdb 4 if (!isset($config->host_url))
b9ddb2d5 5 { $config->host_url = ''; }
139ebfdb 6 if (empty($config->ldapencoding))
7 { $config->ldapencoding = 'utf-8'; }
8 if (!isset($config->contexts))
b9ddb2d5 9 { $config->contexts = ''; }
139ebfdb 10 if (!isset($config->user_type))
11 { $config->user_type = 'default'; }
12 if (!isset($config->user_attribute))
b9ddb2d5 13 { $config->user_attribute = ''; }
139ebfdb 14 if (!isset($config->search_sub))
b9ddb2d5 15 { $config->search_sub = ''; }
139ebfdb 16 if (!isset($config->opt_deref))
17 { $config->opt_deref = LDAP_DEREF_NEVER; }
18 if (!isset($config->preventpassindb))
edb5da83 19 { $config->preventpassindb = 1; }
139ebfdb 20 if (!isset($config->bind_dn))
b9ddb2d5 21 {$config->bind_dn = ''; }
139ebfdb 22 if (!isset($config->bind_pw))
b9ddb2d5 23 {$config->bind_pw = ''; }
139ebfdb 24 if (!isset($config->version))
b9ddb2d5 25 {$config->version = '2'; }
139ebfdb 26 if (!isset($config->objectclass))
b9ddb2d5 27 {$config->objectclass = ''; }
139ebfdb 28 if (!isset($config->memberattribute))
b9ddb2d5 29 {$config->memberattribute = ''; }
cd874e21 30 if (!isset($config->memberattribute_isdn))
31 {$config->memberattribute_isdn = ''; }
139ebfdb 32 if (!isset($config->creators))
b9ddb2d5 33 {$config->creators = ''; }
139ebfdb 34 if (!isset($config->create_context))
b9ddb2d5 35 {$config->create_context = ''; }
139ebfdb 36 if (!isset($config->expiration))
b9ddb2d5 37 {$config->expiration = ''; }
139ebfdb 38 if (!isset($config->expiration_warning))
b9ddb2d5 39 {$config->expiration_warning = '10'; }
139ebfdb 40 if (!isset($config->expireattr))
b9ddb2d5 41 {$config->expireattr = ''; }
139ebfdb 42 if (!isset($config->gracelogins))
b9ddb2d5 43 {$config->gracelogins = ''; }
139ebfdb 44 if (!isset($config->graceattr))
b9ddb2d5 45 {$config->graceattr = ''; }
139ebfdb 46 if (!isset($config->auth_user_create))
522b9982 47 {$config->auth_user_create = ''; }
139ebfdb 48 if (!isset($config->forcechangepassword))
49 {$config->forcechangepassword = 0; }
b9ddb2d5 50 if (!isset($config->stdchangepassword))
139ebfdb 51 {$config->stdchangepassword = 0; }
5117d598 52 if (!isset($config->passtype))
344514fc 53 {$config->passtype = 'plaintext';}
b9ddb2d5 54 if (!isset($config->changepasswordurl))
55 {$config->changepasswordurl = ''; }
139ebfdb 56 if (!isset($config->removeuser))
6f87ef52 57 {$config->removeuser = AUTH_REMOVEUSER_KEEP; }
b95b46a8 58 if (!isset($config->ntlmsso_enabled))
59 {$config->ntlmsso_enabled = 0; }
60 if (!isset($config->ntlmsso_subnet))
61 {$config->ntlmsso_subnet = ''; }
16ceeb64 62 if (!isset($config->ntlmsso_ie_fastpath))
63 {$config->ntlmsso_ie_fastpath = 0; }
522b9982 64
65 $yesno = array( get_string('no'), get_string('yes') );
139ebfdb 66
b9ddb2d5 67if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
db636fd5 68 echo $OUTPUT->notification(get_string('auth_ldap_noextension','auth_ldap'));
d35757eb 69}
139ebfdb 70
50c4bd41 71?>
77a297d2 72<table cellspacing="0" cellpadding="5" border="0">
b9ddb2d5 73
d35757eb 74<tr>
75 <td colspan="2">
2b06294b 76 <h4><?php print_string('auth_ldap_server_settings', 'auth_ldap') ?> </h4>
d35757eb 77 </td>
78</tr>
79
f0fd3436 80<tr valign="top" class="required">
2b06294b 81 <td align="right"><label for="host_url"><?php print_string('auth_ldap_host_url_key','auth_ldap') ?></label></td>
8c9c0e85 82 <td>
139ebfdb 83 <input name="host_url" id="host_url" type="text" size="30" value="<?php echo $config->host_url?>" />
7f383c56 84 <?php if (isset($err['host_url'])) echo $OUTPUT->error_text($err['host_url']); ?>
8c9c0e85 85 </td>
86 <td>
2b06294b 87 <?php print_string('auth_ldap_host_url','auth_ldap') ?>
8c9c0e85 88 </td>
89</tr>
35a48c9a 90
f0fd3436 91<tr valign="top" class="required">
2b06294b 92 <td align="right"><label for="menuversion"><?php print_string('auth_ldap_version_key','auth_ldap') ?></label></td>
8c9c0e85 93 <td>
d8627a47 94 <?php
6508931b 95 $versions = array();
b9ddb2d5 96 $versions[2] = '2';
97 $versions[3] = '3';
d776d59e 98 echo html_writer::select($versions, 'version', $config->version, false);
7f383c56 99 if (isset($err['version'])) echo $OUTPUT->error_text($err['version']);
d8627a47 100 ?>
8c9c0e85 101 </td>
102 <td>
2b06294b 103 <?php print_string('auth_ldap_version','auth_ldap') ?>
139ebfdb 104 </td>
105</tr>
106
107<tr valign="top" class="required">
2b06294b 108 <td align="right"><label for="ldapencoding"><?php print_string("auth_ldap_ldap_encoding_key", "auth_ldap") ?></label></td>
139ebfdb 109 <td>
110 <input id="ldapencoding" name="ldapencoding" type="text" value="<?php echo $config->ldapencoding ?>" />
111 <?php
112
113 if (isset($err['ldapencoding'])) {
7f383c56 114 echo $OUTPUT->error_text($err['ldapencoding']);
139ebfdb 115 }
116
117 ?>
8c9c0e85 118 </td>
2b06294b 119 <td><?php print_string('auth_ldap_ldap_encoding', 'auth_ldap') ?></td>
8c9c0e85 120</tr>
d35757eb 121
122<tr>
123 <td colspan="2">
2b06294b 124 <h4><?php print_string('auth_ldap_bind_settings', 'auth_ldap') ?> </h4>
d35757eb 125 </td>
7ef0797d 126</tr>
d8627a47 127
f5686a58 128<tr valign="top" class="required">
2b06294b 129 <td align="right"><label for="menupreventpassindb"><?php print_string('auth_ldap_preventpassindb_key','auth_ldap') ?></label></td>
f5686a58 130 <td>
d776d59e 131 <?php echo html_writer::select($yesno, 'preventpassindb', $config->preventpassindb, false); ?>
f5686a58 132 </td><td>
2b06294b 133 <?php print_string('auth_ldap_preventpassindb','auth_ldap') ?>
f5686a58 134 </td>
135</tr>
136
f0fd3436 137<tr valign="top" class="required">
2b06294b 138 <td align="right"><label for="bind_dn"><?php print_string('auth_ldap_bind_dn_key','auth_ldap') ?></label></td>
8c9c0e85 139 <td>
139ebfdb 140 <input name="bind_dn" id="bind_dn" type="text" size="30" value="<?php echo $config->bind_dn?>" />
7f383c56 141 <?php if (isset($err['bind_dn'])) echo $OUTPUT->error_text($err['bind_dn']); ?>
8c9c0e85 142 </td><td>
2b06294b 143 <?php print_string('auth_ldap_bind_dn','auth_ldap') ?>
8c9c0e85 144 </td>
145</tr>
d35757eb 146
f0fd3436 147<tr valign="top" class="required">
2b06294b 148 <td align="right"><label for="bind_pw"><?php print_string('auth_ldap_bind_pw_key','auth_ldap') ?></label></td>
8c9c0e85 149 <td>
139ebfdb 150 <input name="bind_pw" id="bind_pw" type="password" size="30" value="<?php echo $config->bind_pw?>" />
7f383c56 151 <?php if (isset($err['bind_pw'])) echo $OUTPUT->error_text($err['bind_pw']); ?>
8c9c0e85 152 </td><td>
2b06294b 153 <?php print_string('auth_ldap_bind_pw','auth_ldap') ?>
8c9c0e85 154 </td>
155</tr>
d35757eb 156
d35757eb 157<tr>
158 <td colspan="2">
2b06294b 159 <h4><?php print_string('auth_ldap_user_settings', 'auth_ldap') ?> </h4>
d35757eb 160 </td>
7ef0797d 161</tr>
35a48c9a 162
f0fd3436 163<tr valign="top" class="required">
2b06294b 164 <td align="right"><label for="menuuser_type"><?php print_string('auth_ldap_user_type_key','auth_ldap') ?></label></td>
686650dd 165 <td>
d776d59e 166 <?php echo html_writer::select($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, false); ?>
7f383c56 167 <?php if (isset($err['user_type'])) echo $OUTPUT->error_text($err['user_type']); ?>
686650dd 168 </td>
169 <td>
2b06294b 170 <?php print_string('auth_ldap_user_type', 'auth_ldap') ?>
686650dd 171 </td>
172</tr>
173
f0fd3436 174<tr valign="top" class="required">
2b06294b 175 <td align="right"><label for="contexts"><?php print_string('auth_ldap_contexts_key','auth_ldap') ?></label></td>
686650dd 176 <td>
139ebfdb 177 <input name="contexts" id="contexts" type="text" size="30" value="<?php echo $config->contexts?>" />
7f383c56 178 <?php if (isset($err['contexts'])) echo $OUTPUT->error_text($err['contexts']); ?>
686650dd 179 </td>
180 <td>
2b06294b 181 <?php print_string('auth_ldap_contexts', 'auth_ldap') ?>
686650dd 182 </td>
183</tr>
184
f0fd3436 185<tr valign="top" class="required">
2b06294b 186 <td align="right"><label for="menusearch_sub"><?php print_string('auth_ldap_search_sub_key','auth_ldap') ?></label></td>
686650dd 187 <td>
baa50557 188 <?php echo html_writer::select($yesno, 'search_sub', $config->search_sub, false); ?>
686650dd 189 </td>
190 <td>
2b06294b 191 <?php print_string('auth_ldap_search_sub','auth_ldap') ?>
686650dd 192 </td>
193</tr>
139ebfdb 194
f0fd3436 195<tr valign="top" class="required">
2b06294b 196 <td align="right"><label for="menuopt_deref"><?php print_string('auth_ldap_opt_deref_key','auth_ldap') ?></label></td>
8021cc54 197 <td>
198 <?php
139ebfdb 199 $opt_deref = array();
31693d6f 200 $opt_deref[LDAP_DEREF_NEVER] = get_string('no');
201 $opt_deref[LDAP_DEREF_ALWAYS] = get_string('yes');
75a7a7e4 202 echo html_writer::select($opt_deref, 'opt_deref', $config->opt_deref, false);
7f383c56 203 if (isset($err['opt_deref'])) echo $OUTPUT->error_text($err['opt_deref']);
8021cc54 204 ?>
205 </td>
206 <td>
2b06294b 207 <?php print_string('auth_ldap_opt_deref','auth_ldap') ?>
8021cc54 208 </td>
209</tr>
210
686650dd 211
d35757eb 212
f0fd3436 213<tr valign="top" class="required">
2b06294b 214 <td align="right"><label for="user_attribute"><?php print_string('auth_ldap_user_attribute_key','auth_ldap') ?></label></td>
8c9c0e85 215 <td>
139ebfdb 216 <input name="user_attribute" id="user_attribute" type="text" size="30" value="<?php echo $config->user_attribute?>" />
7f383c56 217 <?php if (isset($err['user_attribute'])) echo $OUTPUT->error_text($err['user_attribute']); ?>
8c9c0e85 218 </td>
219 <td>
2b06294b 220 <?php print_string('auth_ldap_user_attribute','auth_ldap') ?>
8c9c0e85 221 </td>
222</tr>
d35757eb 223
f0fd3436 224<tr valign="top" class="required">
2b06294b 225 <td align="right"><label for="memberattribute"><?php print_string('auth_ldap_memberattribute_key','auth_ldap') ?></label></td>
8c9c0e85 226 <td>
139ebfdb 227 <input name="memberattribute" id="memberattribute" type="text" size="30" value="<?php echo $config->memberattribute?>" />
7f383c56 228 <?php if (isset($err['memberattribute'])) echo $OUTPUT->error_text($err['memberattribute']); ?>
8c9c0e85 229 </td><td>
2b06294b 230 <?php print_string('auth_ldap_memberattribute','auth_ldap') ?>
8c9c0e85 231 </td>
232</tr>
35a48c9a 233
cd874e21 234<tr valign="top" class="required">
2b06294b 235 <td align="right"><label for="memberattribute_isdn"><?php print_string('auth_ldap_memberattribute_isdn_key','auth_ldap') ?></label></td>
cd874e21 236 <td>
66fc70dd 237 <input name="memberattribute_isdn" id="memberattribute_isdn" type="text" size="30" value="<?php echo $config->memberattribute_isdn?>" />
7f383c56 238 <?php if (isset($err['memberattribute_isdn'])) echo $OUTPUT->error_text($err['memberattribute_isdn']); ?>
cd874e21 239 </td><td>
2b06294b 240 <?php print_string('auth_ldap_memberattribute_isdn','auth_ldap') ?>
cd874e21 241 </td>
242</tr>
243
f0fd3436 244<tr valign="top" class="required">
2b06294b 245 <td align="right"><label for="objectclass"><?php print_string('auth_ldap_objectclass_key','auth_ldap') ?></label></td>
8c9c0e85 246 <td>
139ebfdb 247 <input name="objectclass" id="objectclass" type="text" size="30" value="<?php echo $config->objectclass?>" />
7f383c56 248 <?php if (isset($err['objectclass'])) echo $OUTPUT->error_text($err['objectclass']); ?>
8c9c0e85 249 </td>
250 <td>
2b06294b 251 <?php print_string('auth_ldap_objectclass','auth_ldap') ?>
8c9c0e85 252 </td>
253</tr>
4b9c3375 254
8c9c0e85 255<tr>
256 <td colspan="2">
b9ddb2d5 257 <h4><?php print_string('forcechangepassword', 'auth') ?> </h4>
8c9c0e85 258 </td>
259</tr>
260
f0fd3436 261<tr valign="top" class="required">
139ebfdb 262 <td align="right" valign="top"><label for="menuforcechangepassword"><?php print_string('forcechangepassword', 'auth') ?></label></td>
8c9c0e85 263 <td>
d776d59e 264 <?php echo html_writer::select($yesno, 'forcechangepassword', $config->forcechangepassword, false); ?>
8c9c0e85 265 </td>
266 <td align="left" valign="top">
139ebfdb 267 <p><?php print_string('forcechangepasswordfirst_help', 'auth') ?></p>
8c9c0e85 268 </td>
269</tr>
270
f0fd3436 271<tr valign="top" class="required">
139ebfdb 272 <td align="right" valign="top"><label for="menustdchangepassword"><?php print_string('stdchangepassword', 'auth') ?></label></td>
8c9c0e85 273 <td>
d776d59e 274 <?php echo html_writer::select($yesno, 'stdchangepassword', $config->stdchangepassword, false); ?>
8c9c0e85 275 </td>
276 <td align="left" valign="top">
139ebfdb 277 <p><?php print_string('stdchangepassword_expl', 'auth') ?></p>
278 <p><?php print_string('stdchangepassword_explldap', 'auth') ?></p>
8c9c0e85 279 </td>
280</tr>
281
344514fc 282<tr valign="top" class="required">
2b06294b 283 <td align="right"><label for="menupasstype"><?php print_string('auth_ldap_passtype_key', 'auth_ldap') ?></label></td>
344514fc 284 <td>
285 <?php
286 $passtype = array();
287 $passtype['plaintext'] = get_string('plaintext', 'auth');
288 $passtype['md5'] = get_string('md5', 'auth');
289 $passtype['sha1'] = get_string('sha1', 'auth');
d776d59e 290 echo html_writer::select($passtype, 'passtype', $config->passtype, false);
344514fc 291
292 ?>
293 </td>
2b06294b 294 <td><?php print_string('auth_ldap_passtype', 'auth_ldap') ?></td>
344514fc 295</tr>
296
b9ddb2d5 297<tr valign="top">
2b06294b 298 <td align="right"><label for="changepasswordurl"><?php print_string('auth_ldap_changepasswordurl_key','auth_ldap') ?></label></td>
b9ddb2d5 299 <td>
139ebfdb 300 <input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
b9ddb2d5 301 <?php
302
303 if (isset($err['changepasswordurl'])) {
7f383c56 304 echo $OUTPUT->error_text($err['changepasswordurl']);
b9ddb2d5 305 }
306
307 ?>
308 </td>
309 <td><?php print_string('changepasswordhelp', 'auth') ?></td>
310</tr>
311
8c9c0e85 312<tr>
313 <td colspan="2">
2b06294b 314 <h4><?php print_string('auth_ldap_passwdexpire_settings', 'auth_ldap') ?> </h4>
8c9c0e85 315 </td>
316</tr>
317
f0fd3436 318<tr valign="top" class="required">
2b06294b 319 <td align="right"><label for="menuexpiration"><?php print_string('auth_ldap_expiration_key','auth_ldap') ?></label></td>
8c9c0e85 320 <td>
321 <?php
139ebfdb 322 $expiration = array();
b9ddb2d5 323 $expiration['0'] = 'no';
324 $expiration['1'] = 'LDAP';
d776d59e 325 echo html_writer::select($expiration, 'expiration', $config->expiration, false);
7f383c56 326 if (isset($err['expiration'])) echo $OUTPUT->error_text($err['expiration']);
8c9c0e85 327 ?>
328 </td>
329 <td>
2b06294b 330 <?php print_string('auth_ldap_expiration_desc','auth_ldap') ?>
8c9c0e85 331 </td>
332</tr>
333
d89430ab 334
f0fd3436 335<tr valign="top" class="required">
2b06294b 336 <td align="right"><label for="expiration_warning"><?php print_string('auth_ldap_expiration_warning_key','auth_ldap') ?></label></td>
d89430ab 337 <td>
139ebfdb 338 <input name="expiration_warning" id="expiration_warning" type="text" size="2" value="<?php echo $config->expiration_warning?>" />
7f383c56 339 <?php if (isset($err['expiration_warning'])) echo $OUTPUT->error_text($err['expiration_warning']);
d89430ab 340 ?>
341 </td>
342 <td>
2b06294b 343 <?php print_string('auth_ldap_expiration_warning_desc','auth_ldap') ?>
d89430ab 344 </td>
345</tr>
346
f0fd3436 347<tr valign="top" class="required">
2b06294b 348 <td align="right"><label for="expireattr"><?php print_string('auth_ldap_expireattr_key','auth_ldap') ?></label></td>
8c9c0e85 349 <td>
139ebfdb 350 <input name="expireattr" id="expireattr" type="text" size="30" value="<?php echo $config->expireattr?>" />
7f383c56 351 <?php if (isset($err['expireattr'])) echo $OUTPUT->error_text($err['expireattr']);
8c9c0e85 352 ?>
353 </td>
354 <td>
2b06294b 355 <?php print_string('auth_ldap_expireattr_desc','auth_ldap') ?>
8c9c0e85 356 </td>
357</tr>
358
f0fd3436 359<tr valign="top" class="required">
2b06294b 360 <td align="right"><label for="menugracelogins"><?php print_string('auth_ldap_gracelogins_key','auth_ldap') ?></label></td>
8c9c0e85 361 <td>
d776d59e 362 <?php echo html_writer::select($yesno, 'gracelogins', $config->gracelogins, false); ?>
8c9c0e85 363 </td>
364 <td>
2b06294b 365 <?php print_string('auth_ldap_gracelogins_desc','auth_ldap') ?>
8c9c0e85 366 </td>
367</tr>
368
f0fd3436 369<tr valign="top" class="required">
2b06294b 370 <td align="right"><label for="graceattr"><?php print_string('auth_ldap_gracelogin_key','auth_ldap') ?></label></td>
8c9c0e85 371 <td>
139ebfdb 372 <input name="graceattr" id="graceattr" type="text" size="30" value="<?php echo $config->graceattr?>" />
7f383c56 373 <?php if (isset($err['graceattr'])) echo $OUTPUT->error_text($err['graceattr']);
8c9c0e85 374 ?>
375 </td>
376 <td>
2b06294b 377 <?php print_string('auth_ldap_graceattr_desc','auth_ldap') ?>
8c9c0e85 378 </td>
379</tr>
380
381
382
d35757eb 383<tr>
384 <td colspan="2">
b9ddb2d5 385 <h4><?php print_string('auth_user_create', 'auth') ?> </h4>
d35757eb 386 </td>
7ef0797d 387</tr>
35a48c9a 388
b9ddb2d5 389<tr valign="top">
2b06294b 390 <td align="right"><label for="menuauth_user_create"><?php print_string('auth_ldap_auth_user_create_key','auth_ldap') ?></label></td>
b9ddb2d5 391 <td>
d776d59e 392 <?php echo html_writer::select($yesno, 'auth_user_create', $config->auth_user_create, false); ?>
b9ddb2d5 393 </td>
394 <td>
395 <?php print_string("auth_user_creation","auth"); ?>
396 </td>
397</tr>
398
f0fd3436 399<tr valign="top" class="required">
2b06294b 400 <td align="right"><label for="create_context"><?php print_string('auth_ldap_create_context_key','auth_ldap') ?></label></td>
8c9c0e85 401 <td>
139ebfdb 402 <input name="create_context" id="create_context" type="text" size="30" value="<?php echo $config->create_context?>" />
7f383c56 403 <?php if (isset($err['create_context'])) echo $OUTPUT->error_text($err['create_context']); ?>
8c9c0e85 404 </td><td>
2b06294b 405 <?php print_string('auth_ldap_create_context','auth_ldap') ?>
8c9c0e85 406 </td>
407</tr>
35a48c9a 408
35a48c9a 409
d35757eb 410<tr>
411 <td colspan="2">
b9ddb2d5 412 <h4><?php print_string('coursecreators') ?> </h4>
d35757eb 413 </td>
7ef0797d 414</tr>
1924074c 415
f0fd3436 416<tr valign="top" class="required">
2b06294b 417 <td align="right"><label for="creators"><?php print_string('auth_ldap_creators_key','auth_ldap') ?></label></td>
8c9c0e85 418 <td>
139ebfdb 419 <input name="creators" id="creators" type="text" size="30" value="<?php echo $config->creators?>" />
7f383c56 420 <?php if (isset($err['creators'])) echo $OUTPUT->error_text($err['creators']); ?>
8c9c0e85 421 </td><td>
2b06294b 422 <?php print_string('auth_ldap_creators','auth_ldap') ?>
8c9c0e85 423 </td>
424</tr>
425
139ebfdb 426<tr>
427 <td colspan="2">
428 <h4><?php print_string('auth_sync_script', 'auth') ?> </h4>
429 </td>
430</tr>
431
432<tr valign="top">
433 <td align="right"><label for="menuremoveuser"><?php print_string('auth_remove_user_key','auth') ?></label></td>
434 <td>
435 <?php
436 $deleteopt = array();
6f87ef52 437 $deleteopt[AUTH_REMOVEUSER_KEEP] = get_string('auth_remove_keep','auth');
438 $deleteopt[AUTH_REMOVEUSER_SUSPEND] = get_string('auth_remove_suspend','auth');
439 $deleteopt[AUTH_REMOVEUSER_FULLDELETE] = get_string('auth_remove_delete','auth');
d776d59e 440 echo html_writer::select($deleteopt, 'removeuser', $config->removeuser, false);
139ebfdb 441 ?>
442 </td>
443 <td>
444 <?php print_string('auth_remove_user','auth') ?>
445 </td>
446</tr>
447
b95b46a8 448<tr>
449 <td colspan="2">
2593c1c6 450 <h4><?php print_string('auth_ntlmsso', 'auth_ldap') ?> </h4>
b95b46a8 451 </td>
452</tr>
453
454<tr valign="top">
2b06294b 455 <td align="right"><label for="menuntlmsso_enabled"><?php print_string('auth_ntlmsso_enabled_key','auth_ldap') ?></label></td>
b95b46a8 456 <td>
457 <?php
d776d59e 458 echo html_writer::select($yesno, 'ntlmsso_enabled', $config->ntlmsso_enabled);
b95b46a8 459 ?>
460 </td>
461 <td>
2b06294b 462 <?php print_string('auth_ntlmsso_enabled','auth_ldap') ?>
b95b46a8 463 </td>
464</tr>
465<tr valign="top">
2b06294b 466 <td align="right"><label for="ntlmsso_subnet"><?php print_string('auth_ntlmsso_subnet_key','auth_ldap') ?></label></td>
6b87f638 467 <td><input name="ntlmsso_subnet" id="ntlmsso_subnet" type="text" size="30" value="<?php p($config->ntlmsso_subnet) ?>" />
b95b46a8 468 </td>
469 <td>
2b06294b 470 <?php print_string('auth_ntlmsso_subnet','auth_ldap') ?>
b95b46a8 471 </td>
472</tr>
16ceeb64 473<tr valign="top">
2b06294b 474 <td align="right"><label for="menuntlmsso_ie_fastpath"><?php print_string('auth_ntlmsso_ie_fastpath_key','auth_ldap') ?></label></td>
16ceeb64 475 <td>
476 <?php
d776d59e 477 echo html_writer::select($yesno, 'ntlmsso_ie_fastpath', $config->ntlmsso_ie_fastpath);
16ceeb64 478 ?>
479 </td>
480 <td>
2b06294b 481 <?php print_string('auth_ntlmsso_ie_fastpath','auth_ldap') ?>
16ceeb64 482 </td>
483</tr>
b95b46a8 484
139ebfdb 485<?php
8c9c0e85 486
2b06294b 487$help = get_string('auth_ldapextrafields','auth_ldap');
b9ddb2d5 488$help .= get_string('auth_updatelocal_expl','auth');
489$help .= get_string('auth_fieldlock_expl','auth');
490$help .= get_string('auth_updateremote_expl','auth');
a4080313 491$help .= '<hr />';
b9ddb2d5 492$help .= get_string('auth_updateremote_ldap','auth');
8c9c0e85 493
139ebfdb 494print_auth_lock_options('ldap', $user_fields, $help, true, true);
8c9c0e85 495
b9ddb2d5 496?>
8c9c0e85 497
b9ddb2d5 498</table>