{"id":377,"date":"2012-05-04T13:34:15","date_gmt":"2012-05-04T13:34:15","guid":{"rendered":"http:\/\/www.plugged.in\/?p=377"},"modified":"2012-05-04T13:34:15","modified_gmt":"2012-05-04T13:34:15","slug":"zimbra-mail-server-unable-to-determine-enabled-services-from-ldap","status":"publish","type":"post","link":"https:\/\/www.veriteknik.net.tr\/en\/zimbra-mail-server-unable-to-determine-enabled-services-from-ldap\/","title":{"rendered":"(Zimbra Mail Server) Unable to determine enabled services from LDAP"},"content":{"rendered":"<blockquote>[zimbra@ck]$ zmcontrol start<br \/>\nHost mail.plugged.in<br \/>\n        Starting ldap&#8230;Done.<br \/>\nUnable to determine enabled services from ldap.<br \/>\nEnabled services read from cache. Service list may be inaccurate.<br \/>\n        Starting logger&#8230;Failed.<br \/>\nStarting logswatch&#8230;ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)<br \/>\nzimbra logger service is not enabled!  failed.<\/p><\/blockquote>\n<p>The usual reason for this error is expired an SSL certificate.<\/p>\n<p><!--more--><br \/>\nThis error usually happens if your SSL certificate has expired. There are two solutions for this problem.<\/p>\n<p><strong>The first solution is renewing your certificate and deploying it with the following command :<\/strong><\/p>\n<p>&nbsp;<\/p>\n<blockquote>[zimbra@ck]$ \/opt\/zimbra\/bin\/zmcertmgr deploycrt comm \/opt\/zimbra\/ssl\/zimbra\/commercial\/your_new_ssl.crt \/path\/to\/ca_bundle.crt<\/p><\/blockquote>\n<p>After this you need to restart zmcontrol.<\/p>\n<p><strong>The second solution is regenerating self-signed certificate.<\/strong><\/p>\n<blockquote>[zimbra@ck]$ su &#8211; zimbra -c &#8216;zmcontrol stop&#8217;<br \/>\n[zimbra@ck]$ rm -rf \/opt\/zimbra\/ssl\/*<br \/>\n[zimbra@ck]$ rm -rf \/opt\/zimbra\/ssl\/.rnd<br \/>\n[zimbra@ck]$ \/opt\/zimbra\/java\/bin\/keytool -delete -alias my_ca -keystore \/opt\/zimbra\/java\/jre\/lib\/security\/cacerts -storepass changeit<br \/>\n[zimbra@ck]$ \/opt\/zimbra\/java\/bin\/keytool -delete -alias jetty -keystore \/opt\/zimbra\/mailboxd\/etc\/keystore -storepass `su &#8211; zimbra -c &#8216;zmlocalconfig -s -m nokey mailboxd_keystore_password&#8217;`<\/p><\/blockquote>\n<p>Then you need to edit\u00a0 \/opt\/zimbra\/bin\/zmcertmgr file ( you can use &#8216;vi&#8217; )<\/p>\n<p>Find validation_days=365 and change to validation_days=3650<\/p>\n<p>And save \/opt\/zimbra\/bin\/zmcertmgr<\/p>\n<blockquote>[zimbra@ck]$ \/opt\/zimbra\/bin\/zmcertmgr createca -new<br \/>\n[zimbra@ck]$ \/opt\/zimbra\/bin\/zmcertmgr deployca -localonly<br \/>\n[zimbra@ck]$ \/opt\/zimbra\/bin\/zmcertmgr createcrt self -new<br \/>\n[zimbra@ck]$ \/opt\/zimbra\/bin\/zmcertmgr deploycrt self<\/p>\n[zimbra@ck]$ su &#8211; zimbra -c &#8216;zmcontrol start&#8217;<\/p>\n[zimbra@ck]$ \/opt\/zimbra\/bin\/zmcertmgr deploycrt self<br \/>\n[zimbra@ck]$ \/opt\/zimbra\/bin\/zmcertmgr deployca<\/p>\n[zimbra@ck]$ su &#8211; zimbra -c &#8216;zmupdateauthkeys&#8217;<br \/>\n[zimbra@ck]$ \/opt\/zimbra\/bin\/zmcertmgr viewdeployedcrt<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[zimbra@ck]$ zmcontrol start Host mail.plugged.in Starting ldap&#8230;Done. Unable to determine enabled services from ldap. Enabled services read from cache. Service list may be inaccurate. Starting logger&#8230;Failed. Starting logswatch&#8230;ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) zimbra logger service is not enabled! [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[370,372],"tags":[496,497,498],"yst_prominent_words":[],"class_list":["post-377","post","type-post","status-publish","format-standard","hentry","category-linux","category-linux_help","tag-ldap-service-error","tag-service-error","tag-zimbra"],"jetpack_featured_media_url":"","uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Cevdet Kaymaz","author_link":"https:\/\/www.veriteknik.net.tr\/en\/author\/cevdet-kaymaz\/"},"uagb_comment_info":0,"uagb_excerpt":"[zimbra@ck]$ zmcontrol start Host mail.plugged.in Starting ldap&#8230;Done. Unable to determine enabled services from ldap. Enabled services read from cache. Service list may be inaccurate. Starting logger&#8230;Failed. Starting logswatch&#8230;ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) zimbra logger service is not enabled!&hellip;","_links":{"self":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":0,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/tags?post=377"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/yst_prominent_words?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}