index 321537acebf160145032f1d928377d69e3cd9831..9569ed3969e3e613fabc64ea47d98c27aa8bab7f 100644 (file)
$this->by_object[$name]= $obj;
}
+ /* Copy mail if needed */
+ if ($name == "gofaxAccount"){
+ if (isset($this->by_object['mailAccount']) && $this->by_object['mailAccount']->is_account){
+ $obj->mail= $this->by_object['mailAccount']->mail;
+ }
+ }
+
/* Update parent in base object */
$this->by_object['user']->parent= &$this;
}
* If you changed one of the "Name" / "Givenname" attributes to lower or upper case, like "test" to "Test", (in DNMODE=cn)
* the old_dn and new dn were different. cn=test ... cn=Test ...
* The following code decided to move the entry from old_dn to new_dn. (Because they differ)
- * But the ldap functions are not case sensitive and so the function plugin::move() quits with
+ * But the ldap attribute cn is not case sensitive and the function plugin::move() quits with
* an error, because source and destination dn are both the same (for ldap, but not for php).
* This fix allow you to change the givenname or name attributes.
*/