diff --git a/Co0nUtilZ/C_LDAPHelper.cs b/Co0nUtilZ/C_LDAPHelper.cs index 0c7790b..de00b0e 100644 --- a/Co0nUtilZ/C_LDAPHelper.cs +++ b/Co0nUtilZ/C_LDAPHelper.cs @@ -98,7 +98,7 @@ public DirectoryEntry getADObject(string objectclass, string name) } name = name.ToLower(); DirectoryEntry result = null; - ArrayList objs = this.searchObject(objectclass); + ArrayList objs = this.searchObject(objectclass); //It is highly inefficient to get a complete list of all matching object-types in the first place. TODO: adjust searchObject() to searchOne() instead of searchAll() when looking up a specific object (by name). foreach (SearchResult obj in objs) { DirectoryEntry entry = obj.GetDirectoryEntry();