[ejabberd] Bug : Ejabberd & LDAP

Alexey Shchepin alexey at sevcom.net
Fri Jul 23 18:25:13 MSD 2004


Hello, Martin!

On Tue, 20 Jul 2004 11:06:13 -0500, you said:

 MG> Hi, I'm actually testing an Ejabberd server (cvs-version) using
 MG> LDAP for authentification.

 MG> I have created multiple user accounts on a Psi profile. When I
 MG> try to connect the whole profile, some accounts (1 or 2) are
 MG> Online and after that the server crashes.

 MG> I don't understand why this is happening ... I hope the following
 MG> log file will help you

[...]

 MG> {{case_clause,{ok,[{#Ref<0.0.0.1673>,
 MG> {<0.303.0>,#Ref<0.0.0.1672>}, searchRequest}]}},

This error should can fixed by patch bellow, but anyway you get
timeout on search request...  Please, can you replace "debug_level =
0" with "debug_level = 2" in eldap.erl, recompile and try again to
reproduce this bug?

--- src/eldap/eldap.erl	23 Nov 2003 20:11:14 -0000	1.1
+++ src/eldap/eldap.erl	23 Jul 2004 14:13:55 -0000
@@ -765,7 +765,7 @@
 cmd_timeout(Timer, Id, S) ->
     Dict = S#eldap.dict,
     case dict:find(Id, Dict) of
-	{ok, [{Id, Timer, From, Name}|Res]} ->
+	{ok, [{Timer, From, Name}|Res]} ->
 	    case Name of
 		searchRequest ->
 		    {Res1, Ref1} = polish(Res),



More information about the ejabberd mailing list