The Sybase IQ login management facility helps you manage users and connections to a database.
DBAs can add or drop users and control connections by:
Limiting the number of active logins for a single user.
To do this, assign a user to a login policy in which you have specified the max_connections login policy option.
Locking out a user.
To do this, assign a user to a login policy that has the locked option set ON.
Setting user password expirations.
To do this, specify the max_failed_login_attempts and max_days_since_login for a login policy and assign a user to this policy. You can also explicitly expire a user password by using the FORCE PASSWORD CHANGE clause in the SQL statement CREATE/ALTER USER.
For the SQL command syntax to manage policies, see CREATE LOGIN POLICY, ALTER LOGIN POLICY, and DROP LOGIN POLICY in Reference: Statements and Options.
Each new database contains a login policy named root. You can modify the option values for the root login policy, but you cannot drop the policy. When a user account is created without specifying its login policy, the user becomes part of the root login policy.
Table 8-2 lists the procedure you call to perform each Sybase IQ login management function. DBA authority is required to run all procedures except sp_iqpassword. All users can run sp_iqpassword to change their own passwords.
Call this stored procedure... |
To perform this task... |
---|---|
sa_get_user_status |
Retrieve the current status of all existing users |
sp_expireallpasswords |
Cause all user passwords to expire immediately |
sp_iqaddlogin |
Add users, define their passwords, specify login policy and password expiry on next login |
sp_iqcopyloginpolicy |
Create a new login policy by copying an existing one |
sp_iqdroplogin |
Drop the specified user |
sp_iqmodify |
Assign a given user to a login policy |
sp_iqmodifyadmin |
Set an option on a named login policy to a certain value |
sp_iqpassword |
Change a user’s password |
For details of Sybase IQ login management procedures, see Chapter 7, “System Procedures” in Reference: Building Blocks, Tables, and Procedures
For system tables used in Sybase IQ login management, see Chapter 9, “System Tables,” in Reference: Building Blocks, Tables, and Procedures.