170 likes | 277 Views
Managing Password Security and Resources. Objectives. After completing this lesson, you should be able to do the following: Manage passwords using profiles Administer profiles Control use of resources using profiles Obtain information about profiles, password management, and resources.
E N D
Objectives • After completing this lesson, you should be able to do the following: • Manage passwords using profiles • Administer profiles • Control use of resources using profiles • Obtain information about profiles, password management, and resources
Profiles • A profile is a named set of password and resource limits. • Profiles are assigned to users by the CREATE USER or ALTER USER command. • Profiles can be enabled or disabled. • Profiles can relate to the DEFAULT profile.
Account locking Password history Password Management User Setting up profiles Password expiration and aging Password verification
Enabling Password Management • Set up password management by using profiles and assigning them to users. • Lock, unlock, and expire accounts using the CREATE USER or ALTER USER command. • Password limits are always enforced. • To enable password management, run the utlpwdmg.sql script as the user SYS.
Password Account Locking Parameter Description FAILED_LOGIN_ATTEMPTS PASSWORD_LOCK_TIME Number of failed login attempts before lockout of the account Number of days the account is locked after the specified number of failed login attempts
Password Expiration and Aging Parameter Parameter PASSWORD_LIFE_TIME PASSWORD_GRACE_TIME Lifetime of the password in days after which the password expires Grace period in days for changing the password after the first successful login after the password has expired
Password History Parameter Description PASSWORD_REUSE_TIME PASSWORD_REUSE_MAX Number of days before a password can be reused Maximum number of times apassword can be reused
Password Verification Parameter Description PASSWORD_VERIFY_FUNCTION PL/SQL function that performs a password complexity check before a password is assigned
User-Provided Password Function • This function must be created in the SYS schema and must have the following specification: function_name( userid_parameter IN VARCHAR2(30), password_parameter IN VARCHAR2(30), old_password_parameter INVARCHAR2(30)) RETURN BOOLEAN
Password Verification Function VERIFY_FUNCTION • Minimum length is four characters. • Password should not be equal to username. • Password should have at least one alphabetic, one numeric, and one special character. • Password should differ from the previous password by at least three letters.
Creating a Profile: Password Settings CREATE PROFILE grace_5 LIMIT FAILED_LOGIN_ATTEMPTS 3 PASSWORD_LOCK_TIME UNLIMITED PASSWORD_LIFE_TIME 30 PASSWORD_REUSE_TIME 30 PASSWORD_VERIFY_FUNCTION verify_function PASSWORD_GRACE_TIME 5;
Altering a Profile: Password Setting Use ALTER PROFILE to change password limits ALTER PROFILE default LIMIT FAILED_LOGIN_ATTEMPTS 3 PASSWORD_LIFE_TIME 60 PASSWORD_GRACE_TIME 10;
Dropping a Profile: Password Setting • Drop the profile using DROP PROFILE command. • DEFAULT profile cannot be dropped. • CASCADE revokes the profile from user to whom assigned DROP PROFILE developer_prof; DROP PROFILE developer_prof CASCADE;
Summary • In this lesson, you should have learned how to: • Administer passwords • Administer profiles
Practice 14 Overview • This practice covers the following topics: • Enabling password management • Defining profiles and assigning to users • Disabling password management