From 56a5007df56492ff00e854b31d1db73f45cc5abe Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 2 Jun 2012 17:45:37 +0000 Subject: [PATCH] add MOD.dn to pre/postModify actions --- lam/lib/modules.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 34c3e947..a93061e1 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1686,6 +1686,9 @@ class accountContainer { } } $prePostModifyAttributes['dn'][0] = $this->finalDN; + if (!$this->isNewAccount && ($this->finalDN != $this->dn_orig)) { + $prePostModifyAttributes['MOD.dn'] = $this->finalDN; + } logNewMessage(LOG_DEBUG, 'Edit page pre/postModify attributes: ' . print_r($prePostModifyAttributes, true)); $preModifyOk = true; foreach ($module as $singlemodule) {