How to connect Server with LDAP

Hello guys,

I’m working on an automation of a idm request system. To check if the user has really gained the rights, i have to check it with LDAP. I’ve got a ip-address, username with additional information (cn=, ou=, l=, ou= and o=) and password. I can’t find a working way to connect with the server. A installed package leads to unknown errors and a c# script can’t be compiled because missing library which i have already installed.

I’d be glad if someone could help me with a code example or activity ideas.