summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 70c1db5)
raw | patch | inline | side by side (parent: 70c1db5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Jul 2010 12:46:23 +0000 (12:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Jul 2010 12:46:23 +0000 (12:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18930 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/main.php | patch | blob | history |
index 04c37402637e00a01e7850041f60e9b39a5164b0..97c3c9bd89ee1f7f010a1e6785f82ab294bd625e 100644 (file)
--- a/gosa-core/html/main.php
+++ b/gosa-core/html/main.php
if ($config->get_cfg_value("handleExpiredAccounts") == "true"){
$expired= ldap_expired_account($config, $ui->dn, $ui->username);
if ($expired == 2){
+
+ // The users password is about to xpire soon, display a warning message.
new log("security","gosa","",array(),"password for user \"$ui->username\" is about to expire") ;
msg_dialog::display(_("Password change"), _("Your password is about to expire, please change your password!"), INFO_DIALOG);
} elseif ($expired == 3){
+
+ // The password is expired, we are now going to enforce a new one from the user.
+
+ // Hide the GOsa menus to avoid leaving the enforced password change dialog.
$smarty->assign("hideMenus", TRUE);
$plug = (isset($_GET['plug'])) ? $_GET['plug'] : null;
+
+ // Search for the 'password' class and set its id as active plug.
foreach ($plist->dirlist as $key => $value){
if (preg_match("/\bpassword\b/i",$value)){
if($plug != $key) {