ldap4net
ldap4net copied to clipboard
Optimize RootDse search and add cancellation tokens to async search extensions.
Get RootDse entry with all attributes in a single request as per LDAP RFC standard and add cancellation tokens to async search extensions.
Changed so both the wildcard selectors for user and operation attributes as well as an explicit list of most common attributes (both per RFC as well as common vendors like MS, OpenLdap, etc.) is passed to a single search. This seems to work in all situations as per RFC any duplicated attributes should be ignored. Some references: Retrieving all attributes: https://ldapwiki.com/wiki/Retrieving%20All%20Attributes Determining vendor and version: https://ldapwiki.com/wiki/Determine%20LDAP%20Server%20Vendor