/etc/passwd -> getent, compatibility issues

Pull request for issue #2294