public string GetFullName(string username)
        {
            string fullName = string.Empty;

            if (connection != null)
            {
                IAccountService accountService = new LdapAccountService();
                accountService.SetAccountManager(connection);

                fullName = accountService.ReadUserFullName(username);
            }

            return(fullName);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            var username = HttpContext.Current.User.Identity.Name;

            connection = (ILdapServerConnection)Session[Global.LdapConnection];

            if (connection == null)
            {
                SignOut();
            }
            else
            {
                IAccountService accountService = new LdapAccountService();
                accountService.SetAccountManager(connection);
            }
        }