4.3. Adding new users in the IdM directory

Before you can add users in the Red Hat Enterprise Virtualization Manager, you must first add them the IdM directory. For this track, you need at least two users. The names used in this guide are rhevpower and rhevuser. Perform the following procedure on the Manager server.
  1. To add users you must first authenticate as the directory server administrator. Use the kinit admin command to do this, entering the administrator password when prompted.
    $ kinit admin
    Password for admin@DIRECTORY.DEMO.REDHAT.COM:
    
  2. To add a user interactively use the ipa user-add command. The command will prompt you for all values required to create the user.
    $ ipa user-add
      First name: RHEV
      Last name: User
      User login [rhevuser]:
      ---------------------
      Added user "rhevuser"
      ---------------------
      User login: rhevuser
      First name: RHEV
      Last name: User
      Full name: RHEV User
      Display name: RHEV User
      Initials: RU
      Home directory: /home/rhevuser
      GECOS field: rhevuser
      Login shell: /bin/sh
      Kerberos principal: rhevuser@DIRECTORY.DEMO.REDHAT.COM
      UID: 1316000004
  3. To allow the new user to log in you must set their initial password. Use the ipa passwd command, followed by the user name for which you are setting the password, to do this.
    $ ipa passwd rhevuser
    Password: 
    Enter Password again to verify: 
    ----------------------------------------------------------
    Changed password for "rhevuser@DIRECTORY.DEMO.REDHAT.COM"
    ----------------------------------------------------------
    
  4. A new user has been added to the directory server and their password has been set. You are now able to add them to the Red Hat Enterprise Virtualization Manager. For this track, repeat Step 2 and Step 3 for another user called rhevpower and as necessary for other users.
Now you know how to create users for Red Hat Enterprise Virtualization. Next you will learn how to assign roles and privileges to these users.