Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 188679

Summary: net-im/ejabberd-1.1.3-r2 can't authenticate in LDAP directory
Product: Gentoo Linux Reporter: Vladimir Remnev <gentoo>
Component: Current packagesAssignee: Tony Vroon (RETIRED) <chainsaw>
Status: RESOLVED FIXED    
Severity: normal CC: azamat.hackimov
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 1.1.3-ldap-fix.patch
1.1.3-ldap-fix.patch

Description Vladimir Remnev 2007-08-13 03:40:10 UTC
When configured LDAP authentication, ejabberd continually BINDs to LDAP, but does not do anything more.

Reproducible: Always

Steps to Reproduce:




Here the patch which fixes this issue:
diff -ruN ejabberd-1.1.3/src/eldap/eldap.erl ejabberd-1.1.3.new/src/eldap/eldap.erl
--- ejabberd-1.1.3/src/eldap/eldap.erl  2006-09-23 16:52:53.000000000 +0700
+++ ejabberd-1.1.3.new/src/eldap/eldap.erl      2007-08-11 21:01:50.209437604 +0700
@@ -713,7 +713,7 @@
            check_id(S#eldap.id, Msg#'LDAPMessage'.messageID),
            case Msg#'LDAPMessage'.protocolOp of
                {bindResponse, Result} ->
-                   case Result#'LDAPResult'.resultCode of
+                   case Result#'BindResponse'.resultCode of
                        success -> bound;
                        Error   -> {fail_bind, Error}
                    end
Comment 1 Azamat H. Hackimov 2007-08-29 17:26:39 UTC
Created attachment 129561 [details, diff]
1.1.3-ldap-fix.patch

Upstream info (solved in svn):
https://support.process-one.net/browse/EJAB-315

Can anyone add patch to ebuild?
Comment 2 Azamat H. Hackimov 2007-08-31 08:17:15 UTC
Created attachment 129673 [details, diff]
1.1.3-ldap-fix.patch

Sorry, previous patch not work with epatch
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2007-09-14 10:51:15 UTC
Upstream has released 1.1.4; which includes this fix. Will bump to 1.1.4 shortly.
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2007-09-14 11:37:47 UTC
This is now in portage as 1.1.4; please allow up to two hours for your rsync mirror before you --sync.