/// <summary>
 /// Add ADUser to Group
 /// </summary>
 /// <param name="userlogin"></param>
 /// <param name="groupName"></param>
 /// <returns></returns>
 public bool AddUserToGroup(string userlogin, string groupName)
 {
     try
     {
         _directoryEntry = null;
         ADManager admanager = new ADManager(ADConfig.LDAPDomain, ADConfig.LDAPUser, ADConfig.LDAPPassword);
         admanager.AddUserToGroup(userlogin, groupName);
         return true;
     }
     catch (Exception ex)
     {
         return false;
     }
 }
 public bool AddUserToGroup(string userlogin, string groupName)
 {
     try
     {
         _directoryEntry = null;
         ADManager admanager = new ADManager();
         admanager.AddUserToGroup(userlogin, groupName);
         return true;
     }
     catch (Exception ex)
     {
         return false;
     }
 }
 public void DeleteUser(StringBuilder sb, string userLogonName)
 {
     _directoryEntry = null;
     ADManager admanager = new ADManager();
     admanager.DeleteUser(sb, userLogonName);
 }
 public void CreateUser(StringBuilder sb, string userLogonName, string userPassword)
 {
     _directoryEntry = null;
     ADManager admanager = new ADManager();
     admanager.CreateUser(sb, userLogonName, userPassword);
 }