diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 343e24b401e69bf9b2e3792580d412a63842df04..f3ee08ca3a63d77afe40d11f225d58eeb4ba8fae 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -166,6 +166,11 @@ class plugin if (empty($this->attrs)) { throw new NonExistingLdapNodeException('Could not open dn '.$this->dn); } + if ($this->mainTab) { + /* Make sure that initially_was_account is TRUE if we loaded an LDAP node, + * even if it’s missing an objectClass */ + $this->is_account = TRUE; + } } /* Set the template flag according to the existence of objectClass fdTemplate */