Ejemplo n.º 1
0
        internal static Fwk.CentralizedSecurity.Contracts.LoogonUserResult User_Logon2(string userName, string password, string domain)
        {
            Fwk.CentralizedSecurity.Contracts.LoogonUserResult loogonUserResult = new LoogonUserResult();
            try
            {
                LDAPHelper _ADHelper = new LDAPHelper(domain, ActiveDirectoryService.CnnStringName, true, false);

                var x = _ADHelper.User_Logon_IsAuthenticated(userName, password);

                loogonUserResult.Autenticated = x;
            }
            catch (Exception ex)
            {
                loogonUserResult.ErrorMessage = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
            }
            return(loogonUserResult);
        }