(CFACT-59) Add id and gid facts

I think there are three conditions we need to check for:

1. Success: `err == 0 && pwd_ptr`.
2. No User: `err == 0 && !pwd_ptr`.
3. Error: `err != 0`

Does that sound right?