Check the current user has access right to domain named `name', then returns SUCCESS else FAIL. Currently this function only compares the `name' parameter agains the login name.