(CFACT-59) Add id and gid facts

I believe that pwd_ptr is set on success and NULL on failure so they should be synonymous.