From Fedora Project Wiki

(Use Template:QA/Test_Case)
(Updated based on feedback from jgalipea and sgallagh)
Line 3: Line 3:
|actions=
|actions=
# As a logged in desktop user, start the authentication configuration utility by running the command {{command|system-config-authentication}}, or by selecting the menu item ''System'' → ''Administration'' → ''Authentication''
# As a logged in desktop user, start the authentication configuration utility by running the command {{command|system-config-authentication}}, or by selecting the menu item ''System'' → ''Administration'' → ''Authentication''
# Select '''User account base''' as '''Local accounts only''' (see ([[:Image: Screenshot-Local Authentication.png]])
# Select '''User account base''' as '''Local accounts only''' (see [[:Image: Screenshot-Local Authentication.png]])When finished, select '''Apply''' to save your changes.
# When finished, select '''Apply''' to save your changes.
# Confirm that the ''sssd'' service is '''not''' running by issuing the following command
# Open a terminal and as root execute the following command to enable the ''sssd'' service
#: <pre>
#: <pre>
#: authconfig --update --enablesssd --enablesssdauth</pre>
#: /sbin/service sssd status</pre>
# Next, add a new user and assign a passwd:
# Next, add a new user account by selecting the menu item ''System'' → ''Administration'' → ''Users and Groups''.  Alternatively, you can create a new user and assign a password by running the commands {{command|useradd}} and {{command|passwd}} from a terminal application.  When finished, logout of the desktop.
# When the graphical login screen appears, login to the system as the newly created local user.
# Once logged into the desktop, change the password for current user.  This can be accomplished by starting ''System'' → ''Preferences'' → ''About me'', then selecting ''Change Password''.  Or you can run the command {{command|passwd}} from a terminal application.  After changing the password, logout of the desktop.
# Let's confirm the password change by logging into the desktop using the same local user account, but with the new password.
# Finally, open a terminal application, and check whether you can query for information about other local users.  For example, you might run a commands similar to:
#: <pre>
#: <pre>
#: sss_useradd localsssd
#: getent passwd localtest
#: passwd localsssd</pre>
#: getent group localtest
#: finger localtest</pre>
|results=
|results=
# The command getent return information about the local account. Sample output appears below.  
# The ''Authentication Configuration'' application starts without error
# The ''Authentication Configuration'' application completes without error
# The ''sssd'' service is '''not''' running. Expected output from the command {{command|service}} is included below.
#: <pre>
#: <pre>
#: getent passwd localsssd
#: /sbin/service sssd status
#: gsr:x:500:500::/home/localsssd:/bin/bash</pre>
#: sssd is stopped</pre>
# Whether using a graphical utility, or the command passwd, the password is successfully changed
# Whether using a graphical utility, or the commands {{command|useradd}} and {{command|passwd}}, creating a local user completes without error
# Login to the graphical desktop is successful using the newly created local username and password
# Whether using a graphical utility, or the command {{command|passwd}}, the password is successfully changed
# The new password is accepted when logging into the desktop
# The new password is accepted when logging into the desktop
# You are able to login to your system using a remote shell command such as ssh
# The commands {{command|getent}} and {{command|finger}} return information about local users and groups. 
#* Sample {{command|getent passwd}} output is included below.
#*: <pre>
#*: getent passwd localtest
#*: localtest:x:500:500::/home/localtest:/bin/bash</pre>
#* Sample {{command|getent group}} output is included below.
#*: <pre>
#*: getent group localtest
#*: localtest:x:500:</pre>
#* Sample {{command|finger}} output is included below.
#*: <pre>
#*: finger localtest
#*: Login: localtest  Name:
#*: Directory: /home/localtest      Shell: /bin/bash
#*: On since Mon Mar 29 15:57 (IST) on pts/2 from localhost</pre>
}}
}}
[[Category:SSSD Test Cases]]
[[Category:SSSD Test Cases]]

Revision as of 14:10, 29 March 2010

Description

FIXME


How to test

  1. As a logged in desktop user, start the authentication configuration utility by running the command system-config-authentication, or by selecting the menu item SystemAdministrationAuthentication
  2. Select User account base as Local accounts only (see Image: Screenshot-Local Authentication.png). When finished, select Apply to save your changes.
  3. Confirm that the sssd service is not running by issuing the following command
    /sbin/service sssd status
  4. Next, add a new user account by selecting the menu item SystemAdministrationUsers and Groups. Alternatively, you can create a new user and assign a password by running the commands useradd and passwd from a terminal application. When finished, logout of the desktop.
  5. When the graphical login screen appears, login to the system as the newly created local user.
  6. Once logged into the desktop, change the password for current user. This can be accomplished by starting SystemPreferencesAbout me, then selecting Change Password. Or you can run the command passwd from a terminal application. After changing the password, logout of the desktop.
  7. Let's confirm the password change by logging into the desktop using the same local user account, but with the new password.
  8. Finally, open a terminal application, and check whether you can query for information about other local users. For example, you might run a commands similar to:
    getent passwd localtest
    getent group localtest
    finger localtest

Expected Results

  1. The Authentication Configuration application starts without error
  2. The Authentication Configuration application completes without error
  3. The sssd service is not running. Expected output from the command service is included below.
    /sbin/service sssd status
    sssd is stopped
  4. Whether using a graphical utility, or the commands useradd and passwd, creating a local user completes without error
  5. Login to the graphical desktop is successful using the newly created local username and password
  6. Whether using a graphical utility, or the command passwd, the password is successfully changed
  7. The new password is accepted when logging into the desktop
  8. The commands getent and finger return information about local users and groups.
    • Sample getent passwd output is included below.
      getent passwd localtest
      localtest:x:500:500::/home/localtest:/bin/bash
    • Sample getent group output is included below.
      getent group localtest
      localtest:x:500:
    • Sample finger output is included below.
      finger localtest
      Login: localtest Name:
      Directory: /home/localtest Shell: /bin/bash
      On since Mon Mar 29 15:57 (IST) on pts/2 from localhost