diff --git a/html/main.php b/html/main.php
index 660cd712b111e5ca6406d1b42604cca797fb492c..35295c0cbed87bd585c7f8dcf4798ca2efbf2741 100644 (file)
--- a/html/main.php
+++ b/html/main.php
/* Close div/tables */
/* Close div/tables */
+ /* check if we are using account expiration */
+
+ if((isset($config->data['MAIN']['ACCOUNTEXPIRED'])) && $config->data['MAIN']['ACCOUNTEXPIRED'] == "1"){
+
+ $expired= ldap_expired_account($config, $ui->dn, $ui->username);
+
+ if ($expired == 2){
+ gosa_log ("password for user \"$ui->username\" is about to expire");
+ print_red(_("Your password is about to expire, please change your password"));
+ }
+ }
+
/* Print_out last ErrorMessage repeated string.
*/
print_red(NULL);
/* Print_out last ErrorMessage repeated string.
*/
print_red(NULL);
$_SESSION['plist']= $plist;
$_SESSION['config']= $config;
$_SESSION['plist']= $plist;
$_SESSION['config']= $config;
+
/* Echo compilation time * /
$r = split(" ",$start);
$ms = $r[0];
/* Echo compilation time * /
$r = split(" ",$start);
$ms = $r[0];