From f1714ac56cc41319519c97c1ab7749d4d8a637c3 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 2 Feb 2007 11:09:04 +0000 Subject: [PATCH] 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 --- include/class_plugin.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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."

"; -- 2.30.2