-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I can confirm this behavior. Enabling the LDAP authentication causes
ejabberd to crash even if the LDAP server does not support StartTLS
and TLS is explicitly disabled in ejabberd.cfg:
{auth_method, ldap}.
{ldap_servers, ["localhost"]}.
{ldap_encrypt, none}.
{ldap_port, 389}.
Here is the report from erlang.log:
=CRASH REPORT==== 2-Sep-2013::12:25:00 ===
crasher:
initial call: tls:init/1
pid: <0.371.0>
registered_name: tls
exception exit: {bad_return_value,
{error,
"SSL_CTX_use_certificate_file failed:
error:02001002:system library:fopen:No such file or directory"}}
in function gen_server:init_it/6 (gen_server.erl, line 332)
ancestors: ['eldap_#Ref<0.0.0.10809>','ejabberd_auth_ldap_fladi.at',
ejabberd_sup,<0.38.0>]
messages: []
links: [#Port<0.3628>]
dictionary: []
trap_exit: false
status: running
heap_size: 610
stack_size: 27
reductions: 229
neighbours:
=SUPERVISOR REPORT==== 2-Sep-2013::12:25:00 ===
Supervisor: {local,ejabberd_sup}
Context: start_error
Reason: {{badmatch,
{error,
{asn1,
{undef,
[{asn1rt_ber_bin_v2,encode_integer,
[[],1,[<<2>>]],
[]},
{'ELDAPv3',enc_LDAPMessage,2,
[{file,"ELDAPv3.erl"},{line,288}]},
{'ELDAPv3',encode,2,
[{file,"ELDAPv3.erl"},{line,130}]},
{asn1rt,encode,3,
[{file,"asn1rt.erl"},{line,34}]},
{eldap,bind_request,2,
[{file,"eldap.erl"},{line,1033}]},
{eldap,connect_bind,1,
[{file,"eldap.erl"},{line,1002}]},
{eldap,connecting,2,
[{file,"eldap.erl"},{line,498}]},
{gen_fsm,handle_msg,7,
[{file,"gen_fsm.erl"},{line,505}]}]}}}},
[{eldap,bind_request,2,[{file,"eldap.erl"},{line,1033}]},
{eldap,connect_bind,1,[{file,"eldap.erl"},{line,1002}]},
{eldap,connecting,2,[{file,"eldap.erl"},{line,498}]},
{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,239}]}]}
Offender: [{pid,{restarting,<0.277.0>}},
{name,'ejabberd_auth_ldap_fladi.at'},
{mfargs,{ejabberd_auth_ldap,start_link,["fladi.at"]}},
{restart_type,transient},
{shutdown,1000},
{child_type,worker}]
=SUPERVISOR REPORT==== 2-Sep-2013::12:25:00 ===
Supervisor: {local,ejabberd_sup}
Context: shutdown
Reason: reached_max_restart_intensity
Offender: [{pid,{restarting,<0.277.0>}},
{name,'ejabberd_auth_ldap_fladi.at'},
{mfargs,{ejabberd_auth_ldap,start_link,["fladi.at"]}},
{restart_type,transient},
{shutdown,1000},
{child_type,worker}]
The line that starts with "SSL_CTX_use_certificate_file failed:"
pretends that some certificate file is missing but there is no
reference to any such file in my configuration (neither c2s nor s2s).
HTH,
- --
Michael Fladischer
Fladi.at
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
iQIcBAEBAgAGBQJSJGhLAAoJEGlMre9Rx7W2FZYP/09uvvSXSn83i3o+61TLWY0t
lpTiTbIm10R1DDiKAmyWPzPka+g9+dY5e0mBjruZaYRUgPPber4tmra7pL1/wjoi
YNYDBtkZePnoAE786c5KQREvRjufXrAYjkXxAfemrFZhyv4wwSZVS9DZlGvBx4aw
AcKr3g8fd5vbWGZlMtNpvIaIC06iBROF1HR8u+ZyvN/O469wMo6aNisQ4HmgQF89
tdyuxCHMS9PGaTP6bja0WuyJ3OiJNcY4Ij6kZH3HGHwMB1VtU0BkQ378fAH6dKbV
bSNMEBdL2a5ya6uLhZ+dmz65n2YH2+p27B65AoK8SGJ9OOIYF5jaR2pZKL3j1DVW
bUMeGSj8jnizz4Ey4JwI+Ay6OyhOcR5QlTi6jssjUBYwPL+YQpUjjO5ztNAG5Eno
7++PLep4xIIDPMdBy7YtpZbAo3B4zpzhQHU37Aej91H75ms8/BvsmCf86QAZih5E
PWwWsdDnfP33f1pABKDMD2aDHRUOYuqnP4K7out3Dx/I8Vg6mK3oeCuExJaR888F
4/aXQJ90HJb3yFVjEfterrCnkyQlswl23KDzBHTPwoGLa5DHB4Bj6aWel2A03Pks
3GfJrbV3uWL1gdQp3MwTezDkyZ0cH9gbbOZf93CPraukQDHqaH9I/Bs0dGtG8DKj
cBOxfKHLOeKhhXEthk1h
=pPWj
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]