Set up some constants for the server and authentication information. Assuming LDAPv3, but it's easy enough to change that.
// Authentication, and the name of the server.
private const string LDAPUser = "cn=example:app:mygroup:accts,ou=Applications,dc=example,dc=com";
private readonly ch...