Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changes to configuration interface

  • Loading branch information...
commit d89430abdfd5877f8d61f247d272e077f83101e2 1 parent e7d3e86
authored September 27, 2004
178  auth/ldap/config.html
@@ -13,6 +13,7 @@
13 13
     optional_variable($config->ldap_creators,             "");
14 14
     optional_variable($config->ldap_create_context,     "");
15 15
     optional_variable($config->ldap_expiration,         "");
  16
+    optional_variable($config->ldap_expiration_warning,         "10");
16 17
     optional_variable($config->ldap_expireattr,         "");
17 18
     optional_variable($config->ldap_gracelogins,         "");
18 19
     optional_variable($config->ldap_graceattr,         "");
@@ -20,14 +21,14 @@
20 21
     optional_variable($config->auth_user_create,         "");
21 22
     optional_variable($config->auth_ldap_forcepasswordchange,         "");
22 23
     
23  
-    optional_variable($config->auth_user_firstname_updatelocal,     "");
24  
-    optional_variable($config->auth_user_firstname_editlock,        "");  
  24
+    optional_variable($config->auth_user_firstname_updatelocal,     "1");
  25
+    optional_variable($config->auth_user_firstname_editlock,        "1");  
25 26
     optional_variable($config->auth_user_firstname_updateremote,    "");                    
26  
-    optional_variable($config->auth_user_lastname_updatelocal,         "");
27  
-    optional_variable($config->auth_user_lastname_editlock,         "");  
  27
+    optional_variable($config->auth_user_lastname_updatelocal,         "1");
  28
+    optional_variable($config->auth_user_lastname_editlock,         "1");  
28 29
     optional_variable($config->auth_user_lastname_updateremote,     "");  
29  
-    optional_variable($config->auth_user_email_updatelocal,         "");
30  
-    optional_variable($config->auth_user_email_editlock,             "");  
  30
+    optional_variable($config->auth_user_email_updatelocal,         "1");
  31
+    optional_variable($config->auth_user_email_editlock,             "1");  
31 32
     optional_variable($config->auth_user_email_updateremote,         ""); 
32 33
     optional_variable($config->auth_user_phone1_updatelocal,         "");
33 34
     optional_variable($config->auth_user_phone1_editlock,             "");  
@@ -207,9 +208,9 @@
207 208
     <td>
208 209
  
209 210
     <select name="auth_ldap_forcechangepassword">
210  
-        <option value="0" <?php echo ($config->auth_ldap_forcechangepassword ? '' : 'selectED="yes"') ?> >
  211
+        <option value="0" <?php echo ($config->auth_ldap_forcechangepassword ? '' : 'selected="yes"') ?> >
211 212
             <?php  print_string("no")  ?></option>
212  
-        <option value="1" <?php echo ($config->auth_ldap_forcechangepassword ? 'selectED="yes"' : '') ?> >
  213
+        <option value="1" <?php echo ($config->auth_ldap_forcechangepassword ? 'selected="yes"' : '') ?> >
213 214
             <?php  print_string("yes") ?></option>
214 215
     </select><br>
215 216
  
@@ -224,9 +225,9 @@
224 225
     <td>
225 226
  
226 227
     <select name="auth_ldap_stdchangepassword">
227  
-        <option value="0" <?php echo ($config->auth_ldap_stdchangepassword ? '' : 'selectED="yes"') ?> >
  228
+        <option value="0" <?php echo ($config->auth_ldap_stdchangepassword ? '' : 'selected="yes"') ?> >
228 229
             <?php  print_string("no")  ?></option>
229  
-        <option value="1" <?php echo ($config->auth_ldap_stdchangepassword ? 'selectED="yes"' : '') ?> >
  230
+        <option value="1" <?php echo ($config->auth_ldap_stdchangepassword ? 'selected="yes"' : '') ?> >
230 231
             <?php  print_string("yes") ?></option>
231 232
     </select><br>
232 233
 
@@ -259,6 +260,19 @@
259 260
     </td>
260 261
 </tr>
261 262
 
  263
+
  264
+<tr valign="top" bgcolor="<?php echo $THEME->cellheading2 ?>">
  265
+    <td align="right"><P>ldap_expiration_warning:</td>
  266
+    <td>
  267
+    <input name="ldap_expiration_warning" type="text" size="2" value="<?php echo $config->ldap_expiration_warning?>">
  268
+    <?php   if (isset($err["ldap_expiration_warning"])) formerr($err["ldap_expiration_warning"]); 
  269
+    ?>
  270
+    </td>
  271
+    <td>
  272
+    <?php  print_string("auth_ldap_expiration_warning_desc","auth") ?>
  273
+    </td>
  274
+</tr>
  275
+
262 276
 <tr valign="top" bgcolor="<?php echo $THEME->cellheading2 ?>">
263 277
     <td align="right"><P>ldap_exprireattr:</td>
264 278
     <td>
@@ -349,23 +363,23 @@
349 363
     <div align="right">
350 364
     <?php  print_string("auth_updatelocal", "auth") ?>
351 365
     <select name="auth_user_firstname_updatelocal">
352  
-        <option value="0" <?php echo ($config->auth_user_firstname_updatelocal ? '' : 'selectED="yes"') ?> >
  366
+        <option value="0" <?php echo ($config->auth_user_firstname_updatelocal ? '' : 'selected="yes"') ?> >
353 367
             <?php  print_string("no")  ?></option>
354  
-        <option value="1" <?php echo ($config->auth_user_firstname_updatelocal ? 'selectED="yes"' : '') ?> >
  368
+        <option value="1" <?php echo ($config->auth_user_firstname_updatelocal ? 'selected="yes"' : '') ?> >
355 369
             <?php  print_string("yes") ?></option>
356 370
     </select><br>
357 371
     <?php  print_string("auth_editlock", "auth") ?>
358 372
     <select name="auth_user_firstname_editlock">
359  
-        <option value="0" <?php echo ($config->auth_user_firstname_editlock ? '' : 'selectED="yes"') ?> >
  373
+        <option value="0" <?php echo ($config->auth_user_firstname_editlock ? '' : 'selected="yes"') ?> >
360 374
             <?php  print_string("no")  ?></option>
361  
-        <option value="1" <?php echo ($config->auth_user_firstname_editlock ? 'selectED="yes"' : '') ?> >
  375
+        <option value="1" <?php echo ($config->auth_user_firstname_editlock ? 'selected="yes"' : '') ?> >
362 376
             <?php  print_string("yes") ?></option>
363 377
     </select><br>    
364 378
     <?php  print_string("auth_updateremote", "auth") ?>
365 379
     <select name="auth_user_firstname_updateremote">
366  
-        <option value="0" <?php echo ($config->auth_user_firstname_updateremote ? '' : 'selectED="yes"') ?> >
  380
+        <option value="0" <?php echo ($config->auth_user_firstname_updateremote ? '' : 'selected="yes"') ?> >
367 381
             <?php  print_string("no")  ?></option>
368  
-        <option value="1" <?php echo ($config->auth_user_firstname_updateremote ? 'selectED="yes"' : '') ?> >
  382
+        <option value="1" <?php echo ($config->auth_user_firstname_updateremote ? 'selected="yes"' : '') ?> >
369 383
             <?php  print_string("yes") ?></option>
370 384
     </select><br>    
371 385
     </div>
@@ -387,23 +401,23 @@
387 401
     <div align="right">
388 402
     <?php  print_string("auth_updatelocal", "auth") ?>
389 403
     <select name="auth_user_lastname_updatelocal">
390  
-        <option value="0" <?php echo ($config->auth_user_lastname_updatelocal ? '' : 'selectED="yes"') ?> >
  404
+        <option value="0" <?php echo ($config->auth_user_lastname_updatelocal ? '' : 'selected="yes"') ?> >
391 405
             <?php  print_string("no")  ?></option>
392  
-        <option value="1" <?php echo ($config->auth_user_lastname_updatelocal ? 'selectED="yes"' : '') ?> >
  406
+        <option value="1" <?php echo ($config->auth_user_lastname_updatelocal ? 'selected="yes"' : '') ?> >
393 407
             <?php  print_string("yes") ?></option>
394 408
     </select><br>
395 409
     <?php  print_string("auth_editlock","auth") ?>
396 410
     <select name="auth_user_lastname_editlock">
397  
-        <option value="0" <?php echo ($config->auth_user_lastname_editlock ? '' : 'selectED="yes"') ?> >
  411
+        <option value="0" <?php echo ($config->auth_user_lastname_editlock ? '' : 'selected="yes"') ?> >
398 412
             <?php  print_string("no")  ?></option>
399  
-        <option value="1" <?php echo ($config->auth_user_lastname_editlock ? 'selectED="yes"' : '') ?> >
  413
+        <option value="1" <?php echo ($config->auth_user_lastname_editlock ? 'selected="yes"' : '') ?> >
400 414
             <?php  print_string("yes") ?></option>
401 415
     </select><br>    
402 416
     <?php  print_string("auth_updateremote", "auth") ?>
403 417
     <select name="auth_user_lastname_updateremote">
404  
-        <option value="0" <?php echo ($config->auth_user_lastname_updateremote ? '' : 'selectED="yes"') ?> >
  418
+        <option value="0" <?php echo ($config->auth_user_lastname_updateremote ? '' : 'selected="yes"') ?> >
405 419
             <?php  print_string("no")  ?></option>
406  
-        <option value="1" <?php echo ($config->auth_user_lastname_updateremote ? 'selectED="yes"' : '') ?> >
  420
+        <option value="1" <?php echo ($config->auth_user_lastname_updateremote ? 'selected="yes"' : '') ?> >
407 421
             <?php  print_string("yes") ?></option>
408 422
     </select><br>    
409 423
     </div>
@@ -417,23 +431,23 @@
417 431
     <div align="right">
418 432
     <?php  print_string("auth_updatelocal", "auth") ?>
419 433
     <select name="auth_user_email_updatelocal">
420  
-        <option value="0" <?php echo ($config->auth_user_email_updatelocal ? '' : 'selectED="yes"') ?> >
  434
+        <option value="0" <?php echo ($config->auth_user_email_updatelocal ? '' : 'selected="yes"') ?> >
421 435
             <?php  print_string("no")  ?></option>
422  
-        <option value="1" <?php echo ($config->auth_user_email_updatelocal ? 'selectED="yes"' : '') ?> >
  436
+        <option value="1" <?php echo ($config->auth_user_email_updatelocal ? 'selected="yes"' : '') ?> >
423 437
             <?php  print_string("yes") ?></option>
424 438
     </select><br>
425 439
     <?php  print_string("auth_editlock", "auth") ?>
426 440
     <select name="auth_user_email_editlock">
427  
-        <option value="0" <?php echo ($config->auth_user_email_editlock ? '' : 'selectED="yes"') ?> >
  441
+        <option value="0" <?php echo ($config->auth_user_email_editlock ? '' : 'selected="yes"') ?> >
428 442
             <?php  print_string("no")  ?></option>
429  
-        <option value="1" <?php echo ($config->auth_user_email_editlock ? 'selectED="yes"' : '') ?> >
  443
+        <option value="1" <?php echo ($config->auth_user_email_editlock ? 'selected="yes"' : '') ?> >
430 444
             <?php  print_string("yes") ?></option>
431 445
     </select><br>    
432 446
     <?php  print_string("auth_updateremote", "auth") ?>
433 447
     <select name="auth_user_email_updateremote">
434  
-        <option value="0" <?php echo ($config->auth_user_email_updateremote ? '' : 'selectED="yes"') ?> >
  448
+        <option value="0" <?php echo ($config->auth_user_email_updateremote ? '' : 'selected="yes"') ?> >
435 449
             <?php  print_string("no")  ?></option>
436  
-        <option value="1" <?php echo ($config->auth_user_email_updateremote ? 'selectED="yes"' : '') ?> >
  450
+        <option value="1" <?php echo ($config->auth_user_email_updateremote ? 'selected="yes"' : '') ?> >
437 451
             <?php  print_string("yes") ?></option>
438 452
     </select><br>    
439 453
     </div>
@@ -447,23 +461,23 @@
447 461
     <div align="right">
448 462
     <?php  print_string("auth_updatelocal", "auth") ?>
449 463
     <select name="auth_user_phone1_updatelocal">
450  
-        <option value="0" <?php echo ($config->auth_user_phone1_updatelocal ? '' : 'selectED="yes"') ?> >
  464
+        <option value="0" <?php echo ($config->auth_user_phone1_updatelocal ? '' : 'selected="yes"') ?> >
451 465
             <?php  print_string("no")  ?></option>
452  
-        <option value="1" <?php echo ($config->auth_user_phone1_updatelocal ? 'selectED="yes"' : '') ?> >
  466
+        <option value="1" <?php echo ($config->auth_user_phone1_updatelocal ? 'selected="yes"' : '') ?> >
453 467
             <?php  print_string("yes") ?></option>
454 468
     </select><br>
455 469
     <?php  print_string("auth_editlock", "auth") ?>
456 470
     <select name="auth_user_phone1_editlock">
457  
-        <option value="0" <?php echo ($config->auth_user_phone1_editlock ? '' : 'selectED="yes"') ?> >
  471
+        <option value="0" <?php echo ($config->auth_user_phone1_editlock ? '' : 'selected="yes"') ?> >
458 472
             <?php  print_string("no")  ?></option>
459  
-        <option value="1" <?php echo ($config->auth_user_phone1_editlock ? 'selectED="yes"' : '') ?> >
  473
+        <option value="1" <?php echo ($config->auth_user_phone1_editlock ? 'selected="yes"' : '') ?> >
460 474
             <?php  print_string("yes") ?></option>
461 475
     </select><br>    
462 476
     <?php  print_string("auth_updateremote", "auth") ?>
463 477
     <select name="auth_user_phone1_updateremote">
464  
-        <option value="0" <?php echo ($config->auth_user_phone1_updateremote ? '' : 'selectED="yes"') ?> >
  478
+        <option value="0" <?php echo ($config->auth_user_phone1_updateremote ? '' : 'selected="yes"') ?> >
465 479
             <?php  print_string("no")  ?></option>
466  
-        <option value="1" <?php echo ($config->auth_user_phone1_updateremote ? 'selectED="yes"' : '') ?> >
  480
+        <option value="1" <?php echo ($config->auth_user_phone1_updateremote ? 'selected="yes"' : '') ?> >
467 481
             <?php  print_string("yes") ?></option>
468 482
     </select><br>    
469 483
     </div>
@@ -477,23 +491,23 @@
477 491
     <div align="right">
478 492
     <?php  print_string("auth_updatelocal", "auth") ?>
479 493
     <select name="auth_user_phone2_updatelocal">
480  
-        <option value="0" <?php echo ($config->auth_user_phone2_updatelocal ? '' : 'selectED="yes"') ?> >
  494
+        <option value="0" <?php echo ($config->auth_user_phone2_updatelocal ? '' : 'selected="yes"') ?> >
481 495
             <?php  print_string("no")  ?></option>
482  
-        <option value="1" <?php echo ($config->auth_user_phone2_updatelocal ? 'selectED="yes"' : '') ?> >
  496
+        <option value="1" <?php echo ($config->auth_user_phone2_updatelocal ? 'selected="yes"' : '') ?> >
483 497
             <?php  print_string("yes") ?></option>
484 498
     </select><br>
485 499
     <?php  print_string("auth_editlock", "auth") ?>
486 500
     <select name="auth_user_phone2_editlock">
487  
-        <option value="0" <?php echo ($config->auth_user_phone2_editlock ? '' : 'selectED="yes"') ?> >
  501
+        <option value="0" <?php echo ($config->auth_user_phone2_editlock ? '' : 'selected="yes"') ?> >
488 502
             <?php  print_string("no")  ?></option>
489  
-        <option value="1" <?php echo ($config->auth_user_phone2_editlock ? 'selectED="yes"' : '') ?> >
  503
+        <option value="1" <?php echo ($config->auth_user_phone2_editlock ? 'selected="yes"' : '') ?> >
490 504
             <?php  print_string("yes") ?></option>
491 505
     </select><br>    
492 506
     <?php  print_string("auth_updateremote", "auth") ?>
493 507
     <select name="auth_user_phone2_updateremote">
494  
-        <option value="0" <?php echo ($config->auth_user_phone2_updateremote ? '' : 'selectED="yes"') ?> >
  508
+        <option value="0" <?php echo ($config->auth_user_phone2_updateremote ? '' : 'selected="yes"') ?> >
495 509
             <?php  print_string("no")  ?></option>
496  
-        <option value="1" <?php echo ($config->auth_user_phone2_updateremote ? 'selectED="yes"' : '') ?> >
  510
+        <option value="1" <?php echo ($config->auth_user_phone2_updateremote ? 'selected="yes"' : '') ?> >
497 511
             <?php  print_string("yes") ?></option>
498 512
     </select><br>    
499 513
     </div>
@@ -507,23 +521,23 @@
507 521
     <div align="right">
508 522
     <?php  print_string("auth_updatelocal", "auth") ?>
509 523
     <select name="auth_user_department_updatelocal">
510  
-        <option value="0" <?php echo ($config->auth_user_department_updatelocal ? '' : 'selectED="yes"') ?> >
  524
+        <option value="0" <?php echo ($config->auth_user_department_updatelocal ? '' : 'selected="yes"') ?> >
511 525
             <?php  print_string("no")  ?></option>
512  
-        <option value="1" <?php echo ($config->auth_user_department_updatelocal ? 'selectED="yes"' : '') ?> >
  526
+        <option value="1" <?php echo ($config->auth_user_department_updatelocal ? 'selected="yes"' : '') ?> >
513 527
             <?php  print_string("yes") ?></option>
514 528
     </select><br>
515 529
     <?php  print_string("auth_editlock", "auth") ?>
516 530
     <select name="auth_user_department_editlock">
517  
-        <option value="0" <?php echo ($config->auth_user_department_editlock ? '' : 'selectED="yes"') ?> >
  531
+        <option value="0" <?php echo ($config->auth_user_department_editlock ? '' : 'selected="yes"') ?> >
518 532
             <?php  print_string("no")  ?></option>
519  
-        <option value="1" <?php echo ($config->auth_user_department_editlock ? 'selectED="yes"' : '') ?> >
  533
+        <option value="1" <?php echo ($config->auth_user_department_editlock ? 'selected="yes"' : '') ?> >
520 534
             <?php  print_string("yes") ?></option>
521 535
     </select><br>    
522 536
     <?php  print_string("auth_updateremote", "auth") ?>
523 537
     <select name="auth_user_department_updateremote">
524  
-        <option value="0" <?php echo ($config->auth_user_department_updateremote ? '' : 'selectED="yes"') ?> >
  538
+        <option value="0" <?php echo ($config->auth_user_department_updateremote ? '' : 'selected="yes"') ?> >
525 539
             <?php  print_string("no")  ?></option>
526  
-        <option value="1" <?php echo ($config->auth_user_department_updateremote ? 'selectED="yes"' : '') ?> >
  540
+        <option value="1" <?php echo ($config->auth_user_department_updateremote ? 'selected="yes"' : '') ?> >
527 541
             <?php  print_string("yes") ?></option>
528 542
     </select><br>    
529 543
     </div>
@@ -537,23 +551,23 @@
537 551
     <div align="right">
538 552
     <?php  print_string("auth_updatelocal", "auth") ?>
539 553
     <select name="auth_user_address_updatelocal">
540  
-        <option value="0" <?php echo ($config->auth_user_address_updatelocal ? '' : 'selectED="yes"') ?> >
  554
+        <option value="0" <?php echo ($config->auth_user_address_updatelocal ? '' : 'selected="yes"') ?> >
541 555
             <?php  print_string("no")  ?></option>
542  
-        <option value="1" <?php echo ($config->auth_user_address_updatelocal ? 'selectED="yes"' : '') ?> >
  556
+        <option value="1" <?php echo ($config->auth_user_address_updatelocal ? 'selected="yes"' : '') ?> >
543 557
             <?php  print_string("yes") ?></option>
544 558
     </select><br>
545 559
     <?php  print_string("auth_editlock", "auth") ?>
546 560
     <select name="auth_user_address_editlock">
547  
-        <option value="0" <?php echo ($config->auth_user_address_editlock ? '' : 'selectED="yes"') ?> >
  561
+        <option value="0" <?php echo ($config->auth_user_address_editlock ? '' : 'selected="yes"') ?> >
548 562
             <?php  print_string("no")  ?></option>
549  
-        <option value="1" <?php echo ($config->auth_user_address_editlock ? 'selectED="yes"' : '') ?> >
  563
+        <option value="1" <?php echo ($config->auth_user_address_editlock ? 'selected="yes"' : '') ?> >
550 564
             <?php  print_string("yes") ?></option>
551 565
     </select><br>    
552 566
     <?php  print_string("auth_updateremote", "auth") ?>
553 567
     <select name="auth_user_address_updateremote">
554  
-        <option value="0" <?php echo ($config->auth_user_address_updateremote ? '' : 'selectED="yes"') ?> >
  568
+        <option value="0" <?php echo ($config->auth_user_address_updateremote ? '' : 'selected="yes"') ?> >
555 569
             <?php  print_string("no")  ?></option>
556  
-        <option value="1" <?php echo ($config->auth_user_address_updateremote ? 'selectED="yes"' : '') ?> >
  570
+        <option value="1" <?php echo ($config->auth_user_address_updateremote ? 'selected="yes"' : '') ?> >
557 571
             <?php  print_string("yes") ?></option>
558 572
     </select><br>    
559 573
     </div>
@@ -567,23 +581,23 @@
567 581
     <div align="right">
568 582
     <?php  print_string("auth_updatelocal", "auth") ?>
569 583
     <select name="auth_user_city_updatelocal">
570  
-        <option value="0" <?php echo ($config->auth_user_city_updatelocal ? '' : 'selectED="yes"') ?> >
  584
+        <option value="0" <?php echo ($config->auth_user_city_updatelocal ? '' : 'selected="yes"') ?> >
571 585
             <?php  print_string("no")  ?></option>
572  
-        <option value="1" <?php echo ($config->auth_user_city_updatelocal ? 'selectED="yes"' : '') ?> >
  586
+        <option value="1" <?php echo ($config->auth_user_city_updatelocal ? 'selected="yes"' : '') ?> >
573 587
             <?php  print_string("yes") ?></option>
574 588
     </select><br>
575 589
     <?php  print_string("auth_editlock", "auth") ?>
576 590
     <select name="auth_user_city_editlock">
577  
-        <option value="0" <?php echo ($config->auth_user_city_editlock ? '' : 'selectED="yes"') ?> >
  591
+        <option value="0" <?php echo ($config->auth_user_city_editlock ? '' : 'selected="yes"') ?> >
578 592
             <?php  print_string("no")  ?></option>
579  
-        <option value="1" <?php echo ($config->auth_user_city_editlock ? 'selectED="yes"' : '') ?> >
  593
+        <option value="1" <?php echo ($config->auth_user_city_editlock ? 'selected="yes"' : '') ?> >
580 594
             <?php  print_string("yes") ?></option>
581 595
     </select><br>    
582 596
     <?php  print_string("auth_updateremote", "auth") ?>
583 597
     <select name="auth_user_city_updateremote">
584  
-        <option value="0" <?php echo ($config->auth_user_city_updateremote ? '' : 'selectED="yes"') ?> >
  598
+        <option value="0" <?php echo ($config->auth_user_city_updateremote ? '' : 'selected="yes"') ?> >
585 599
             <?php  print_string("no")  ?></option>
586  
-        <option value="1" <?php echo ($config->auth_user_city_updateremote ? 'selectED="yes"' : '') ?> >
  600
+        <option value="1" <?php echo ($config->auth_user_city_updateremote ? 'selected="yes"' : '') ?> >
587 601
             <?php  print_string("yes") ?></option>
588 602
     </select><br>    
589 603
     </div>
@@ -597,23 +611,23 @@
597 611
     <div align="right">
598 612
     <?php  print_string("auth_updatelocal", "auth") ?>
599 613
     <select name="auth_user_country_updatelocal">
600  
-        <option value="0" <?php echo ($config->auth_user_country_updatelocal ? '' : 'selectED="yes"') ?> >
  614
+        <option value="0" <?php echo ($config->auth_user_country_updatelocal ? '' : 'selected="yes"') ?> >
601 615
             <?php  print_string("no")  ?></option>
602  
-        <option value="1" <?php echo ($config->auth_user_country_updatelocal ? 'selectED="yes"' : '') ?> >
  616
+        <option value="1" <?php echo ($config->auth_user_country_updatelocal ? 'selected="yes"' : '') ?> >
603 617
             <?php  print_string("yes") ?></option>
604 618
     </select><br>
605 619
     <?php  print_string("auth_editlock", "auth") ?>
606 620
     <select name="auth_user_country_editlock">
607  
-        <option value="0" <?php echo ($config->auth_user_country_editlock ? '' : 'selectED="yes"') ?> >
  621
+        <option value="0" <?php echo ($config->auth_user_country_editlock ? '' : 'selected="yes"') ?> >
608 622
             <?php  print_string("no")  ?></option>
609  
-        <option value="1" <?php echo ($config->auth_user_country_editlock ? 'selectED="yes"' : '') ?> >
  623
+        <option value="1" <?php echo ($config->auth_user_country_editlock ? 'selected="yes"' : '') ?> >
610 624
             <?php  print_string("yes") ?></option>
611 625
     </select><br>    
612 626
     <?php  print_string("auth_updateremote", "auth") ?>
613 627
     <select name="auth_user_country_updateremote">
614  
-        <option value="0" <?php echo ($config->auth_user_country_updateremote ? '' : 'selectED="yes"') ?> >
  628
+        <option value="0" <?php echo ($config->auth_user_country_updateremote ? '' : 'selected="yes"') ?> >
615 629
             <?php  print_string("no")  ?></option>
616  
-        <option value="1" <?php echo ($config->auth_user_country_updateremote ? 'selectED="yes"' : '') ?> >
  630
+        <option value="1" <?php echo ($config->auth_user_country_updateremote ? 'selected="yes"' : '') ?> >
617 631
             <?php  print_string("yes") ?></option>
618 632
     </select><br>    
619 633
     </div>
@@ -627,23 +641,23 @@
627 641
     <div align="right">
628 642
     <?php  print_string("auth_updatelocal", "auth") ?>
629 643
     <select name="auth_user_description_updatelocal">
630  
-        <option value="0" <?php echo ($config->auth_user_description_updatelocal ? '' : 'selectED="yes"') ?> >
  644
+        <option value="0" <?php echo ($config->auth_user_description_updatelocal ? '' : 'selected="yes"') ?> >
631 645
             <?php  print_string("no")  ?></option>
632  
-        <option value="1" <?php echo ($config->auth_user_description_updatelocal ? 'selectED="yes"' : '') ?> >
  646
+        <option value="1" <?php echo ($config->auth_user_description_updatelocal ? 'selected="yes"' : '') ?> >
633 647
             <?php  print_string("yes") ?></option>
634 648
     </select><br>
635 649
     <?php  print_string("auth_editlock", "auth") ?>
636 650
     <select name="auth_user_description_editlock">
637  
-        <option value="0" <?php echo ($config->auth_user_description_editlock ? '' : 'selectED="yes"') ?> >
  651
+        <option value="0" <?php echo ($config->auth_user_description_editlock ? '' : 'selected="yes"') ?> >
638 652
             <?php  print_string("no")  ?></option>
639  
-        <option value="1" <?php echo ($config->auth_user_description_editlock ? 'selectED="yes"' : '') ?> >
  653
+        <option value="1" <?php echo ($config->auth_user_description_editlock ? 'selected="yes"' : '') ?> >
640 654
             <?php  print_string("yes") ?></option>
641 655
     </select><br>    
642 656
     <?php  print_string("auth_updateremote", "auth") ?>
643 657
     <select name="auth_user_description_updateremote">
644  
-        <option value="0" <?php echo ($config->auth_user_description_updateremote ? '' : 'selectED="yes"') ?> >
  658
+        <option value="0" <?php echo ($config->auth_user_description_updateremote ? '' : 'selected="yes"') ?> >
645 659
             <?php  print_string("no")  ?></option>
646  
-        <option value="1" <?php echo ($config->auth_user_description_updateremote ? 'selectED="yes"' : '') ?> >
  660
+        <option value="1" <?php echo ($config->auth_user_description_updateremote ? 'selected="yes"' : '') ?> >
647 661
             <?php  print_string("yes") ?></option>
648 662
     </select><br>    
649 663
     </div>
@@ -657,23 +671,23 @@
657 671
     <div align="right">
658 672
     <?php  print_string("auth_updatelocal", "auth") ?>
659 673
     <select name="auth_user_idnumber_updatelocal">
660  
-        <option value="0" <?php echo ($config->auth_user_idnumber_updatelocal ? '' : 'selectED="yes"') ?> >
  674
+        <option value="0" <?php echo ($config->auth_user_idnumber_updatelocal ? '' : 'selected="yes"') ?> >
661 675
             <?php  print_string("no")  ?></option>
662  
-        <option value="1" <?php echo ($config->auth_user_idnumber_updatelocal ? 'selectED="yes"' : '') ?> >
  676
+        <option value="1" <?php echo ($config->auth_user_idnumber_updatelocal ? 'selected="yes"' : '') ?> >
663 677
             <?php  print_string("yes") ?></option>
664 678
     </select><br>
665 679
     <?php  print_string("auth_editlock", "auth") ?>
666 680
     <select name="auth_user_idnumber_editlock">
667  
-        <option value="0" <?php echo ($config->auth_user_idnumber_editlock ? '' : 'selectED="yes"') ?> >
  681
+        <option value="0" <?php echo ($config->auth_user_idnumber_editlock ? '' : 'selected="yes"') ?> >
668 682
             <?php  print_string("no")  ?></option>
669  
-        <option value="1" <?php echo ($config->auth_user_idnumber_editlock ? 'selectED="yes"' : '') ?> >
  683
+        <option value="1" <?php echo ($config->auth_user_idnumber_editlock ? 'selected="yes"' : '') ?> >
670 684
             <?php  print_string("yes") ?></option>
671 685
     </select><br>    
672 686
     <?php  print_string("auth_updateremote", "auth") ?>
673 687
     <select name="auth_user_idnumber_updateremote">
674  
-        <option value="0" <?php echo ($config->auth_user_idnumber_updateremote ? '' : 'selectED="yes"') ?> >
  688
+        <option value="0" <?php echo ($config->auth_user_idnumber_updateremote ? '' : 'selected="yes"') ?> >
675 689
             <?php  print_string("no")  ?></option>
676  
-        <option value="1" <?php echo ($config->auth_user_idnumber_updateremote ? 'selectED="yes"' : '') ?> >
  690
+        <option value="1" <?php echo ($config->auth_user_idnumber_updateremote ? 'selected="yes"' : '') ?> >
677 691
             <?php  print_string("yes") ?></option>
678 692
     </select><br>    
679 693
     </div>
@@ -687,23 +701,23 @@
687 701
     <div align="right">
688 702
     <?php  print_string("auth_updatelocal", "auth") ?>
689 703
     <select name="auth_user_lang_updatelocal">
690  
-        <option value="0" <?php echo ($config->auth_user_lang_updatelocal ? '' : 'selectED="yes"') ?> >
  704
+        <option value="0" <?php echo ($config->auth_user_lang_updatelocal ? '' : 'selected="yes"') ?> >
691 705
             <?php  print_string("no")  ?></option>
692  
-        <option value="1" <?php echo ($config->auth_user_lang_updatelocal ? 'selectED="yes"' : '') ?> >
  706
+        <option value="1" <?php echo ($config->auth_user_lang_updatelocal ? 'selected="yes"' : '') ?> >
693 707
             <?php  print_string("yes") ?></option>
694 708
     </select><br>
695 709
     <?php  print_string("auth_editlock", "auth") ?>
696 710
     <select name="auth_user_lang_editlock">
697  
-        <option value="0" <?php echo ($config->auth_user_lang_editlock ? '' : 'selectED="yes"') ?> >
  711
+        <option value="0" <?php echo ($config->auth_user_lang_editlock ? '' : 'selected="yes"') ?> >
698 712
             <?php  print_string("no")  ?></option>
699  
-        <option value="1" <?php echo ($config->auth_user_lang_editlock ? 'selectED="yes"' : '') ?> >
  713
+        <option value="1" <?php echo ($config->auth_user_lang_editlock ? 'selected="yes"' : '') ?> >
700 714
             <?php  print_string("yes") ?></option>
701 715
     </select><br>    
702 716
     <?php  print_string("auth_updateremote", "auth") ?>
703 717
     <select name="auth_user_lang_updateremote">
704  
-        <option value="0" <?php echo ($config->auth_user_lang_updateremote ? '' : 'selectED="yes"') ?> >
  718
+        <option value="0" <?php echo ($config->auth_user_lang_updateremote ? '' : 'selected="yes"') ?> >
705 719
             <?php  print_string("no")  ?></option>
706  
-        <option value="1" <?php echo ($config->auth_user_lang_updateremote ? 'selectED="yes"' : '') ?> >
  720
+        <option value="1" <?php echo ($config->auth_user_lang_updateremote ? 'selected="yes"' : '') ?> >
707 721
             <?php  print_string("yes") ?></option>
708 722
     </select><br>    
709 723
     </div>
3  auth/ldap/lib.php
@@ -494,6 +494,7 @@ function auth_user_update($olduser, $newuser) {
494 494
 
495 495
 }
496 496
 
  497
+
497 498
 function auth_user_update_password($username, $newpassword) {
498 499
 /// called when the user password is updated -- it assumes it is called by an admin
499 500
 /// or that you've otherwise checked the user's credentials
@@ -535,7 +536,7 @@ function auth_ldap_suppported_usertypes (){
535 536
     $types['edir']='Novell Edirectory';
536 537
     $types['posix']='posixAccount (rfc2307)';
537 538
     $types['samba']='sambaSamAccount (v.3.0.7)';
538  
-    $types['ad']='ActiveDirectory'; 
  539
+    $types['ad']='MS ActiveDirectory'; 
539 540
     return $types;
540 541
 }    
541 542
 
3  lang/en/auth.php
@@ -38,7 +38,8 @@
38 38
 $string['auth_ldap_contexts'] = 'List of contexts where users are located. Separate different contexts with \';\'. For example: \'ou=users,o=org; ou=others,o=org\'';
39 39
 $string['auth_ldap_create_context'] = 'If you enable user creation with email confirmation, specify the context where users are created. This context should be different from other users to prevent security issues. You don\'t need to add this context to ldap_context-variable, Moodle will search for users from this context automatically.<br/><b>Note!</b> You have to modify function auth_user_create() in file auth/ldap/lib.php to make user creation work';
40 40
 $string['auth_ldap_creators'] = 'List of groups whose members are allowed to create new courses. Separate multiple groups with \';\'. Usually something like \'cn=teachers,ou=staff,o=myorg\'';
41  
-$string['auth_ldap_expiration_desc'] = 'Select No to disable expired password checking or LDAP to read passwordexpiration time directly from LDAP.Remeber to fill attribute name ldap_expireattr';
  41
+$string['auth_ldap_expiration_desc'] = 'Select No to disable expired password checking or LDAP to read passwordexpiration time directly from LDAP';
  42
+$string['auth_ldap_expiration_warning_desc'] = 'Number of days before password expiration warning is issued.';
42 43
 $string['auth_ldap_expireattr_desc'] = 'Optional: overrides ldap-attribute what stores password expiration time asswordAxpirationTime';
43 44
 $string['auth_ldap_graceattr_desc'] = 'Optional: Overrides  gracelogin attribute';
44 45
 $string['auth_ldap_gracelogins_desc'] = 'Enable LDAP gracelogin support. After password has expired user can login until gracelogin count is 0. Enabling this setting displays grace login message if password is exprired.';

0 notes on commit d89430a

Please sign in to comment.
Something went wrong with that request. Please try again.