Select Page

Kerberos Authentication with Oracle Databases

Cindy Putnam | | September 8, 2020

In an effort to simplify Oracle database authentication, Kerberos will be installed and configured to authenticate user’s password against Microsoft AD. This will allow users to maintain only one password for AD and Oracle databases.

There are several parts to the configuration; MS AD, Unix and Oracle Database. This document will consolidate all the parts into one document for a consistent installation across all the database servers.

Microsoft AD

Create a user with the samaccountname that matches the short name. The cn, displayname, givenname and name attributes must match FQDN.

The following was run from PDC emulator (Should be able to use any DC).  The password was a generated, complex password.


ktpass.exe -princ <userPrincipalName> -mapuser <cn> -crypto all -pass $pass -out C:\temp\krb5.keypass

The pertinent user attributes are below.  The red color represents admin entered.  The black bold represent populated by the ktpass command when it creates the keytab file.

cn                       <servername>.<>
displayName              <servername>.<>
distinguishedName        CN=<servername>.<>,OU=AIX,DC=corp,DC=<company>,DC=com
givenName                <servername>.<>
name                     <servername>.<>
sAMAccountName           <servername>
servicePrincipalName     oracle/<servername>.<>
userAccountControl       [512] User
userPrincipalName        oracle/<servername>.<>@CORP.<COMPANY.COM>

The resultant file was transferred to the *nix admin for installation and config.


Make krb components available:

revise AD server exports to make /export/71 available to target server(s);
mount AD Server:/export/71 /mnt
cd /mnt/lppsource_71TL3SP6_full/installp/ppc
smitty install from current directory

Check/Install these Kerberos components:

krb5.client.rte      Network Authentication Servi…
krb5.client.samples  Network Authentication Servi…
krb5.doc.en_US.html  Network Auth Service HTML Do…
krb5.doc.en_US.pdf   Network Auth Service PDF Doc…
krb5.lic             Network Authentication Servi…

Revise kerberos entries in /etc/services:

kerberos                88/tcp  kerberos5 krb5  # Kerberos v5
kerberos                88/udp  kerberos5 krb5  # Kerberos v5

Oracle Database Servers

Create or add the following to the sqlnet.ora file ($ORACLE_HOME/network/admin)


Update each user with the following:

alter user <username> identified externally as ‘<username>@CORP.<COMPANY.COM>’;


I hope this blog helps provide you with a one stop shop to simplify your Oracle database authentication. If you’re looking for support your Oracle databases, please reach out.

Subscribe to Our Blog

Never miss a post! Stay up to date with the latest database, application and analytics tips and news. Delivered in a handy bi-weekly update straight to your inbox. You can unsubscribe at any time.

How to Solve the Oracle Error ORA-12154: TNS:could not resolve the connect identifier specified

The “ORA-12154: TNS:could not resolve the connect identifier specified” Oracle error is a commonly seen message for database administrators.

Vijay Muthu | February 4, 2021

12c Upgrade Bug with SQL Tuning Advisor

Learn the steps to take on your Oracle upgrade 11.2 to 12.1 if you’re having performance problems. Oracle offers a patch and work around to BUG 20540751.

Megan Elphingstone | March 22, 2017

Shortcut to Fixing a Corrupted Oracle Inventory

Oracle Central Inventory files are essential to installing and patching software. The process for fixing a corrupted file can be found here.

Chad Cleveland | February 23, 2016

Work with Us

Let’s have a conversation about what you need to succeed and how we can help get you there.


Work for Us

Where do you want to take your career? Explore exciting opportunities to join our team.