[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 3 // Set to defaults if undefined 4 if (!isset($config->host_url)) { 5 $config->host_url = ''; 6 } 7 if (!isset($config->start_tls)) { 8 $config->start_tls = false; 9 } 10 if (empty($config->ldapencoding)) { 11 $config->ldapencoding = 'utf-8'; 12 } 13 if (!isset($config->pagesize)) { 14 $config->pagesize = LDAP_DEFAULT_PAGESIZE; 15 } 16 if (!isset($config->contexts)) { 17 $config->contexts = ''; 18 } 19 if (!isset($config->user_type)) { 20 $config->user_type = 'default'; 21 } 22 if (!isset($config->user_attribute)) { 23 $config->user_attribute = ''; 24 } 25 if (!isset($config->search_sub)) { 26 $config->search_sub = ''; 27 } 28 if (!isset($config->opt_deref)) { 29 $config->opt_deref = LDAP_DEREF_NEVER; 30 } 31 if (!isset($config->preventpassindb)) { 32 $config->preventpassindb = 0; 33 } 34 if (!isset($config->bind_dn)) { 35 $config->bind_dn = ''; 36 } 37 if (!isset($config->bind_pw)) { 38 $config->bind_pw = ''; 39 } 40 if (!isset($config->ldap_version)) { 41 $config->ldap_version = '3'; 42 } 43 if (!isset($config->objectclass)) { 44 $config->objectclass = ''; 45 } 46 if (!isset($config->memberattribute)) { 47 $config->memberattribute = ''; 48 } 49 if (!isset($config->memberattribute_isdn)) { 50 $config->memberattribute_isdn = ''; 51 } 52 if (!isset($config->creators)) { 53 $config->creators = ''; 54 } 55 if (!isset($config->create_context)) { 56 $config->create_context = ''; 57 } 58 if (!isset($config->expiration)) { 59 $config->expiration = ''; 60 } 61 if (!isset($config->expiration_warning)) { 62 $config->expiration_warning = '10'; 63 } 64 if (!isset($config->expireattr)) { 65 $config->expireattr = ''; 66 } 67 if (!isset($config->gracelogins)) { 68 $config->gracelogins = ''; 69 } 70 if (!isset($config->graceattr)) { 71 $config->graceattr = ''; 72 } 73 if (!isset($config->auth_user_create)) { 74 $config->auth_user_create = ''; 75 } 76 if (!isset($config->forcechangepassword)) { 77 $config->forcechangepassword = 0; 78 } 79 if (!isset($config->stdchangepassword)) { 80 $config->stdchangepassword = 0; 81 } 82 if (!isset($config->passtype)) { 83 $config->passtype = 'plaintext'; 84 } 85 if (!isset($config->changepasswordurl)) { 86 $config->changepasswordurl = ''; 87 } 88 if (!isset($config->removeuser)) { 89 $config->removeuser = AUTH_REMOVEUSER_KEEP; 90 } 91 if (!isset($config->ntlmsso_enabled)) { 92 $config->ntlmsso_enabled = 0; 93 } 94 if (!isset($config->ntlmsso_subnet)) { 95 $config->ntlmsso_subnet = ''; 96 } 97 if (!isset($config->ntlmsso_ie_fastpath)) { 98 $config->ntlmsso_ie_fastpath = 0; 99 } 100 if (!isset($config->ntlmsso_type)) { 101 $config->ntlmsso_type = 'ntlm'; 102 } 103 if (!isset($config->ntlmsso_remoteuserformat)) { 104 $config->ntlmsso_remoteuserformat = ''; 105 } 106 107 $yesno = array(get_string('no'), get_string('yes')); 108 109 $fastpathoptions = array(AUTH_NTLM_FASTPATH_YESFORM => get_string('auth_ntlmsso_ie_fastpath_yesform', 'auth_ldap'), 110 AUTH_NTLM_FASTPATH_YESATTEMPT => get_string('auth_ntlmsso_ie_fastpath_yesattempt', 'auth_ldap'), 111 AUTH_NTLM_FASTPATH_ATTEMPT => get_string('auth_ntlmsso_ie_fastpath_attempt', 'auth_ldap')); 112 113 $disabled = ''; 114 if (!ldap_paged_results_supported($config->ldap_version)) { 115 $disabled = ' disabled="disabled"'; 116 echo $OUTPUT->notification(get_string('pagedresultsnotsupp', 'auth_ldap')); 117 } 118 119 ?> 120 <table cellspacing="0" cellpadding="5" border="0"> 121 <tr> 122 <td colspan="2"> 123 <h4><?php print_string('auth_ldap_server_settings', 'auth_ldap') ?></h4> 124 </td> 125 </tr> 126 <tr valign="top" class="required"> 127 <td align="right"> 128 <label for="host_url"><?php print_string('auth_ldap_host_url_key', 'auth_ldap') ?></label> 129 </td> 130 <td> 131 <input name="host_url" id="host_url" type="text" size="30" value="<?php echo $config->host_url?>" /> 132 <?php if (isset($err['host_url'])) { echo $OUTPUT->error_text($err['host_url']); } ?> 133 </td> 134 <td> 135 <?php print_string('auth_ldap_host_url', 'auth_ldap') ?> 136 </td> 137 </tr> 138 <tr valign="top" class="required"> 139 <td align="right"> 140 <label for="ldap_version"><?php print_string('auth_ldap_version_key', 'auth_ldap') ?></label> 141 </td> 142 <td> 143 <?php 144 $versions = array(); 145 $versions[2] = '2'; 146 $versions[3] = '3'; 147 echo html_writer::select($versions, 'ldap_version', $config->ldap_version, false); 148 if (isset($err['ldap_version'])) { echo $OUTPUT->error_text($err['ldap_version']); } 149 ?> 150 </td> 151 <td> 152 <?php print_string('auth_ldap_version', 'auth_ldap') ?> 153 </td> 154 </tr> 155 <tr valign="top"> 156 <td align="right"> 157 <label for="start_tls"><?php print_string('start_tls_key', 'auth_ldap') ?></label> 158 </td> 159 <td> 160 <?php echo html_writer::select($yesno, 'start_tls', $config->start_tls, false); ?> 161 </td> 162 <td> 163 <?php print_string('start_tls', 'auth_ldap') ?> 164 </td> 165 </tr> 166 <tr valign="top" class="required"> 167 <td align="right"> 168 <label for="ldapencoding"><?php print_string('auth_ldap_ldap_encoding_key', 'auth_ldap') ?></label> 169 </td> 170 <td> 171 <input id="ldapencoding" name="ldapencoding" type="text" value="<?php echo $config->ldapencoding ?>" /> 172 <?php if (isset($err['ldapencoding'])) { echo $OUTPUT->error_text($err['ldapencoding']); } ?> 173 </td> 174 <td> 175 <?php print_string('auth_ldap_ldap_encoding', 'auth_ldap') ?> 176 </td> 177 </tr> 178 <tr valign="top"> 179 <td align="right"> 180 <label for="pagesize"><?php print_string('pagesize_key', 'auth_ldap') ?></label> 181 </td> 182 <td> 183 <input id="pagesize" name="pagesize" type="text" value="<?php echo $config->pagesize ?>" <?php echo $disabled ?>/> 184 <?php 185 if (isset($err['pagesize'])) { echo $OUTPUT->error_text($err['pagesize']); } 186 if ($disabled) { 187 // Don't loose the page size value (disabled fields are not submitted!) 188 ?> 189 <input id="pagesize" name="pagesize" type="hidden" value="<?php echo $config->pagesize ?>" /> 190 <?php } ?> 191 192 </td> 193 <td> 194 <?php print_string('pagesize', 'auth_ldap') ?> 195 </td> 196 </tr> 197 <tr> 198 <td colspan="2"> 199 <h4><?php print_string('auth_ldap_bind_settings', 'auth_ldap') ?></h4> 200 </td> 201 </tr> 202 <tr valign="top" class="required"> 203 <td align="right"> 204 <label for="menupreventpassindb"><?php print_string('auth_ldap_preventpassindb_key', 'auth_ldap') ?></label> 205 </td> 206 <td> 207 <?php echo html_writer::select($yesno, 'preventpassindb', $config->preventpassindb, false); ?> 208 </td> 209 <td> 210 <?php print_string('auth_ldap_preventpassindb', 'auth_ldap') ?> 211 </td> 212 </tr> 213 <tr valign="top" class="required"> 214 <td align="right"> 215 <label for="bind_dn"><?php print_string('auth_ldap_bind_dn_key', 'auth_ldap') ?></label> 216 </td> 217 <td> 218 <input name="bind_dn" id="bind_dn" type="text" size="30" value="<?php echo $config->bind_dn?>" /> 219 <?php if (isset($err['bind_dn'])) { echo $OUTPUT->error_text($err['bind_dn']); } ?> 220 </td> 221 <td> 222 <?php print_string('auth_ldap_bind_dn', 'auth_ldap') ?> 223 </td> 224 </tr> 225 <tr valign="top" class="required"> 226 <td align="right"> 227 <label for="bind_pw"><?php print_string('auth_ldap_bind_pw_key', 'auth_ldap') ?></label> 228 </td> 229 <td> 230 <input name="bind_pw" id="bind_pw" type="password" size="30" value="<?php echo $config->bind_pw?>" autocomplete="off"/> 231 <?php if (isset($err['bind_pw'])) { echo $OUTPUT->error_text($err['bind_pw']); } ?> 232 </td> 233 <td> 234 <?php print_string('auth_ldap_bind_pw', 'auth_ldap') ?> 235 </td> 236 </tr> 237 <tr> 238 <td colspan="2"> 239 <h4><?php print_string('auth_ldap_user_settings', 'auth_ldap') ?></h4> 240 </td> 241 </tr> 242 <tr valign="top" class="required"> 243 <td align="right"> 244 <label for="menuuser_type"><?php print_string('auth_ldap_user_type_key', 'auth_ldap') ?></label> 245 </td> 246 <td> 247 <?php 248 echo html_writer::select(ldap_supported_usertypes(), 'user_type', $config->user_type, false); 249 if (isset($err['user_type'])) { echo $OUTPUT->error_text($err['user_type']); } 250 ?> 251 </td> 252 <td> 253 <?php print_string('auth_ldap_user_type', 'auth_ldap') ?> 254 </td> 255 </tr> 256 <tr valign="top" class="required"> 257 <td align="right"> 258 <label for="contexts"><?php print_string('auth_ldap_contexts_key', 'auth_ldap') ?></label> 259 </td> 260 <td> 261 <input name="contexts" id="contexts" type="text" size="30" value="<?php echo $config->contexts?>" /> 262 <?php if (isset($err['contexts'])) { echo $OUTPUT->error_text($err['contexts']); } ?> 263 </td> 264 <td> 265 <?php print_string('auth_ldap_contexts', 'auth_ldap') ?> 266 </td> 267 </tr> 268 <tr valign="top" class="required"> 269 <td align="right"> 270 <label for="menusearch_sub"><?php print_string('auth_ldap_search_sub_key', 'auth_ldap') ?></label> 271 </td> 272 <td> 273 <?php echo html_writer::select($yesno, 'search_sub', $config->search_sub, false); ?> 274 </td> 275 <td> 276 <?php print_string('auth_ldap_search_sub', 'auth_ldap') ?> 277 </td> 278 </tr> 279 <tr valign="top" class="required"> 280 <td align="right"> 281 <label for="menuopt_deref"><?php print_string('auth_ldap_opt_deref_key', 'auth_ldap') ?></label> 282 </td> 283 <td> 284 <?php 285 $opt_deref = array(); 286 $opt_deref[LDAP_DEREF_NEVER] = get_string('no'); 287 $opt_deref[LDAP_DEREF_ALWAYS] = get_string('yes'); 288 echo html_writer::select($opt_deref, 'opt_deref', $config->opt_deref, false); 289 if (isset($err['opt_deref'])) { echo $OUTPUT->error_text($err['opt_deref']); } 290 ?> 291 </td> 292 <td> 293 <?php print_string('auth_ldap_opt_deref', 'auth_ldap') ?> 294 </td> 295 </tr> 296 <tr valign="top" class="required"> 297 <td align="right"> 298 <label for="user_attribute"><?php print_string('auth_ldap_user_attribute_key', 'auth_ldap') ?></label> 299 </td> 300 <td> 301 <input name="user_attribute" id="user_attribute" type="text" size="30" value="<?php echo $config->user_attribute?>" /> 302 <?php if (isset($err['user_attribute'])) { echo $OUTPUT->error_text($err['user_attribute']); } ?> 303 </td> 304 <td> 305 <?php print_string('auth_ldap_user_attribute', 'auth_ldap') ?> 306 </td> 307 </tr> 308 <tr valign="top" class="required"> 309 <td align="right"> 310 <label for="memberattribute"><?php print_string('auth_ldap_memberattribute_key', 'auth_ldap') ?></label> 311 </td> 312 <td> 313 <input name="memberattribute" id="memberattribute" type="text" size="30" value="<?php echo $config->memberattribute?>" /> 314 <?php if (isset($err['memberattribute'])) { echo $OUTPUT->error_text($err['memberattribute']); } ?> 315 </td> 316 <td> 317 <?php print_string('auth_ldap_memberattribute', 'auth_ldap') ?> 318 </td> 319 </tr> 320 <tr valign="top" class="required"> 321 <td align="right"> 322 <label for="memberattribute_isdn"><?php print_string('auth_ldap_memberattribute_isdn_key', 'auth_ldap') ?></label> 323 </td> 324 <td> 325 <input name="memberattribute_isdn" id="memberattribute_isdn" type="text" size="30" value="<?php echo $config->memberattribute_isdn?>" /> 326 <?php if (isset($err['memberattribute_isdn'])) { echo $OUTPUT->error_text($err['memberattribute_isdn']); } ?> 327 </td> 328 <td> 329 <?php print_string('auth_ldap_memberattribute_isdn', 'auth_ldap') ?> 330 </td> 331 </tr> 332 <tr valign="top" class="required"> 333 <td align="right"> 334 <label for="objectclass"><?php print_string('auth_ldap_objectclass_key', 'auth_ldap') ?></label> 335 </td> 336 <td> 337 <input name="objectclass" id="objectclass" type="text" size="30" value="<?php echo $config->objectclass?>" /> 338 <?php if (isset($err['objectclass'])) { echo $OUTPUT->error_text($err['objectclass']); } ?> 339 </td> 340 <td> 341 <?php print_string('auth_ldap_objectclass', 'auth_ldap') ?> 342 </td> 343 </tr> 344 <tr> 345 <td colspan="2"> 346 <h4><?php print_string('forcechangepassword', 'auth') ?></h4> 347 </td> 348 </tr> 349 <tr valign="top" class="required"> 350 <td align="right" valign="top"> 351 <label for="menuforcechangepassword"><?php print_string('forcechangepassword', 'auth') ?></label> 352 </td> 353 <td> 354 <?php echo html_writer::select($yesno, 'forcechangepassword', $config->forcechangepassword, false); ?> 355 </td> 356 <td align="left" valign="top"> 357 <p><?php print_string('forcechangepasswordfirst_help', 'auth') ?></p> 358 </td> 359 </tr> 360 <tr valign="top" class="required"> 361 <td align="right" valign="top"> 362 <label for="menustdchangepassword"><?php print_string('stdchangepassword', 'auth') ?></label> 363 </td> 364 <td> 365 <?php echo html_writer::select($yesno, 'stdchangepassword', $config->stdchangepassword, false); ?> 366 </td> 367 <td align="left" valign="top"> 368 <p><?php print_string('stdchangepassword_expl', 'auth') ?></p> 369 <p><?php print_string('stdchangepassword_explldap', 'auth') ?></p> 370 </td> 371 </tr> 372 <tr valign="top" class="required"> 373 <td align="right"> 374 <label for="menupasstype"><?php print_string('auth_ldap_passtype_key', 'auth_ldap') ?></label> 375 </td> 376 <td> 377 <?php 378 $passtype = array(); 379 $passtype['plaintext'] = get_string('plaintext', 'auth'); 380 $passtype['md5'] = get_string('md5', 'auth'); 381 $passtype['sha1'] = get_string('sha1', 'auth'); 382 echo html_writer::select($passtype, 'passtype', $config->passtype, false); 383 ?> 384 </td> 385 <td> 386 <?php print_string('auth_ldap_passtype', 'auth_ldap') ?> 387 </td> 388 </tr> 389 <tr valign="top"> 390 <td align="right"> 391 <label for="changepasswordurl"><?php print_string('auth_ldap_changepasswordurl_key', 'auth_ldap') ?></label> 392 </td> 393 <td> 394 <input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" /> 395 <?php if (isset($err['changepasswordurl'])) { echo $OUTPUT->error_text($err['changepasswordurl']); } ?> 396 </td> 397 <td> 398 <?php print_string('changepasswordhelp', 'auth') ?> 399 </td> 400 </tr> 401 <tr> 402 <td colspan="2"> 403 <h4><?php print_string('auth_ldap_passwdexpire_settings', 'auth_ldap') ?></h4> 404 </td> 405 </tr> 406 <tr valign="top" class="required"> 407 <td align="right"> 408 <label for="menuexpiration"><?php print_string('auth_ldap_expiration_key', 'auth_ldap') ?></label> 409 </td> 410 <td> 411 <?php 412 $expiration = array(); 413 $expiration['0'] = 'no'; 414 $expiration['1'] = 'LDAP'; 415 echo html_writer::select($expiration, 'expiration', $config->expiration, false); 416 if (isset($err['expiration'])) { echo $OUTPUT->error_text($err['expiration']); } 417 ?> 418 </td> 419 <td> 420 <?php print_string('auth_ldap_expiration_desc', 'auth_ldap') ?> 421 </td> 422 </tr> 423 <tr valign="top" class="required"> 424 <td align="right"> 425 <label for="expiration_warning"><?php print_string('auth_ldap_expiration_warning_key', 'auth_ldap') ?></label> 426 </td> 427 <td> 428 <input name="expiration_warning" id="expiration_warning" type="text" size="2" value="<?php echo $config->expiration_warning?>" /> 429 <?php if (isset($err['expiration_warning'])) { echo $OUTPUT->error_text($err['expiration_warning']); } ?> 430 </td> 431 <td> 432 <?php print_string('auth_ldap_expiration_warning_desc', 'auth_ldap') ?> 433 </td> 434 </tr> 435 <tr valign="top" class="required"> 436 <td align="right"> 437 <label for="expireattr"><?php print_string('auth_ldap_expireattr_key', 'auth_ldap') ?></label> 438 </td> 439 <td> 440 <input name="expireattr" id="expireattr" type="text" size="30" value="<?php echo $config->expireattr?>" /> 441 <?php if (isset($err['expireattr'])) { echo $OUTPUT->error_text($err['expireattr']); } ?> 442 </td> 443 <td> 444 <?php print_string('auth_ldap_expireattr_desc', 'auth_ldap') ?> 445 </td> 446 </tr> 447 <tr valign="top" class="required"> 448 <td align="right"> 449 <label for="menugracelogins"><?php print_string('auth_ldap_gracelogins_key', 'auth_ldap') ?></label> 450 </td> 451 <td> 452 <?php echo html_writer::select($yesno, 'gracelogins', $config->gracelogins, false); ?> 453 </td> 454 <td> 455 <?php print_string('auth_ldap_gracelogins_desc', 'auth_ldap') ?> 456 </td> 457 </tr> 458 <tr valign="top" class="required"> 459 <td align="right"> 460 <label for="graceattr"><?php print_string('auth_ldap_gracelogin_key', 'auth_ldap') ?></label> 461 </td> 462 <td> 463 <input name="graceattr" id="graceattr" type="text" size="30" value="<?php echo $config->graceattr?>" /> 464 <?php if (isset($err['graceattr'])) { echo $OUTPUT->error_text($err['graceattr']); } ?> 465 </td> 466 <td> 467 <?php print_string('auth_ldap_graceattr_desc', 'auth_ldap') ?> 468 </td> 469 </tr> 470 <tr> 471 <td colspan="2"> 472 <h4><?php print_string('auth_user_create', 'auth') ?></h4> 473 </td> 474 </tr> 475 <tr valign="top"> 476 <td align="right"> 477 <label for="menuauth_user_create"><?php print_string('auth_ldap_auth_user_create_key', 'auth_ldap') ?></label> 478 </td> 479 <td> 480 <?php echo html_writer::select($yesno, 'auth_user_create', $config->auth_user_create, false); ?> 481 </td> 482 <td> 483 <?php print_string('auth_user_creation', 'auth'); ?> 484 </td> 485 </tr> 486 <tr valign="top" class="required"> 487 <td align="right"> 488 <label for="create_context"><?php print_string('auth_ldap_create_context_key', 'auth_ldap') ?></label> 489 </td> 490 <td> 491 <input name="create_context" id="create_context" type="text" size="30" value="<?php echo $config->create_context?>" /> 492 <?php if (isset($err['create_context'])) { echo $OUTPUT->error_text($err['create_context']); } ?> 493 </td> 494 <td> 495 <?php print_string('auth_ldap_create_context', 'auth_ldap') ?> 496 </td> 497 </tr> 498 <tr> 499 <td colspan="2"> 500 <h4><?php print_string('coursecreators') ?></h4> 501 </td> 502 </tr> 503 <tr valign="top" class="required"> 504 <td align="right"> 505 <label for="creators"><?php print_string('auth_ldap_creators_key', 'auth_ldap') ?></label> 506 </td> 507 <td> 508 <input name="creators" id="creators" type="text" size="30" value="<?php echo $config->creators?>" /> 509 <?php if (isset($err['creators'])) { echo $OUTPUT->error_text($err['creators']); } ?> 510 </td> 511 <td> 512 <?php print_string('auth_ldap_creators', 'auth_ldap') ?> 513 </td> 514 </tr> 515 <tr> 516 <td colspan="2"> 517 <h4><?php print_string('auth_sync_script', 'auth') ?></h4> 518 </td> 519 </tr> 520 <tr valign="top"> 521 <td align="right"> 522 <label for="menuremoveuser"><?php print_string('auth_remove_user_key', 'auth') ?></label> 523 </td> 524 <td> 525 <?php 526 $deleteopt = array(); 527 $deleteopt[AUTH_REMOVEUSER_KEEP] = get_string('auth_remove_keep', 'auth'); 528 $deleteopt[AUTH_REMOVEUSER_SUSPEND] = get_string('auth_remove_suspend', 'auth'); 529 $deleteopt[AUTH_REMOVEUSER_FULLDELETE] = get_string('auth_remove_delete', 'auth'); 530 echo html_writer::select($deleteopt, 'removeuser', $config->removeuser, false); 531 ?> 532 </td> 533 <td> 534 <?php print_string('auth_remove_user', 'auth') ?> 535 </td> 536 </tr> 537 <tr> 538 <td colspan="2"> 539 <h4><?php print_string('auth_ntlmsso', 'auth_ldap') ?></h4> 540 </td> 541 </tr> 542 <tr valign="top"> 543 <td align="right"> 544 <label for="menuntlmsso_enabled"><?php print_string('auth_ntlmsso_enabled_key', 'auth_ldap') ?></label> 545 </td> 546 <td> 547 <?php echo html_writer::select($yesno, 'ntlmsso_enabled', $config->ntlmsso_enabled, false); ?> 548 </td> 549 <td> 550 <?php print_string('auth_ntlmsso_enabled', 'auth_ldap') ?> 551 </td> 552 </tr> 553 <tr valign="top"> 554 <td align="right"> 555 <label for="ntlmsso_subnet"><?php print_string('auth_ntlmsso_subnet_key', 'auth_ldap') ?></label> 556 </td> 557 <td> 558 <input name="ntlmsso_subnet" id="ntlmsso_subnet" type="text" size="30" value="<?php p($config->ntlmsso_subnet) ?>" /> 559 </td> 560 <td> 561 <?php print_string('auth_ntlmsso_subnet', 'auth_ldap') ?> 562 </td> 563 </tr> 564 <tr valign="top"> 565 <td align="right"> 566 <label for="menuntlmsso_ie_fastpath"><?php print_string('auth_ntlmsso_ie_fastpath_key', 'auth_ldap') ?></label> 567 </td> 568 <td> 569 <?php echo html_writer::select($fastpathoptions, 'ntlmsso_ie_fastpath', $config->ntlmsso_ie_fastpath, false); ?> 570 </td> 571 <td> 572 <?php print_string('auth_ntlmsso_ie_fastpath', 'auth_ldap') ?> 573 </td> 574 </tr> 575 <tr valign="top"> 576 <td align="right"> 577 <label for="menuntlmsso_type"><?php print_string('auth_ntlmsso_type_key', 'auth_ldap')?></label> 578 </td> 579 <td> 580 <?php 581 $types = array(); 582 $types['ntlm'] = 'NTLM'; 583 $types['kerberos'] = 'Kerberos'; 584 echo html_writer::select($types, 'ntlmsso_type', $config->ntlmsso_type, false); 585 ?> 586 </td> 587 <td> 588 <?php print_string('auth_ntlmsso_type','auth_ldap') ?> 589 </td> 590 </tr> 591 <tr valign="top"> 592 <td align="right"> 593 <label for="ntlmsso_remoteuserformat"><?php print_string('auth_ntlmsso_remoteuserformat_key', 'auth_ldap') ?></label> 594 </td> 595 <td> 596 <input name="ntlmsso_remoteuserformat" id="ntlmsso_remoteuserformat" type="text" size="30" value="<?php echo $config->ntlmsso_remoteuserformat?>" /> 597 <?php if (isset($err['ntlmsso_remoteuserformat'])) { echo $OUTPUT->error_text($err['ntlmsso_remoteuserformat']); } ?> 598 </td> 599 <td> 600 <?php print_string('auth_ntlmsso_remoteuserformat', 'auth_ldap') ?> 601 </td> 602 </tr> 603 <?php 604 $help = get_string('auth_ldapextrafields', 'auth_ldap'); 605 $help .= get_string('auth_updatelocal_expl', 'auth'); 606 $help .= get_string('auth_fieldlock_expl', 'auth'); 607 $help .= get_string('auth_updateremote_expl', 'auth'); 608 $help .= '<hr />'; 609 $help .= get_string('auth_updateremote_ldap', 'auth'); 610 611 print_auth_lock_options($this->authtype, $user_fields, $help, true, true, $this->get_custom_user_profile_fields()); 612 ?> 613 </table>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |