{"id":2206,"date":"2010-05-10T23:56:50","date_gmt":"2010-05-11T06:56:50","guid":{"rendered":"http:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/"},"modified":"2010-05-10T23:56:50","modified_gmt":"2010-05-11T06:56:50","slug":"ldap_sasl_bindsimple-cant-contact-ldap-server-1","status":"publish","type":"post","link":"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/","title":{"rendered":"ldap_sasl_bind(SIMPLE): Can&#8217;t contact LDAP server (-1)"},"content":{"rendered":"<p>On a centos machine ldapsearch was not giving me much love when accessing a Microsoft Global directory server via ldaps and a given port. The error message I got was:<\/p>\n<p><code><br \/>\nldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)<br \/>\n<\/code><\/p>\n<p>When turning up debug level via -d 1 as in<\/p>\n<p><code><br \/>\nldapsearch -d 1 -v -H ldaps:\/\/servername:portnumber<br \/>\n<\/code><\/p>\n<p>I got the bit more revealing error message:<\/p>\n<p><code><br \/>\nTLS certificate verification: Error, unable to get local issuer certificate<br \/>\nTLS trace: SSL3 alert write:fatal:unknown CA<br \/>\nTLS trace: SSL_connect:error in SSLv3 read server certificate B<br \/>\nTLS trace: SSL_connect:error in SSLv3 read server certificate B<br \/>\nTLS: can't connect: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (unable to get local issuer certificate).<br \/>\n<\/code><\/p>\n<p>It turns out that a simple line like<\/p>\n<p><code><br \/>\nTLS_REQCERT never<br \/>\n<\/code><\/p>\n<p>in ldap.conf makes things better. In my particular install a simple &#8216;locate ldap.conf&#8217; was a bit misleading. The true location of your config file can be revealed via:<\/p>\n<p><code><br \/>\nstrace ldapsearch -v -H  ldaps:\/\/servername:portnumber 2>&1 | grep ldap.conf<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On a centos machine ldapsearch was not giving me much love when accessing a Microsoft Global directory server via ldaps and a given port. The error message I got was: ldap_sasl_bind(SIMPLE): Can&#8217;t contact LDAP server (-1) When turning up debug level via -d 1 as in ldapsearch -d 1 -v -H ldaps:\/\/servername:portnumber I got the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ldap_sasl_bind(SIMPLE): Can&#039;t contact LDAP server (-1) - Andreas Wacker<\/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:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ldap_sasl_bind(SIMPLE): Can&#039;t contact LDAP server (-1) - Andreas Wacker\" \/>\n<meta property=\"og:description\" content=\"On a centos machine ldapsearch was not giving me much love when accessing a Microsoft Global directory server via ldaps and a given port. The error message I got was: ldap_sasl_bind(SIMPLE): Can&#039;t contact LDAP server (-1) When turning up debug level via -d 1 as in ldapsearch -d 1 -v -H ldaps:\/\/servername:portnumber I got the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/\" \/>\n<meta property=\"og:site_name\" content=\"Andreas Wacker\" \/>\n<meta property=\"article:published_time\" content=\"2010-05-11T06:56:50+00:00\" \/>\n<meta name=\"author\" content=\"1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@_andreaswacker\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"1\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/\"},\"author\":{\"name\":\"1\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/691b5221b886b3b09742e476a16e5631\"},\"headline\":\"ldap_sasl_bind(SIMPLE): Can&#8217;t contact LDAP server (-1)\",\"datePublished\":\"2010-05-11T06:56:50+00:00\",\"dateModified\":\"2010-05-11T06:56:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/\"},\"wordCount\":95,\"publisher\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a\"},\"articleSection\":[\"linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/\",\"url\":\"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/\",\"name\":\"ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) - Andreas Wacker\",\"isPartOf\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#website\"},\"datePublished\":\"2010-05-11T06:56:50+00:00\",\"dateModified\":\"2010-05-11T06:56:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.andreaswacker.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ldap_sasl_bind(SIMPLE): Can&#8217;t contact LDAP server (-1)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#website\",\"url\":\"https:\/\/www.andreaswacker.com\/blog\/\",\"name\":\"Andreas Wacker\",\"description\":\"weblog\",\"publisher\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.andreaswacker.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a\",\"name\":\"Andreas Wacker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png\",\"contentUrl\":\"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png\",\"width\":248,\"height\":248,\"caption\":\"Andreas Wacker\"},\"logo\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.andreaswacker.com\",\"https:\/\/www.instagram.com\/_andreaswacker\/\",\"https:\/\/x.com\/_andreaswacker\",\"https:\/\/www.youtube.com\/channel\/UCWwFtVC_HATVr-R5EiNmhHw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/691b5221b886b3b09742e476a16e5631\",\"name\":\"1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"1\"},\"url\":\"https:\/\/www.andreaswacker.com\/blog\/author\/1\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) - Andreas Wacker","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:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/","og_locale":"en_US","og_type":"article","og_title":"ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) - Andreas Wacker","og_description":"On a centos machine ldapsearch was not giving me much love when accessing a Microsoft Global directory server via ldaps and a given port. The error message I got was: ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) When turning up debug level via -d 1 as in ldapsearch -d 1 -v -H ldaps:\/\/servername:portnumber I got the [&hellip;]","og_url":"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/","og_site_name":"Andreas Wacker","article_published_time":"2010-05-11T06:56:50+00:00","author":"1","twitter_card":"summary_large_image","twitter_site":"@_andreaswacker","twitter_misc":{"Written by":"1","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/#article","isPartOf":{"@id":"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/"},"author":{"name":"1","@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/691b5221b886b3b09742e476a16e5631"},"headline":"ldap_sasl_bind(SIMPLE): Can&#8217;t contact LDAP server (-1)","datePublished":"2010-05-11T06:56:50+00:00","dateModified":"2010-05-11T06:56:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/"},"wordCount":95,"publisher":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a"},"articleSection":["linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/","url":"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/","name":"ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) - Andreas Wacker","isPartOf":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#website"},"datePublished":"2010-05-11T06:56:50+00:00","dateModified":"2010-05-11T06:56:50+00:00","breadcrumb":{"@id":"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.andreaswacker.com\/blog\/2010\/05\/10\/ldap_sasl_bindsimple-cant-contact-ldap-server-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.andreaswacker.com\/blog\/"},{"@type":"ListItem","position":2,"name":"ldap_sasl_bind(SIMPLE): Can&#8217;t contact LDAP server (-1)"}]},{"@type":"WebSite","@id":"https:\/\/www.andreaswacker.com\/blog\/#website","url":"https:\/\/www.andreaswacker.com\/blog\/","name":"Andreas Wacker","description":"weblog","publisher":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.andreaswacker.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a","name":"Andreas Wacker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png","contentUrl":"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png","width":248,"height":248,"caption":"Andreas Wacker"},"logo":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.andreaswacker.com","https:\/\/www.instagram.com\/_andreaswacker\/","https:\/\/x.com\/_andreaswacker","https:\/\/www.youtube.com\/channel\/UCWwFtVC_HATVr-R5EiNmhHw"]},{"@type":"Person","@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/691b5221b886b3b09742e476a16e5631","name":"1","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"1"},"url":"https:\/\/www.andreaswacker.com\/blog\/author\/1\/"}]}},"_links":{"self":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/posts\/2206"}],"collection":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/comments?post=2206"}],"version-history":[{"count":0,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/posts\/2206\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/media?parent=2206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/categories?post=2206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/tags?post=2206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}