by_object['Device']; $cn = preg_replace('/,/', '\,', $baseobject->cn); $cn = preg_replace('/"/', '\"', $cn); $this->dn= "cn=".$cn.",ou=systems,".$baseobject->base; $baseobject->dn= $this->dn; // Object moved? if($this->dn != $baseobject->orig_dn && $baseobject->orig_dn != "new"){ $baseobject->update_acls($baseobject->orig_dn,$this->dn); $baseobject->move($baseobject->orig_dn,$this->dn); } // Populate values foreach ($this->by_object as $key => $obj){ $this->by_object[$key]->dn= $this->dn; $this->by_object[$key]->cn= $baseobject->cn; } // Save now tabs::save(TRUE); } } ?>