Try to use getent, so that it also works for NIS