From: hickert Date: Fri, 2 Feb 2007 11:09:04 +0000 (+0000) Subject: Added current-user-dn-update-function. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f1714ac56cc41319519c97c1ab7749d4d8a637c3;p=gosa.git Added current-user-dn-update-function. Update current user dn, if dn has changed by modifying user or department dns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5682 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 3b8508967..1335565b0 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -1524,6 +1524,12 @@ class plugin return; } + /* Update userinfo if necessary */ + if($_SESSION['ui']->dn == $old_dn){ + $_SESSION['ui']->dn = $new_dn; + gosa_log(_("Updated current user dn from '".$old_dn."' to '".$new_dn."'")); + } + /* Object was moved, ensure that all acls will be moved too */ if($new_dn != $old_dn && $old_dn != "new"){ @@ -1579,8 +1585,9 @@ class plugin $acls[] = $acl_str; } + /* Acls for this object must be adjusted */ - if($found){ + if($found){ if($output_changes){ echo "Changing ACL dn from :
 -  to".$old_dn."
 - ".$new_dn."

";