summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Auth/LDAP.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index 4bf2a8f..aac6df8 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -396,6 +396,11 @@ class LDAP extends Net_LDAP3 {
return false;
}
+ // remove invalid/hidden attributes
+ if (isset($attributes['domainrelatedobject_only'])) {
+ unset($attributes['domainrelatedobject_only']);
+ }
+
$domain_dn = key($domain);
// We should start throwing stuff over the fence here.