Skip to content

Problem getting response with Powershell #2

Description

@Corvus71

I installed the yamldap on windows and I can get it to work when I perform an ldapsearch from another linux system
ldapsearch -x -H ldap://localhost:11389 -b "dc=example,dc=com" "(objectClass=*)"

However when I try the same on the localhost with powershell I get no response
I ran yampldap in the following way:
yamldap.exe -f sample_directory.yaml -p 11389 --allow-anonymous -v

PS C:\Temp\Yamldap> $ldapHost = New-Object System.DirectoryServices.DirectoryEntry("LDAP://localhost:11389/dc=example,dc=com")
PS C:\Temp\Yamldap> $ldapQuery = New-Object System.DirectoryServices.DirectorySearcher
PS C:\Temp\Yamldap> $ldapQuery.SearchRoot = $ldapHost
PS C:\Temp\Yamldap> $ldapQuery.Filter = "(objectclass=*)"
PS C:\Temp\Yamldap> $ldapQuery.SearchScope = "Subtree"
PS C:\Temp\Yamldap> $results = $ldapQuery.FindAll() --> And here it hangs until I kill yamldap.

I am not a programmer so I cannot dive into the code to figure out what is wrong.
Any ideas on how to continue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions