From Fedora Project Wiki
Gowrishankar (talk | contribs) No edit summary |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
# | {{QA/Test_Case | ||
# Select '''User | |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. | ||
|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'' | |||
# 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 | |||
# | |||
#: <pre> | #: <pre> | ||
#: | #: /sbin/service sssd status</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 | ||
# | # 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
- As a logged in desktop user, start the authentication configuration utility by running the command
system-config-authentication
, or by selecting the menu item System → Administration → Authentication - 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
- /sbin/service sssd status
- 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
useradd
andpasswd
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
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:
- getent passwd localtest
- getent group localtest
- finger localtest
Expected 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
service
is included below.- /sbin/service sssd status
- sssd is stopped
- Whether using a graphical utility, or the commands
useradd
andpasswd
, 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
passwd
, the password is successfully changed - The new password is accepted when logging into the desktop
- The commands
getent
andfinger
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
- Sample