I am trying to achieve an LDAP query to gather all properties we have about our users without specifying the properties before hand, I would like to display this in a table so u
Came across this thread while looking on how to do this myself. Instead i found a different way of doing it, and seems to be working fine.
return ((DirectoryEntry)UserPrincipal.Current.GetUnderlyingObject()).Properties.PropertyNames;
Its loading perfectly find in a Combobox anyhow. Just incase anyone else comes across this thread.