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

user promise and add LDAP user to /etc/group file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: users
    • Labels:
      None

      Description

      Th user does exist on the system only not local. I want this LDAP user in the /etc/group file. This my user promise:
      <pre>
      users:
      "casperl"
      comment => "Make sure that this user can read the tomcat log files",
      policy => "present",
      groups_secondary =>

      { "tomcat7" }

      ;
      </pre>

      and it failes with this error message:
      <pre>
      useradd: user 'casperl' already exists
      2015-04-20T12:01:14+0200 error: /default/quarterly/users/'casperl'[0]: Command returned error while creating user 'casperl'. (Command line: '/usr/sbin/useradd -G "tomcat7" -M casperl')
      2015-04-20T12:01:14+0200 info: /default/quarterly/users/'casperl'[0]: User promise not kept
      </pre>

      I do not know if this the limitation of the user promises. I know i can use `append_user_field` for this. But i would be nice if this is supported

        Attachments

          Activity

            People

            Assignee:
            a10040 Kristian Amlie
            Reporter:
            bas Bas van der Vlies
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: