Isn't that ldapQueryInfo object unnecessary? Just pass the ldapConnectionInfo parameter to LdapService
public static List<OutputSearchEntry> AD_SearchObjects([PropertyTab] LdapConnectionInfo ldapConnectionInfo, [PropertyTab] AD_SearchObjectProperties SearchParameters)
{
var ldapQueryInfo = new LdapConnectionInfo
{
LdapUri = ldapConnectionInfo.LdapUri + "/" + SearchParameters.Path,
Username = ldapConnectionInfo.Username,
Password = ldapConnectionInfo.Password
};
List<SearchResult> tmpObjectEntries;
// Search objects.
using (var ldap = new LdapService(ldapQueryInfo))
...
Would have fixe this by myself, but I can't run the tests because I don't know the needed environment variable values.
Isn't that ldapQueryInfo object unnecessary? Just pass the ldapConnectionInfo parameter to LdapService
Would have fixe this by myself, but I can't run the tests because I don't know the needed environment variable values.