using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.DirectoryServices; using System.DirectoryServices.Protocols; using System.Net; namespace HLS.Common.LDAP { public class LDAPCommunicator { public bool VerifyLDAPConnection() { try { //Some logic here to connect with LDAP return true; } catch (Exception e) { return false; } } } }
using HLS.Common.LDAP
LDAPCommunicator ldapCommunicator = new LDAPCommunicator(); bool result = ldapCommunicator.VerifyLDAPConnection();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)