| Oracle® Database Advanced Security Administrator
's Guide 10g Release 1 (10.1) Part Number B10772-01 |
| <
/tr>
![]() Previous
Next |
Enterprise User Security, a cr itical component of Oracle Identity Management, lets you create and administer large numbers of users in a secure, LDAP-compliant directory service. The following topics in this chapter explain what Enter prise User Security is and how it works:
This section provides an overview of Enterprise User Security , explaining the benefits, how enterprise users access resources across a distributed database system, and how they are authenticated . It contains the following topics:
Administrators must keep user information up to date and secure for the entire enterprise. This task becomes more difficul t as the number of applications and users increases. Typically, each user has multiple accounts on different databases, which means e ach user must remember multiple passwords. The results of these conditions are too many passwords for users to remember and too many accounts for administrators to effectively manage.
With thousands of users accessing databa se accounts, administrators must devote substantial resources to user administration. Common information used by multiple application s, such as usernames, telephone numbers, and system roles and privileges, is typically fragmented across the enterprise, contributing to data that is redundant, inconsistent, and difficult to manage.
In addition to user and account management problems, these conditions produce security problems as well. For example, any time a user leaves a company or cha nges jobs, that user's privileges should be changed the same day in order to guard against their misuse. However, in a large enterpri se, if you have too many user accounts distributed over multiple databases, an administrator may be unable to make such timely change s. If your users have too many passwords, then they may write them down (making them easy for others to copy), choose passwords that are easy to remember (making them easy for others to guess), or choose the same password for multiple applications (making a compromi sed password a greater security risk). All of these user efforts to keep track of their multiple passwords can compromise the securit y of the enterprise.
Enterprise Use r Security addresses user, administrative, and security challenges by relying on the identity management services supplied by Oracle Internet Directory, an LDAP-compliant directory service. Identity management is the process by which the complete security life cycle for network entities is managed in an organization. It typically refers to the management of an organization's application users, wh ere steps in the security life cycle include account creation, suspension, privilege modification, and account deletion.
Figure 11-1 shows how Enterprise User Security fits into the Or acle security architecture, which uses the Oracle Identity Management infrastructure as its foundation.
< h4 class="FTW">Figure 11-1 Enterprise User Security and the Oracle Security Architectur e
Text description of the illustration asoag038.gif
Users benefit from En terprise User Security through single sign-on (SSO) or single password authentication, depending on the configuration chosen by the administra tor. Using single sign-on, users need to authenticate only once and subsequent authentications take place transparently. This functio nality requires SSL, and should not be confused with OracleAS Single Sign-On, a component of Oracle Identity Management infrastructur e.
Single password authentication lets users authenticate to multiple databases with a sing le global password although each connection requires a unique authentication. The password is securely stored in the centrally locate d, LDAP-compliant directory, and protected with security mechanisms including encryption and Access Control Lists (ACLs). This approach improves usability by reducing the number of passwords to remember a nd manage, and by eliminating the overhead of setting up SSL.
Enterprise User Security requ ires Oracle Internet Directory 10g (9.0.4). Other LDAP-compliant directory services are supported by using Or acle Internet Directory Integration Platform to synchronize them with Oracle Internet Directory.
This section contains the following topics:
[Oracle Internet Directory Administrator's Guide, f or information about using Oracle Directory Integration Platform with other directories. |
Oracle Internet Director y uses the concept of identity management realms to organize information in the directory information tree (DIT), which is a hierarch ical tree-like structure consisting of directory object entries. In a directory, each collection of information about an object is ca lled an entry. This object may be a person, but it can also be information about a networked device, such as configuration informatio n. To name and identify the location of directory objects in the DIT, each entry is assigned a unique distinguished name (DN). The DN of an entry consists of the entry itself and its parent entries, connected in ascending order, from the entry itself up to the root (top) entry in the DIT.
An identity manageme nt realm is a subtree of directory entries, all of which are governed by the same administrative policies. For example, all employees in an enterprise who have access to the intranet may belong to one realm, while all external users who access the public application s of the enterprise may belong to another realm. Use of different realms enables an enterprise to isolate user populations and enforc e different administrative policies, such as password policies or naming policies, in each realm.
Each identity management realm has a realm-specific Ora cle Context (realm Oracle Context) that stores Oracle product information for that realm. A realm Oracle Context stores application d ata, how users are named and located, how users must be authenticated, group locations, and privilege assignments--all specific to th e particular identity management realm in which the realm Oracle Context is located.
See Also:
|
Database users a
re typically defined in the database by using the CREATE USER statement as follows:
CREATE USER username IDENTIFIED BY password;
This creates a database user, associated with a user schema, who can access the database and be authenticated by using a password
with the CONNECT command as follows:
connect username/password em>@database_service_name
Database users must be created in each database they need to access, and they can choose a different password for each database. Database user privileges are contr olled by local roles in each database.
In contrast, enterprise users are provisioned and ma naged centrally in an LDAP-compliant directory, such as Oracle Internet Directory, for database access. Enterprise users have a uniqu e identity in the directory called the distinguished name (DN). When en terprise users log on to a database, the database authenticates those users by using their DN.
Enterprise users are defined in the database as global users. Global users can have their own schemas, or they can share a global
schema in the databases they access. You can create enterprise users by using the GLOBALLY clause in the CREATE U
SER statement in two different ways.
You can specify a user's directory DN with an < code>AS clause, which is shown in the following statement:
CREATE USER username< /em> IDENTIFIED GLOBALLY AS '<DN of directory user entry>';
In this case, they have a schema allocated exclusively to them.
Alternatively, you can spe
cify a null string with the AS clause as the following statement shows:
CREATE USER username IDENTIFIED GLOBALLY AS '';
When you specify a null
string with the AS clause, the directory maps authenticated users to the appropriate database schema. In this case, mul
tiple users can be mapped to a shared schema based on the mapping information set up and stored in Oracle Internet Directory.
When enterprise users connect over SSL to the database, they do not use a password. Instead they u
se the following CONNECT command, which looks up the wallet location based on information in the client's sqlnet.o
ra file:
connect/@database_service_name
Password-authenticated enterprise users use the same CONNECT statement to connect to th
e database as regular database users. For example, password-authenticated enterprise users connect to the database by using the follo
wing syntax:
connect username/password@database_service_name
When the database recei ves a connection request from an enterprise user, the database refers to the directory for user authentication and authorization (rol e) information.
See Also:
font>
|
Enterprise us ers can retain their individual database schemas (exclusive schemas) or share schemas if the enterprise security administrator maps t hem to a shared schema.
If users want to re tain their individual schemas in the databases that they access, then
Creating separate accounts for e ach enterprise user on each database that they access results in significant overhead. Instead, creating enterprise users who access a single, generic shared schema in each database increases the efficiency of the enterprise user solution.
To receive the real benefit of the enterprise user solution, you can use shared schemas for your enterprise users. For this strategy
Mapping enterprise users to a generic, shared schema on each of the databases th at they access greatly reduces the overhead of creating separate schemas for each enterprise user.
Shared schema enterprise users can be mapped to generic, shared schemas on all of the databases that they access, or they can have exclusive schemas on some databases and shared schemas on others. The shared schema mappings are stored in the directory.
< a name="1016848">| See Also:
"About Using Shared Schemas for Enterprise User Security" for more information about creating and using shared schemas for enterprise users. |
Database links are network objects stored in the local database or in the network definition that identify a remote database, a communication path to t hat database, and optionally, a username and password. Once defined, the database link is used to access the remote database. Oracle Database supports connected user links, fixed user links, and current user links.
Enterpris e users can use all three types of database links. Connected user links are accessed by a local user who has an account on the remote server. Fixed user links contain a username and password as part of the link definition. Current user database links allow enterpris e users to access objects on remote databases without passing authentication information during link execution, or storing authentica tion information in the link definition. They require SSL for the database network connections, which means public key infrastructure (PKI) credentials must be obtained and maintained for the databases. Current user database links can be used to connect to the remot e database only as an enterprise user.
See Also:
|
| Password Authentication | SSL Authentic ation | Kerberos Authentication |
|---|---|---|
|
Password-based authentication. |
Provides strong authentication over SSL. |
Provides strong authentication by using Kerberos, version 5 tickets. |
|
Provides centralized user and password management. |
Provides centralized user and PKI credential/wallet management. |
Provides centralized user and Kerberos credential management. |
|
Separate authentications required for each database connection. |
Supports single sign-on (SSO) using SSL. |
Supports single sign-on (SSO) using Kerberos, version 5 encrypted tickets and authenticato rs, and authentication forwarding. |
| <
/a>
Retains users' current authentication methods. |
I nitial configuration maybe more difficult because PKI credentials must be generated for all users. (Dependent on administrators' PKI knowledge) |
Initial configuration maybe more difficult because Kerbe ros must be installed and configured to authenticate database users. |
|
User identity can be used in two-tier or multitier applications. OracleAS Single Sign-On users and enterprise users use the same stored password. |
C ompatible with either a two-tier or multitier environment. |
Compatib le with either a two-tier or multitier environment. |
|
Supports Oracle Release 7.3 and later clients with an Oracle Database 10g . |
Supports Oracle8i and later clients with an Oracle Database 10g. |
Supports Oracle Dat abase 10g clients and later with an Oracle Database 10g. |
|
Supports current user database links only if the connection between databases is over SSL. |
Supports current use r database links. |
Supports current user database links only if the connection between databases is over SSL. |
|
Can use third-party directories to store users if synchronized with Oracle Internet Directory.Foot 1 |
Can use third-pa rty directories to store users if synchronized with Oracle Internet Directory.Foot 2 sup> |
Can use third-party directories to store users if synchron ized with Oracle Internet Directory.Foot 3 |
KrbPrincipalName attribute. This synchronization is automatic for Mic
rosoft Active Directory.|
Note: Enterprise User Security supports three-tier environments. Oracle Database 10g proxy authentication features ena ble (i) proxy of user names and passwords through multiple tiers, and (ii) proxy of X.509 certificates and distinguished names throug h multiple tiers. |
See Also:
|
In a directory, each collection of information about an object is ca lled an entry. For Enterprise User Security, elements such as users, roles, and databases are directory objects and information about these objects are stored as entries in the directory.
Each entry in the directory is uniqu ely identified by a distinguished name (DN). The DN tells you exactly where the entry resides in the directory entry hierarchy, which is commonly called the directory information tree (DIT).
|
Note: In the Oracle Database 10g release, databases must be registered in a comp lete identity management realm of Oracle Internet Directory. td> |
| See Also:
Oracle Internet Directory Administrator's Guide for a complete discussion of directory entries. |
The following sections describe directory entries related to Enterprise User Security:
An enterprise user is one that is defined and managed in a directory. Each enterprise user has a unique ident ity across an enterprise. Enterprise user entries can reside at any location within the identity management realm, except within the realm Oracle Context.
The entries described in the following sections can only reside withi n a realm Oracle Context.
Enterprise users can be assigned an enterprise role, which determines their access privileges on databases. These enterprise roles are stored and managed in a directory. Figure 11-3 shows an example of an enterprise role called Manager und er the OracleDefaultDomain.
An enterprise role can consist of one or many global roles, each one of which is defined in a specific d
atabase. A global role includes privileges contained in a database, but the global role is managed in a directory. An enterprise role
is thus a container of global roles. For example, the enterprise role sales_manager could contain the global role manage_leads with its privileges on the Customer Relationship Management (CRM) database, and the bonus_approval
global role with its privileges on the Finance database. Figure 11-2 illustrates this example
.
Text description of the illustration asoag033.gif
An enterprise role can be assigned to one or more enterprise users. For example, you could assi
gn the enterprise role sales_manager to a number of enterprise users who hold the same job. This information is protecte
d in the directory, and only a directory administrator can manage users and assign their roles. A user can be granted local roles and
privileges in a database in addition to enterprise roles.
Enterprise role entries are stor
ed in enterprise domain subtrees. Each enterprise role contains informa
tion about associated global roles on each database server and the associated enterprise users. The
| See Also:
"Administering Enterprise Roles" for information about using Enterprise Security Manager to create and manage enterprise roles. |
|
Note: The database obtains a user's global roles from the directory as part of the login process. If you change a user's global roles in the directory, then those changes do not take effect until the next time the user logs in to the database. |
| Administrative Group | Description |
|---|---|
|
(Called "Database Registration Admins" in Release 9.2 and earlier versions of Enterprise Se curity Manager) |
DN: Default owner: OracleContextAdmins During default realm Oracle Context creation, Oracle Internet Direct ory Configuration Assistant sets up the following access rights/permissions for these group members:
Modify permission for the Default DomainOracleDBCreators create new databases and register them in the directory by using Database Configuration Assistant< /p> |
|
(Called "Full Context Management" group in Release 9.2 and earlier versions of Enterpris e Security Manager) |
DN: ( Default owner: The user who created the identity management realm. (If it is the realm created during installation, then it is OracleContextAdmins have full access to all groups and entries within its associ ated realm Oracle Context. |
|
(Called "Database Security Management" group in Release 9. 2 and earlier versions of Enterprise Security Manager) |
DN: ( Default owner: All group members. During default realm Oracle Context c reation, Oracle Internet Directory Configuration Assistant sets up the following access rights/permissions for these group members: p> OracleDBSecurityAdmins have permissions on all of the domains in the enterprise and perform the following tasks: |
(Called "Directory User Management" in Release 9.2 and earlier versions of Enterprise Security Mana ger) |
DN: ( Default owner: Th e user who created the identity management realm. By default, an ACL is set at the directory root in Oracle Internet Directory that sets up the relevant permissions so OracleSecurityAdmins can administer Oracle user security. For example, by default, they can read wallet password hints and modify user passwords. |
|
OraclePasswordAccessibleDomains |
DN: ( Default owner: Same as OracleDBSecurityAdmi ns Group members are enterprise domains, which contain databases enabled for password-author ized enterprise users. |
The following sections describe shared schemas, and how to set them up:
Users do not necessarily require individual accounts or schemas set up in each database. Alternatively, they can connect to a shared schema and be granted access to objects that ar e associated with target applications. For example, suppose that users Tom, Dick, and Harriet require access to the Payroll applicati on on the Finance database. They do not need to create unique objects in the database, and therefore do not need their own schemas, b ut they do need access to the objects in the Payroll schema.
Oracle Database supports mappi
ng multiple users stored in an enterprise directory to a shared schema on an individual database. This separation of users from schem
as reduces administration costs by reducing the number of user accounts on databases. It means that you do not need to create an acco
unt for each user (user schema) in addition to creating the user in the directory. Instead, you can create a user in the enterprise d
irectory, and map that user to a shared schema which other enterprise users can also be mapped to. For example, if Tom, Dick and Harr
iet all access both the Sales and the Finance databases, you do not need to create an account for each user on each of these database
s. Instead, you can create a single shared schema on each database, such as GUEST, that all three users can access. Then
individual access to objects in the Sales or Finance database can be granted to these three users by using enterprise roles. A typic
al environment can have up to 5,000 enterprise users mapped to one shared schema and each user can be assigned a set of enterprise ro
les.
Oracle recommends that you create a separate shared schema that contains no objects to use as an entry point. Then grant access to application objects in other schemas through enterprise roles. Otherwise, application ob jects can be inadvertently or maliciously deleted or altered.
In summary, shared schemas pr ovide the following benefits:
To configure shared schemas, the local database administrator (DBA) must create at least one database schema in a dat abase. Enterprise users can be mapped to this schema.
In the following example, the adminis trator creates a shared schema and maps users to it:
EMPLOYEE and the global role HRMANAGER on th
e HR database.MANAGER. The administrator then assigns the HR database global role of HRMANAGER to the
enterprise role MANAGER.MANAGER to H
arriet.When Harriet connects to the HR database, she is automatically connected to the EMPLOYEE schema and is
given the global role of HRMANAGER. Multiple enterprise users can be mapped to the same shared schema. For example, the
enterprise security administrator can create another enterprise user Scott and map Scott to the EMPLOYEE schema. From t
hat point on, both Harriet and Scott automatically use the EMPLOYEE schema when connecting to the HR database, but each
can have different roles and can be individually audited.
| See Also:
Oracle Database Security Guide for more information about auditin g. |
Global
schemas (those created with CREATE USER IDENTIFIED GLOBALLY AS '') can be owned by one enterprise user (exclusive schema
) or shared among multiple enterprise users (shared schema). The mapping between a single enterprise user and his or her exclusive sc
hema is stored in the database as an association between the user DN and the schema name. The mapping between enterprise users and a
shared schema is done in the directory by means of one or more mapping objects. A mapping object is used to map the distinguished name (DN) of a user to a database schema that the user will access. You cr
eate a mapping object by using Enterprise Security Manager. This mapping can be one of the following:
This method assoc iates the DN of a single directory user with a particular schema on a database. It results in one mapping entry for each user.
This method lets multiple enterprise users share part of their DN to access the same shared schema. This method is useful if multipl e enterprise users are already grouped under some common root in the directory tree. The subtree that these users share can be mapped to a shared schema on a database. For example, you can map all enterprise users in the subtree for the engineering division to one s hared schema, BUG_APP_USER, on the bug database. Note that the root of the subtree is not mapped to the specified schema.
When an enterprise user connects to a database, the database retrieves a DN for the user, either from the network (in the case of SSL) or from the directory (in the case of password- and Kerberos-authenticated enterprise users).
< a name="1006849">When determining which schema to connect the user to, the database uses the user DN and the fol lowing precedence rules:
For example, suppose that Harriet is trying to connect to t he HR database, but the database does not find Harriet's exclusive schema (in the database). In this case, the following steps occur:
EMPLOYEE and returns t
his schema.
EMPLOYEE schema.Continuing this example, assume that the enterprise role MANAG
ER contains the global roles ANALYST on the HR database, and USER on the Payroll database. When Harr
iet, who has the enterprise role MANAGER, connects to the HR database, she uses the schema EMPLOYEE
em> on that database.
You can grant privileges to a specified gr oup of users by granting roles and privileges to a database schema. Every user sharing such a schema gets these local roles and privi leges in addition to personal enterprise roles. However, you should exercise caution when doing this, because every user who is mappe d to this shared schema can exercise the privileges assigned to it. Accordingly, Oracle does not recommend granting roles and privile ges to a shared schema.
| See Also:
"Task 1: Create Global Schemas and Global Roles in the Database" for detailed information about how to create shared schemas for enterprise user s. |
Oracle Database supports current user database links over an SSL-authenticated network conn ection. Current user database links let you connect to a second database as yourself, or as another user when used from within a stor ed procedure owned by that user. Such access is limited to the scope of the procedure. The security advantage of current user databas e links is that the other user's credentials are not stored in the database link definition, and are not sent across the network conn ection between databases. Instead, security of these links is based on mutual trust, mutual authentication, and a secure network conn ection between the databases themselves.
For example, a current user database link lets Har riet, a user of the Finance database, procedurally access the Accounts Payable database by connecting as the enterprise user Scott. p>
For Harriet to access a current user database link to connect to the schema Scott, Scott mus
t be a global schema (created as IDENTIFIED GLOBALLY) in both databases. Harriet, however, can be a user identified in o
ne of three ways:
GLOBALLYEXTERNALLYTo create Scott as a global user in the first database, Finance, you must enter
CREATE USER Scott IDENTIFIED GLOBALLY as 'CN=Scott,O=nmt'
so that Scott has an exclusive schema. Then Scott can map to a shared schema in the second database, Accounts Payable. In order for the current user database link to work, the schema created for Scott in the first database cannot be shared wit h other users.
Current user database links operate only between trusted databases within a
single enterprise domain--databases within the domain trust each other to authenticate users. You specify an enterprise domain as tru
sted by using Enterprise Security Manager. When you use Enterprise Security Manager to enable current user database links for a domai
n, they will work for all databases within that domain. However, each database in the domain must have its own PKI credentials and us
e SSL to authenticate to the other databases. To specify a database as untrusted that is part of a trusted enterprise domain, use the
PL/SQL package DBMS_DISTRIBUTED_TRUST_ADMIN. To obtain a list of trusted servers, use the TRUSTED_SERVERS
view.
|
Note: Oracle Advanced Security does not support RADIUS authentication over database links. |
Consider the following issues before deploying Enterprise User Security:
Beyond the general benefits that flow from the centralization of enterprise users and their associated credentials, there are a number of security-related benefits and risks that should be reviewed.
Centralizing management makes it easier and faster to admin ister users, credentials, and roles, and to quickly revoke a user's privileges on all applications and databases across the enterpris e. With centralized management, the administrator can delete a user in one place to revoke all global privileges, minimizing the risk of retaining unintended privileges.
Centralizing management makes it possible to centraliz e an organization's security expertise. Specialized, security-aware administrators can manage all aspects of enterprise user security , including directory security, user roles and privileges, and database access. This is a substantial improvement over the traditiona l model, where DBAs are typically responsible for everything on the databases they manage, including security.
While Oracle Internet Dir ectory is a secure repository, there is a security challenge and inherent risk in centralizing credentials in any publicly accessible repository. Although centralized credentials can be protected at least as securely as distributed credentials, the very nature of ce ntralization increases the consequences of inadvertent credential exposure to unauthorized parties. It is therefore imperative to lim it the privileges of administrators, to set restrictive Access Control Lists (ACLs) in the directory, and to implement good security practices in the protection of security credentials when they are temporarily outside of the directory.
In all secure password-based authentication methods, a server authenticates a client with a password verifier, typically a hashed version of the password that mu st be rigorously protected. Password-based authentication to an Oracle database is no different. There is a password verifier, and it must be protected as well. This is true if the verifier is stored locally in the database or centrally in the directory. Note that a password verifier cannot be used to derive its original password.
An enterprise user's dat abase password can be stored in a central directory service for access by multiple databases. It can be viewed and shared by all trus ted databases to which the user has access. Although the password verifier stored in the directory is not the cleartext password, it is still necessary to protect it from casual or unauthorized access. It is therefore extremely important to define password-related ACLs in the directory that are as restrictive as possible, while still e nabling necessary access and usability. (Note that Oracle Database supports all verifier types that are supported by Oracle Internet Directory.)
Oracle tools help set up ACLs in the directory to protect these password verifi ers during identity management realm creation. The approach that Oracle recommends is intended to balance security and usability cons iderations. If you require maximum security and can set up wallets for all users, you should require only SSL connections from users to databases. This SSL-only approach circumvents the entire directory password protection issue.
The following sections provide more information about trusted databases and protecting database password verifiers in the direc tory.
SSL provides strong authentication s o databases are ensured of each others identity. With password-authenticated Enterprise User Security where database password verifie rs are stored centrally in a directory and shared among multiple databases, each database that allows password-authenticated enterpri se users to log in must be a trusted database. Each database has access to the shared password verifiers so it is important that each database can be trusted to observe the following security precautions:
For a selected realm, d etermine which databases can accept password-authenticated connections. Use Enterprise Security Manager to place the domains containi ng those databases into the OraclePasswordAccessibleDomains group. An ACL on the user subtree permits access to the directory attribu te that holds the password verifier used by the database.
All other users are denied access to this attribute. An ACL that prevents anonymous read access to the password verifier attributes is at the root of the directory tr ee.
Note that for usability, by default the OracleDefaultDomain is a member of the OraclePa sswordAccessibleDomains group. It can be removed, if desired.
See Also:
|
Consider the f ollowing criteria when defining the database membership of a domain:
Enterprise User Securit y supports the authentication types listed in Table 11-3 for connections between clients, dat abases, and directories.
However, some combinations of authentication types for connections make more sense than others. For example, it is unusual to require a high level of security for client-to-database connections by using SSL for all user connections, but then configuring the database to authenticate to the directory by using passwords. Although this configuration is supported, it does not p rovide consistent security for connections. Ideally, the database-directory connection should be at least as secure as that between u sers and databases.
The following combinations of auth entication types between clients, databases, and directories are typical:
|
![]() Copyright © 1996, 2003 Oracle Corporation All Rights Reserved. |
|