{"id":2321,"date":"2011-02-09T07:28:23","date_gmt":"2011-02-09T11:28:23","guid":{"rendered":"http:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/"},"modified":"2011-02-09T07:28:23","modified_gmt":"2011-02-09T11:28:23","slug":"unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/","title":{"rendered":"Unable to login to Database with Enterprise (OID) User (EUS): &#8220;KZLD_ERR: Failed to bind to LDAP server Err=49&#8221;"},"content":{"rendered":"<p>This post covers &#8220;How to troubleshoot login issues in Oracle Database configured with Enterprise User Security (EUS)&#8221; and using Oracle Internet Directory (OID) as Enterprise User repository.<\/p>\n<p><strong>Deployment<\/strong> :<br \/>\n1) Database <strong>DB1<\/strong> integrated with Oracle Internet Directory using steps mentioned <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E11882_01\/network.112\/e10744\/configur.htm#i1008042\" target=\"_blank\">here<\/a><br \/>\n2) Database registered in OID under domain <strong>DC=mydomain, DC=com<br \/>\n.<br \/>\n<\/strong><\/p>\n<p><strong>What is EUS in Database ?<\/strong><br \/>\nIn simple terms, users can use their enterprise user accounts (OID, AD&#8230; accounts) to connect to Oracle Database so that database accounts are managed in single location (OID, AD or other LDAP server). More on EUS <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E11882_01\/network.112\/e10744\/concepts.htm#CHDBHHCE\" target=\"_blank\">here<\/a><\/p>\n<p><strong>Issue<\/strong> : Users reported that they can&#8217;t login to Database using their OID user accounts.<\/p>\n<p>.<\/p>\n<p><strong>Troubleshooting<\/strong> :<\/p>\n<p><strong>1.<\/strong> First thing to do is enable trace in database as explained <a href=\"https:\/\/onlineappsdba.com\/index.php\/2010\/12\/16\/troubleshoot-ora-01017-for-database-login-when-database-is-configured-with-eus\/\" target=\"_blank\">here<\/a><br \/>\nIn my case error message is<br \/>\n_________<br \/>\n<font color=\"#ff0000\">kzld found pwd in wallet<br \/>\nKZLD_ERR: Failed to bind to LDAP server. Err=49<br \/>\nKZLD_ERR: 49<br \/>\nKZLD is doing LDAP unbind<br \/>\nKZLD_ERR: failed from kzldob_open_bind.<\/font><br \/>\n_________<\/p>\n<p>To understand this issue, lets first understand how EUS login works :<br \/>\n.<br \/>\n.<br \/>\n<u><strong>During Configuration Phase<\/strong><\/u><br \/>\na) During EUS configuration a user is created in OID at cn=[ORACLE_SID], cn=OracleContext, dc=[OID Domain] with random password stored in attribute <strong>userPassword<\/strong> of above user.<br \/>\nb) This username\/password is also stored in wallet on Database Server at $ORACLE_BASE\/admin\/$SID\/wallet . More on Oracle wallet <a href=\"https:\/\/onlineappsdba.com\/index.php\/2008\/01\/09\/oracle-wallets-sslhttps-owm\/\" target=\"_blank\">here<\/a><\/p>\n<p>.<\/p>\n<p><u><strong>During Run Time<\/strong><\/u><br \/>\n1) User type sqlplus [OID_User]\/[OID_Password]@ServiceName<br \/>\n2) System checks SQLNET.ORA and finds LDAP as first entry<br \/>\n3) Connects to LDAP server (OID in my case) as defined in ldap.ora using username and password defined in wallet under $ORACLE_BASE\/admin\/$SID\/wallet<\/p>\n<p>.<br \/>\nAs error in my case is &#8220;<font color=\"#ff0000\">Failed to bind to LDAP server. Err=49&#8243; <\/font>then simple test to check is if I can connect to ldap server using username and password stored in Database Wallet.<\/p>\n<p><strong>How to find Username and Password stored in Database Wallet ?<\/strong><br \/>\nmkstore -wrl $ORACLE_BASE\/admin\/$SID\/wallet -viewEntry ORACLE.SECURITY.DN\u00a0\u00a0 (Run this on database node)<br \/>\nmkstore -wrl $ORACLE_BASE\/admin\/$SID\/wallet -viewEntry ORACLE.SECURITY.PASSWORD \u00a0 (Run this on database node)<\/p>\n<p>mkstore will prompt you for wallet password which you entered during Database registration with OID.<\/p>\n<p>You will get username and password like<br \/>\nORACLE.SECURITY.DN = cn=DB1,cn=OracleContext,dc=mydomain,dc=com<br \/>\nORACLE.SECURITY.PASSWORD = abBP2X7<\/p>\n<p><strong>How to verify Database Connection to LDAP Server ?<\/strong><br \/>\nRun ldapbind like<\/p>\n<p>ldapbind -h [OIDServer] -p [OID_Port] -D &#8220;[ORACLE.SECURITY.DN]&#8221; -w [ORACLE.SECURITY.PASSWORD]\u00a0\u00a0 (OID 11g default LDAP port is 3060 and for OID 10g default LDAP port is 389 )<\/p>\n<p>like<br \/>\nldapbind -h OID_Server -p 3060 -D &#8220;cn=DB1,cn=OracleContext,dc=mydomain,dc=com&#8221; -w\u00a0 abBP2X7<br \/>\nIn my case I received error message<br \/>\n<font color=\"#ff0000\">ldap_bind: Invalid credentials<br \/>\nldap_bind: additional info: Password Policy Error :9000: GSL_PWDEXPIRED_EXCP :Your Password has expired. Please contact the Administrator to change your password. <\/font><\/p>\n<p>OID by default comes with default password policy cn=default,cn=pwdPolicies,cn=common,cn=products,cn=oracleContext,DC=DOMAIN\u00a0 with pwdMaxAge set to 10368000 (120 days).<\/p>\n<p><u><strong>Fix<\/strong><\/u> :<\/p>\n<p>Now we know root cause of issue so fix is to<br \/>\n<strong>Fix1 (Short Term)<\/strong>: Go to OID and update password for cn=DB1,cn=OracleContext,dc=mydomain,dc=com at attribute userPassword with value received from ORACLE.SECURITY.PASSWORD<\/p>\n<p><strong>Fix2 (Long Term)<\/strong>: Go to OID and update password policy to <strong>not expire<\/strong> password by setting attribute <strong>pwdMaxAge<\/strong> to blank for\u00a0 cn=default,cn=pwdPolicies,cn=common,cn=products,cn=oracleContext,DC=DOMAIN\u00a0 (If will affect all accounts in OID and if this solution is not acceptable then create second Password Policy in OID with pwdMaxAge to very high value or blank) . More on Password Policy in OID <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E14571_01\/oid.1111\/e10029\/pwdpolicies.htm#i1044704\" target=\"_blank\">here<\/a><\/p>\n<p><font color=\"#ff0000\"><br \/>\n<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post covers &#8220;How to troubleshoot login issues in Oracle Database configured with Enterprise User Security (EUS)&#8221; and using Oracle [&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":[42],"tags":[],"class_list":["post-2321","post","type-post","status-publish","format-standard","hentry","category-troubleshooting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Unable to login to Database with Enterprise (OID) User (EUS): &quot;KZLD_ERR: Failed to bind to LDAP server Err=49&quot; -<\/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\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unable to login to Database with Enterprise (OID) User (EUS): &quot;KZLD_ERR: Failed to bind to LDAP server Err=49&quot; -\" \/>\n<meta property=\"og:description\" content=\"This post covers &#8220;How to troubleshoot login issues in Oracle Database configured with Enterprise User Security (EUS)&#8221; and using Oracle [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/\" \/>\n<meta property=\"article:published_time\" content=\"2011-02-09T11:28:23+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\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/\",\"name\":\"Unable to login to Database with Enterprise (OID) User (EUS): \\\"KZLD_ERR: Failed to bind to LDAP server Err=49\\\" -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"datePublished\":\"2011-02-09T11:28:23+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unable to login to Database with Enterprise (OID) User (EUS): &#8220;KZLD_ERR: Failed to bind to LDAP server Err=49&#8221;\"}]},{\"@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":"Unable to login to Database with Enterprise (OID) User (EUS): \"KZLD_ERR: Failed to bind to LDAP server Err=49\" -","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\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/","og_locale":"en_US","og_type":"article","og_title":"Unable to login to Database with Enterprise (OID) User (EUS): \"KZLD_ERR: Failed to bind to LDAP server Err=49\" -","og_description":"This post covers &#8220;How to troubleshoot login issues in Oracle Database configured with Enterprise User Security (EUS)&#8221; and using Oracle [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/","article_published_time":"2011-02-09T11:28:23+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\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/","url":"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/","name":"Unable to login to Database with Enterprise (OID) User (EUS): \"KZLD_ERR: Failed to bind to LDAP server Err=49\" -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"datePublished":"2011-02-09T11:28:23+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/09\/unable-to-login-to-database-with-enterprise-oid-user-eus-kzld_err-failed-to-bind-to-ldap-server-err49\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"Unable to login to Database with Enterprise (OID) User (EUS): &#8220;KZLD_ERR: Failed to bind to LDAP server Err=49&#8221;"}]},{"@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\/2321","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=2321"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/2321\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=2321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=2321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=2321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}