<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>36195</bug_id>
          
          <creation_ts>2019-02-28 04:23:27 +0300</creation_ts>
          <short_desc>ejabberd cannot connect to ldap server via TLS</short_desc>
          <delta_ts>2019-03-12 14:17:30 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ejabberd</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>34231</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Vladimir D. Seleznev">vseleznv</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>aen</cc>
    
    <cc>darktemplaralt</cc>
    
    <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>179051</commentid>
    <comment_count>0</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2019-02-28 04:23:27 +0300</bug_when>
    <thetext>$ rpm -q --qf &apos;%{EVR}\n&apos; ejabberd                                                                                                                
18.12.1-alt1                                                                                                                                                  
$ rpm -q --qf &apos;%{EVR}\n&apos; erlang                                                                                                                  
1:21.2.4-alt3                                                                                                                                                 

$ tail -F /var/log/ejabberd/ejabberd.log
2019-02-28 01:15:45.952 [error] &lt;0.557.0&gt;@eldap:connect_bind:1073 LDAP connection to ldap.server:636 failed: TLS Alert: handshake failure                 
2019-02-28 01:15:45.955 [error] &lt;0.558.0&gt;@eldap:connect_bind:1073 LDAP connection to ldap.server:636 failed: TLS Alert: handshake failure                 
2019-02-28 01:15:45.955 [info] &lt;0.590.0&gt; TLS client: In state hello received SERVER ALERT: Fatal - Handshake Failure                                          

2019-02-28 01:15:46.453 [debug] &lt;0.557.0&gt;@eldap:connect_bind:1051 Connecting to LDAP server at ldap.server:636 with options [{packet,asn1},{active,true},{k
eepalive,true},binary]                                                                                                                                        
2019-02-28 01:15:46.456 [debug] &lt;0.558.0&gt;@eldap:connect_bind:1051 Connecting to LDAP server at ldap.server:636 with options [{packet,asn1},{active,true},{k
eepalive,true},binary]                                                                                                                                        
2019-02-28 01:15:46.461 [info] &lt;0.596.0&gt; TLS client: In state hello received SERVER ALERT: Fatal - Handshake Failure                                          

This can be related: https://stackoverflow.com/questions/52637744/why-do-i-get-an-error-with-my-code-in-erlang-21-but-not-in-erlang-20</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179189</commentid>
    <comment_count>1</comment_count>
    <who name="Aleksei Nikiforov">darktemplaralt</who>
    <bug_when>2019-03-05 16:58:49 +0300</bug_when>
    <thetext>Можете проверить решает ли ejabberd версии 19.02-alt1 из тестового таска #223782 данную проблему?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179384</commentid>
    <comment_count>2</comment_count>
    <who name="Aleksei Nikiforov">darktemplaralt</who>
    <bug_when>2019-03-12 14:17:30 +0300</bug_when>
    <thetext>Задание отправлено в Сизиф.

Если проблема всё ещё воспроизводится с новой версией, прошу предоставить информацию, достаточную для воспроизведения проблемы, и переоткрыть баг.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>