Commit ddd8ae79 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5258 Avoid errors when loading node with missing objectClass

Showing with 5 additions and 0 deletions
+5 -0
......@@ -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 */
......
  • bmortier @bmortier

    mentioned in issue #1666

    By Jonathan Swaelens on 2017-09-02T15:34:18 (imported from GitLab)

    ·

    mentioned in issue #1666

    By Jonathan Swaelens on 2017-09-02T15:34:18 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment