Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188679 - net-im/ejabberd-1.1.3-r2 can't authenticate in LDAP directory
Summary: net-im/ejabberd-1.1.3-r2 can't authenticate in LDAP directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-13 03:40 UTC by Vladimir Remnev
Modified: 2007-09-14 11:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
1.1.3-ldap-fix.patch (1.1.3-ldap-fix.patch,476 bytes, patch)
2007-08-29 17:26 UTC, Azamat H. Hackimov
Details | Diff
1.1.3-ldap-fix.patch (1.1.3-fix-ldap.patch,549 bytes, patch)
2007-08-31 08:17 UTC, Azamat H. Hackimov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.