예제 #1
0
        public JsonResult GetUserFromAd(string domain, string username)
        {
            User user = null;

            try
            {
                user = _activeDirectoryService.GetUserFromAd(domain, username);
            }
            catch (Exception ex)
            {
                // We cannot query user's information from AD.
                _log.Error(ex);
            }
            return(Json(user, JsonRequestBehavior.AllowGet));
        }