diff --git a/lam/docs/manual-sources/howto.xml b/lam/docs/manual-sources/howto.xml
index 11f54d08..722ab034 100644
--- a/lam/docs/manual-sources/howto.xml
+++ b/lam/docs/manual-sources/howto.xml
@@ -3528,6 +3528,12 @@ Run slapindex to rebuild the index.
new value of a modified attribute (e.g. $MOD.telephoneNumber$) for
modified accounts
+
+
+ $ORIG.<attribute>$: the
+ original value of an attribute (e.g. $ORIG.telephoneNumber$) for
+ modified accounts
+
Output may contain HTML: If your
diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc
index b404e0a2..05d0b366 100644
--- a/lam/lib/modules.inc
+++ b/lam/lib/modules.inc
@@ -1691,9 +1691,15 @@ class accountContainer {
}
}
}
+ if (!$this->isNewAccount) {
+ foreach ($this->attributes_orig as $key => $value) {
+ $prePostModifyAttributes['ORIG.' . $key] = $value;
+ }
+ $prePostModifyAttributes['ORIG.dn'][0] = $this->dn_orig;
+ }
$prePostModifyAttributes['dn'][0] = $this->finalDN;
if (!$this->isNewAccount && ($this->finalDN != $this->dn_orig)) {
- $prePostModifyAttributes['MOD.dn'] = $this->finalDN;
+ $prePostModifyAttributes['MOD.dn'][0] = $this->finalDN;
}
logNewMessage(LOG_DEBUG, 'Edit page pre/postModify attributes: ' . print_r($prePostModifyAttributes, true));
$preModifyOk = true;