Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3942

Implement and use a new GetUserInfo(uid_or_username) function using 'getent' as fallback

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Story Points:
      3

      Description

      Using getpwnam(), getpwuid() and related group functions in our processes is problematic and can give incomplete results due to our bundled libraries conflicting with libraries required by NSS plugins. In such cases we should fallback to using the getent utility. Getting user/group names and IDs is covered in CFE-3937, but the getuserinfo() policy function returns the whole JSON structure with all user data which requires some more work to be done.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              vpodzime Vratislav Podzimek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: