Fix multiple credential-related bugs, chief of which is the use of getgroups() instead of getgrouplist().
Fix multiple credential-related bugs, chief of which is the use of getgroups() instead of getgrouplist().

petterreinholdtsen/tsdfx,dag-erling/tsdfx,abdulrahmanazab/tsdfx,petterreinholdtsen/tsdfx,dag-erling/tsdfx,petterreinholdtsen/tsdfx,abdulrahmanazab/tsdfx,dag-erling/tsdfx