/// <summary>
        /// Indicates whether a supplied username and password are valid.
        /// </summary>
        /// <param name="userName">The supplied username</param>
        /// <param name="password">The supplied password</param>
        /// <param name="authority">Optional. The specific authority to use to
        /// authenticate a user. For example, in Windows it would be a Windows
        /// Domain</param>
        /// <returns>true when the username and password are valid</returns>
        public bool LogonUser(string userName, string password, string authority)
        {
            ValidationManager mgr = new ValidationManager();

            return(mgr.ValidateUserInfo(HttpContext.Current.Request.Headers));
        }
        /// <summary>
        /// The IsValidPrincipalName method is called by the report server when
        /// the report server sets security on an item. This method validates
        /// that the user name is valid for Windows.  The principal name needs to
        /// be a user, group, or builtin account name.
        /// </summary>
        /// <param name="principalName">A user, group, or built-in account name
        /// </param>
        /// <returns>true when the principle name is valid</returns>
        public bool IsValidPrincipalName(string principalName)
        {
            ValidationManager mgr = new ValidationManager();

            return(mgr.ValidatePrincipalName(principalName));
        }