From Fedora Project Wiki

No edit summary
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
# Launch '''System | Administration | Authentication'''
{{QA/Test_Case
# Select '''User account base''' as '''Local accounts only'''. See ([[:Image: Screenshot-Local Authentication.png]])
|description= This test is confirms that {{command|authconfig}} can be used to configure a system for local identity and local authentication.  Once setup, several commands are used to confirm the system setup.
# Click '''Apply' when finished.
|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''
== Expected results: ==
# Select '''User Account Database''' as '''Local accounts only''' (see [[:Image: Screenshot-Local Authentication.png]]).  When finished, select '''Apply''' to save your changes.
 
# Confirm that the ''sssd'' service is '''not''' running by issuing the following command
# Login to the graphical desktop is successful using a valid local account.
# The command getent return information about the local account. Sample output appears below.
#: <pre>
#: <pre>
#: getent passwd gsr
#: /sbin/service sssd status</pre>
#: gsr:x:500:500::/home/gsr:/bin/bash</pre>
# 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.
# Whether using a graphical utility, or the command passwd, the password is successfully changed
# 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>
#: getent passwd localtest
#: getent group localtest
#: finger localtest</pre>
|results=
# 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>
#: /sbin/service sssd status
#: sssd is stopped</pre>
# 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]]

Latest revision as of 19:56, 30 March 2010

Description

This test is confirms that authconfig can be used to configure a system for local identity and local authentication. Once setup, several commands are used to confirm the system setup.


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 Database 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