How to get @base value programatically? #118
-
Originally, you could go
Unfortunately, with Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
flamencist
May 9, 2021
Replies: 1 comment 1 reply
-
You could use DirectoryAttributes var rootDse = ldapConnection.GetRootDse();
var baseDn = rootDse.DirectoryAttributes["namingContexts"].GetValue<string>();
var searchEntries = ldapConnection.Search(baseDn , ....... |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Reelix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could use DirectoryAttributes