{"id":2324,"date":"2011-02-14T10:12:01","date_gmt":"2011-02-14T14:12:01","guid":{"rendered":"http:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/"},"modified":"2011-02-15T05:43:02","modified_gmt":"2011-02-15T09:43:02","slug":"2324","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/","title":{"rendered":"&#8220;sgslunlListen: Bind failed (port=389), OS error=(13)&#8221; error in ldap log: Unable to bind to ldap"},"content":{"rendered":"<p>There are 2 nodes of OAM, OID in our production environment. When the first node services are down i.e., OAM and OID, the applications or webgate should talk to 2nd node OAM service which is already configured in OAM access servers for failover, but that is not happening.<\/p>\n<p>However, the status of services OAM, OID are pretty much ALIVE.\u00a0 So this has put me in doubt. Bouncing OID and OAM applications did not solve the problem. So I had stop OAM services first to ensure whether my LDAP is working fine. Below is the error when I execute ldapbind command.<\/p>\n<p><font color=\"#ff0000\">[oracle@host bin]$ .\/ldapbind<br \/>\nCannot connect to the LDAP server<br \/>\n[oracle@host bin]<\/font><\/p>\n<p>I got a clue here that there is some issue with OID and when I checked the ldap logs, I found the error shown below.<\/p>\n<p><font color=\"#ff0000\">2011\/02\/14:19:05:01 * Main:0 * sgslunlListen: Bind failed (port=389), OS error=(13)<br \/>\n2011\/02\/14:19:05:01 * Main:0 * FATAL * main * Dispatcher Process unable to bind to port<\/font><\/p>\n<p><strong>Cause:<\/strong><\/p>\n<p>After some research I found that this issue is because of the permission change for files oidldapd, oidmon and oidrepld (not sure how) . You can find these commands at location $ORACLE_HOME\/bin. The existing permissions are given below:<\/p>\n<p><font color=\"#ff0000\">[oracle@<\/font><font color=\"#ff0000\">host  bin]$ ls -ltr oidldapd<br \/>\n-rwxrwxrwx\u00a0 1 root oinstall 2747063 Oct 12 15:21 oidldapd<br \/>\n[oracle@<\/font><font color=\"#ff0000\">host  bin]$ ls -ltr oidmon<br \/>\n-rwxrwxrwx\u00a0 1 oracle oinstall 1695043 Dec 29 20:43 oidmon<br \/>\n[oracle@<\/font><font color=\"#ff0000\">host  bin]$ ls -ltr oidrepld<br \/>\n-rwxrwxrwx\u00a0 1 oracle oinstall 1847833 Dec 29 20:43 oidrepld<\/font><\/p>\n<p><strong>What is the action plan? <\/strong><\/p>\n<p>The actual permissions for these commands should be as shown below.<\/p>\n<p><font color=\"#ff0000\"><code>oidldapd:<br \/>\n-rws--x--- root dba<br \/>\noidmon:<br \/>\n-rws--x---   oracle dba<br \/>\noidrepld:<br \/>\n-rws--x---   oracle dba\u00a0<\/code><\/font><\/p>\n<p>I logged in as root user and executed the below command at the location $ORACLE_HOME\/bin.<\/p>\n<p><font color=\"#ff0000\"><code>chmod 4710 oidldapd<br \/>\nchmod 4710 oidmon<br \/>\nchmod 4710 oidrepld<\/code><\/font><\/p>\n<p>Stopped OID process as shown below.<\/p>\n<p>.\/opmnctl stopproc process-type=OID<\/p>\n<p>Searched for ldap processes using the command given below.<\/p>\n<p>ps -ef | grep oidldap<\/p>\n<p>killed those processes which are ALIVE.<\/p>\n<p>Stopped the oidmon process as shown below at the location $ORACLE_HOME\/bin.<\/p>\n<p>.\/oidmon connect=&lt;oid_db&gt; stop<\/p>\n<p>Searched for oid process as shown below and killed live processes.<\/p>\n<p>ps -ef | grep oid<\/p>\n<p>Started the OID component now as shown below.<\/p>\n<p>.\/opmnctl startproc process-type=OID<\/p>\n<p>Then, tried ldapbind command and it worked like a charm!!!!<\/p>\n<p><font color=\"#ff0000\">[oracle@host bin]$ .\/ldapbind<br \/>\nbind successful<\/font><\/p>\n<p><strong>Helpful notes:<\/strong><\/p>\n<p>Metalink Article: <font face=\"helvetica\"><strong>1172775.1<\/strong><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are 2 nodes of OAM, OID in our production environment. When the first node services are down i.e., OAM [&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":[307,31,466],"class_list":["post-2324","post","type-post","status-publish","format-standard","hentry","category-troubleshooting","tag-ldap","tag-oid","tag-troubleshooting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>&quot;sgslunlListen: Bind failed (port=389), OS error=(13)&quot; error in ldap log: Unable to bind to ldap -<\/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\/14\/2324\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;sgslunlListen: Bind failed (port=389), OS error=(13)&quot; error in ldap log: Unable to bind to ldap -\" \/>\n<meta property=\"og:description\" content=\"There are 2 nodes of OAM, OID in our production environment. When the first node services are down i.e., OAM [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/\" \/>\n<meta property=\"article:published_time\" content=\"2011-02-14T14:12:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-02-15T09:43:02+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=\"2 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\/14\/2324\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/\",\"name\":\"\\\"sgslunlListen: Bind failed (port=389), OS error=(13)\\\" error in ldap log: Unable to bind to ldap -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"datePublished\":\"2011-02-14T14:12:01+00:00\",\"dateModified\":\"2011-02-15T09:43:02+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"&#8220;sgslunlListen: Bind failed (port=389), OS error=(13)&#8221; error in ldap log: Unable to bind to ldap\"}]},{\"@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":"\"sgslunlListen: Bind failed (port=389), OS error=(13)\" error in ldap log: Unable to bind to ldap -","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\/14\/2324\/","og_locale":"en_US","og_type":"article","og_title":"\"sgslunlListen: Bind failed (port=389), OS error=(13)\" error in ldap log: Unable to bind to ldap -","og_description":"There are 2 nodes of OAM, OID in our production environment. When the first node services are down i.e., OAM [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/","article_published_time":"2011-02-14T14:12:01+00:00","article_modified_time":"2011-02-15T09:43:02+00:00","author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/","url":"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/","name":"\"sgslunlListen: Bind failed (port=389), OS error=(13)\" error in ldap log: Unable to bind to ldap -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"datePublished":"2011-02-14T14:12:01+00:00","dateModified":"2011-02-15T09:43:02+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2011\/02\/14\/2324\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"&#8220;sgslunlListen: Bind failed (port=389), OS error=(13)&#8221; error in ldap log: Unable to bind to ldap"}]},{"@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\/2324","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=2324"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/2324\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=2324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=2324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=2324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}