Some (embedded) systems (and Mac OS X) don't provide getent(1). The workaround parses /etc/group under the assumption that the system only uses local users and groups.