{"id":2239,"date":"2010-12-16T12:11:39","date_gmt":"2010-12-16T16:11:39","guid":{"rendered":"http:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/"},"modified":"2010-12-16T12:11:39","modified_gmt":"2010-12-16T16:11:39","slug":"troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/","title":{"rendered":"Troubleshoot ORA-01017 for database login when Database is configured with EUS"},"content":{"rendered":"<p>This post cover steps on how to troubleshoot Database Login issue (ORA-01017 Invalid Username\/Password)\u00a0where Oracle Database is registered with LDAP Server (<a target=\"_blank\" href=\"https:\/\/onlineappsdba.com\/index.php\/2006\/12\/04\/oracle-internet-directory-oid\/\">OID<\/a>\u00a0or Microsoft Active Directory) for Enterprise User Security.<\/p>\n<ul>\n<li>For basic overview of Enterprise User Security <a target=\"_blank\" href=\"https:\/\/onlineappsdba.com\/index.php\/2010\/11\/29\/enterprise-user-security-eus-overview-for-oracle-database-1011g\/\">click here<\/a><\/li>\n<li>Steps to configure Enterprise User Security are <a target=\"_blank\" href=\"http:\/\/download.oracle.com\/docs\/cd\/E11882_01\/network.112\/e10744\/configur.htm#i1008042\">here<\/a><strong>\u00a0<\/strong><\/li>\n<\/ul>\n<p><strong>Steps to troubleshoot login issues in Oracle Database with EUS<\/strong><\/p>\n<p><strong>1.<\/strong> Enable Trace<br \/>\nSQL&gt; <strong>alter system set events &#8216;28033 trace name context forever, level 9&#8217;;<\/strong><\/p>\n<p><strong>2.<\/strong> Try connecting from\u00a0SQLPLUS using enterprise user (User in LDAP server i.e. OID\/AD user)<\/p>\n<p><strong>3.<\/strong> Check logs in\u00a0<strong>user_dump_dest <\/strong>location\u00a0(Default location in 11g database is\u00a0$ORACLE_BASE\/diag\/rdbms\/$SID\/$SID\/trace )<\/p>\n<p>In my case error was<\/p>\n<p>_________<br \/>\n<font color=\"#ff0000\">kzld_discover received ldaptype: OID<br \/>\nKZLD_ERR : failed to get cred from wallet<br \/>\nKZLD_ERR : Failed to bind to LDAP Server Err=28032<br \/>\nKZLD_ERR : 28032<br \/>\nKZLD is doing LDAP unbind<br \/>\nKZLD_ERR: found err from kzldini<\/font><br \/>\n_________<\/p>\n<p><strong>4.<\/strong> Disable trace<\/p>\n<p>SQL&gt; <strong>alter system set events &#8216;28033 trace name context off&#8217;;<\/strong><\/p>\n<p><strong>.<\/strong><\/p>\n<p>Based on error message it is easy to troubleshoot (<font color=\"#ff0000\">only if you know request flow and how EUS works<\/font>)<\/p>\n<p>.<\/p>\n<p><strong><u>Flow for\u00a0Enterprise User Login using SQLNET\u00a0for Database<\/u><\/strong><\/p>\n<p>Here is flow when you issue &#8220;<strong>sqlplus ldap_user\/ldap_user_password@Alias<\/strong>&#8221;\u00a0to connect to database<\/p>\n<p><strong>1.<\/strong>\u00a0Checks entry in <strong>sqlnet.ora<\/strong> (under $TNS_ADMIN, if not set then uses\u00a0$ORACLE_HOME\/network\/admin)\u00a0<\/p>\n<p>Entry in <strong>ldap.ora<\/strong> like <strong>NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES)<\/strong>\u00a0 &#8211; here first entry is LDAP which means ldap.ora is used as first option to find database server, port, SID\/SERVICE<\/p>\n<p>Entry in ldap.ora looks like<br \/>\nDIRECTORY_SERVERS=(ldap_server:Non_SSL_port:SSL_port)<br \/>\nDEFAULT_ADMIN_CONTEXT=&#8221;dc=mydomain,dc=com&#8221;<\/p>\n<p><strong>2.<\/strong> Uses <strong>wallet<\/strong> (secured file based repository to store credentials to connect to OID)\u00a0. More on wallet <a target=\"_blank\" href=\"https:\/\/onlineappsdba.com\/index.php\/2008\/01\/09\/oracle-wallets-sslhttps-owm\/\">here<\/a><\/p>\n<p><strong>3. <\/strong>Default wallet location in database is $ORACLE_BASE\/admin\/$SID\/wallet and stores username\u00a0as LDAP\u00a0entry cn=$SID,cn=OracleContext,[dc=mydomain,dc=com] and password which is used to connect to LDAP\/OID server. (based on database parameter <strong>LDAP_DIRECTORY_ACCESS<\/strong>)<\/p>\n<p><font color=\"#ff0000\">In my case ORACLE_BASE was not set properly during startup\u00a0hence database couldn&#8217;t find wallet location<\/font>.<\/p>\n<p>.<\/p>\n<p><strong><u>Steps to\u00a0change database password used to connect to OID<\/u><\/strong><br \/>\n&#8211; Start DBCA (Database Configuration Assistance\u00a0)<br \/>\n<strong>a)<\/strong> select <strong>Configure Database Options in a Database<\/strong>, and click Next<br \/>\n<strong>b)<\/strong> Select <strong>a database <\/strong>and click Next.<br \/>\n<strong>c)<\/strong> Select <strong>Regenerate database password<\/strong><br \/>\n<strong>d)<\/strong>Enter the LDAP server username\/password and a password for the database wallet. Click OK.<br \/>\n<strong>e)<\/strong> Click Finish if you are only regenerating the password.<\/p>\n<p><strong>4.<\/strong> Once database is connected to OID\/LDAP using\u00a0 <strong>cn=$SID,cn=OracleContext,[dc=mydomain,dc=com]<\/strong>\u00a0and password stored in wallet, it check if user exists in LDAP\/OID server.<\/p>\n<p><strong>5.<\/strong>\u00a0 User-to-Schema mapping : Once user exists in\u00a0LDAP\/OID then it checks user to schema mapping (<font color=\"#ff0000\">user to schema can be <strong>1 to 1<\/strong> or<strong>\u00a0many to 1<\/strong><\/font>).<\/p>\n<p><strong>6.<\/strong>\u00a0 User-to-Group : Once users schema is identified then it searches for all groups which this user is member of.<\/p>\n<p><strong>7.<\/strong>\u00a0 Group-to-Enterprise Role mapping : Once all groups are identified then it check <strong>group-to-enterprise role<\/strong> mapping to find all enterprise roles which this user is entitled.<\/p>\n<p><strong>8.<\/strong>Enterprise Role-to-Global Database Role mapping : Once enterprise roles assigned to this user are identified then global database role assigned to this user is identified using &#8220;Enterprise Role-to-Global Database Role mapping&#8221;<\/p>\n<p><strong>9.<\/strong> LDAP\/OID returns user back to database with schema and global database role assigned to this user.<\/p>\n<p>.<\/p>\n<p><strong><u>Related\/References<\/u><\/strong><\/p>\n<ul>\n<li>453853.1\u00a0 Step by Step Guide To Troubleshooting 10g Enterprise User Security (EUS) &#8211; Password Authentication<\/li>\n<li>783502.1\u00a0 EUS Authentication Fails With ORA-28030<\/li>\n<li>261178.1\u00a0 Enterprise User Security Configuration: Resolving ORA-28030 Errors<\/li>\n<li><a target=\"_blank\" href=\"http:\/\/oraclemva.wordpress.com\/2009\/09\/16\/suddenly-eus-stops-working\/\">EUS Stop working &#8211; Blog from Jacco H. Landlust<\/a>\u00a0<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This post cover steps on how to troubleshoot Database Login issue (ORA-01017 Invalid Username\/Password)\u00a0where Oracle Database is registered with LDAP [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[424,42],"tags":[],"class_list":["post-2239","post","type-post","status-publish","format-standard","hentry","category-database","category-troubleshooting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Troubleshoot ORA-01017 for database login when Database is configured with EUS -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Troubleshoot ORA-01017 for database login when Database is configured with EUS -\" \/>\n<meta property=\"og:description\" content=\"This post cover steps on how to troubleshoot Database Login issue (ORA-01017 Invalid Username\/Password)\u00a0where Oracle Database is registered with LDAP [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/\" \/>\n<meta property=\"article:published_time\" content=\"2010-12-16T16:11:39+00:00\" \/>\n<meta name=\"author\" content=\"Masroof Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Masroof Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/\",\"name\":\"Troubleshoot ORA-01017 for database login when Database is configured with EUS -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"datePublished\":\"2010-12-16T16:11:39+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Troubleshoot ORA-01017 for database login when Database is configured with EUS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineappsdba.com\/#website\",\"url\":\"https:\/\/onlineappsdba.com\/\",\"name\":\"\",\"description\":\"Oracle Implementation &amp; Training Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineappsdba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\",\"name\":\"Masroof Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"caption\":\"Masroof Ahmad\"},\"url\":\"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Troubleshoot ORA-01017 for database login when Database is configured with EUS -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/","og_locale":"en_US","og_type":"article","og_title":"Troubleshoot ORA-01017 for database login when Database is configured with EUS -","og_description":"This post cover steps on how to troubleshoot Database Login issue (ORA-01017 Invalid Username\/Password)\u00a0where Oracle Database is registered with LDAP [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/","article_published_time":"2010-12-16T16:11:39+00:00","author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/","url":"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/","name":"Troubleshoot ORA-01017 for database login when Database is configured with EUS -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"datePublished":"2010-12-16T16:11:39+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"Troubleshoot ORA-01017 for database login when Database is configured with EUS"}]},{"@type":"WebSite","@id":"https:\/\/onlineappsdba.com\/#website","url":"https:\/\/onlineappsdba.com\/","name":"","description":"Oracle Implementation &amp; Training Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineappsdba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb","name":"Masroof Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","caption":"Masroof Ahmad"},"url":"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/2239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/comments?post=2239"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/2239\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=2239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=2239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=2239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}