Skip to content

AD_SearchObjects ignores AuthenticationFlags #32

@jsalmela

Description

@jsalmela

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions