public bool IsChangeUserAcctPasswordSuccess(string domainName, string userName, string newPassword) { if (!ActiveDirectoryHelper.IsUserExist(userName)) { return(false); } return(ActiveDirectoryHelper.AuthenticateUser(string.Format(CultureInfo.InvariantCulture, "{0}\\{1}", domainName, userName), newPassword)); }