Example #1
0
 public override void DoSelect()
 {
     if (ServerDTO.IsLoggedIn)
     {
         PropertiesCtl.Init(VMDirConstants.ATTR_VMW_DSEROOT_DN, string.Empty, ServerDTO, ServerProperties);
     }
     else
     {
         PropertiesCtl.ClearView();
         PropertiesCtl.SetEditState(false);
     }
 }
Example #2
0
 public void Logout()
 {
     try
     {
         ServerDTO.Connection = new LdapConnectionService(ServerDTO.Server, ServerDTO.BindDN, ServerDTO.Password);
         ServerDTO.Connection.CloseConnection();
         ServerDTO.Connection = null;
         ServerDTO.IsLoggedIn = false;
         Nodes.Clear();
         PropertiesCtl.ClearView();
     }
     catch (Exception exp)
     {
         MiscUtilsService.ShowError(exp);
     }
 }