Legal | Privacy


Enterprise User Security






Enterprise User Security

In this module, you see how to create enterprise users in OID by using a feature called "Enterprise Security Manager" that enables your users to authenticate to your databases by using their credentials and roles stored in OID.

Topics

This module will discuss the following:

Overview
  Enterprise User Security Overview
  Prerequisites

Enabling your database for LDAP network connectivity

Configuring your database for LDAP authentication with OID

Configure your database schema mappings
Test user authentication against the database

 

Place the cursor on this icon to display all screenshots. You can also place the cursor on each icon to see only the screenshot associated with it.

If your infrastructure is like most, you have an LDAP server that stores your user identities, roles, and privileges for the purpose of authenticating your users against their application. The LDAP server also gives you a place to centrally manage your users and the ability to apply a consistent security policy to all your applications. The LDAP server also enables you to easily delegate administration tasks to others.

Traditionally, database authentication is performed by creating database schema users in the database itself. These schema users have their user identities, passwords, roles, and privileges stored in the database. When the user logs in to the database either directly by using SQL*Plus or through some application, the users credentials and privileges are checked inside the database. This model creates fragmented administrative control of users that access their applications. Every database you have creates a new administrative management point and a potential for fragmented administration and security policies in your corporate infrastructure.

A better model would be to have these users created as "Enterprise Users" in the OID LDAP server. With this model, you can have your users authenticate against the LDAP server and apply a consistent security policy for all your users accessing your databases and database applications. It is also an easier way of managing users and their access to applications. This model also limits the number database schema user accounts in the database to only those that are actually administering the database.

Before starting this lesson, you should have:

Oracle 10g Application Server Infrastructure installed and running

Oracle 9i or 10g database installed, running and configured with the "Advanced Security Option"

In this section, you will see how to configure your database to connect with the OID LDAP server.

1.

From your database instance, start Oracle Net Configuration Assistant. Type netca at the command prompt.

Example:

# netca

Select Directory Usage Configuration and then click Next.

Move your mouse over this icon to see the image

 

2.

Select the Directory Type as Oracle Internet Directory. Click Next.

Move your mouse over this icon to see the image

 

3.

Enter the Fully Qualified Domain Name(FQDN) of the OID server and the port number on which OID is running. Click Next.

Move your mouse over this icon to see the image

Note: It is important to remember that the Network Configuration Assistant will attempt to make an anonymous connection with the OID server to discover the default Oracle Context in OID. By default, OID allows anonymous connections. But if you have turned off anonymous user connectivity for OID, you will need to temporarily enable it to allow for this discovery.

 

4.

Select the user context in OID for the realm of users you want to connect to the database. Click Next.

Move your mouse over this icon to see the image

 

5.

Directory usage configuration is complete. Click Next.

Move your mouse over this icon to see the image

 

6.

Click Finish to quit Oracle Net Configuration Assistant.

Move your mouse over this icon to see the image

Database network connectivity to the LDAP server is now complete.

 

1.

Start Database Configuration Assistant. From the command prompt type dbca.

Example:

# dbca

Click Next on the welcome screen.

Move your mouse over this icon to see the image

 

2.

Select Configure Database Options and then click Next.

Move your mouse over this icon to see the image

 

3.

Select the database you want to configure for Enterprise Users and specify a user with DBA role. Click Next.

Move your mouse over this icon to see the image

 

4.

Select Yes, register the database. Enter the user DN of the user in OID that has authority to register the database with OID. Typically, this is the cn=orcladmin user. Enter the password for the wallet that will be generated as a result of registering the database with OID. After entering all the details, click Next.

Move your mouse over this icon to see the image

 

5.

Click Finish.

Move your mouse over this icon to see the image

 

6.

You wil be prompted to restart the database, click No.

Move your mouse over this icon to see the image

 

7.

Click OK to complete the database registration with OID.

 

8.

The database configuration has completed sucessfully. Click No to exit from the Database Configuration Assistant.

Move your mouse over this icon to see the image

 

1.

Login to the database using SQL*Plus as sysdba. Create a schema user which has permission to create sessions against the database. In this example the user name will be "guest".

Move your mouse over this icon to see the image

 

2.

Now you need to configure the schema mappings for the "guest" user we just created with the users in the OID server.

Start Oracle Enterprise Security Manager using the following command.

# oemapp esm

Enter cn=orcladmin, the password for this OID user, the FQDN of the OID server and the port number that OID is running on. Click OK.

Move your mouse over this icon to see the image

 

3.

Navigate to Oracle Contexts - Default Oracle Context - Enterprise Domains - OracleDefaultDomain.

While OracleDefaultDomain is highlighted select the Database Schema Mapping tab. Then click the Add button.

Move your mouse over this icon to see the image

 

4.

Navigate to the user repository where your OID users are located. The directory entry field should contain the DN of where your "Users" container in OID is located. By selecting the cn=Users container, you are enabling all users in this container to connect to the database.

Select the Subtree Level radio button. In the Schema field enter the name of the database schema user we created earlier in this section. In our example this user name was "guest". Then click OK button.

Move your mouse over this icon to see the image

 

5.

Back on Oracle Enterprise Security Manager screen click the Apply Button.

Move your mouse over this icon to see the image

 

1.

Login to SQL*Plus using a user identity in the OID user realm.

Example:

# sqlplus username/password

Verify the user authentication with the following command.

SQL> select user from dual;

This command shows you the database schema user used to connect to the database.

 

 

2.

The next command shows you the user context in OID that was used to connect to the database.

SQL> select sys_context ('userenv' , 'external_name') from dual;

This command should show the external user name that was used to connect to the database.

Move your mouse over this icon to see the image

 

Back to List

To create enterprise roles perform the following steps:

1.
2.
3.
4.
5.
6.
7.
8.

Back to List

To test the enterprise roles perform the following steps:

1.
2.

 

Back to List

To configure the enterprise roles for group authentication perform the following steps:

1.
2.
3.
4.
5.
6.

Copyright © 2004, Oracle Corporation. All rights reserved.

Contact Us Legal Notices and Terms of UsePrivacy Statement
E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy