| Summary: | net-im/ejabberd-1.1.3-r2 can't authenticate in LDAP directory | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Vladimir Remnev <gentoo> |
| Component: | Current packages | Assignee: | 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 |
||
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? Created attachment 129673 [details, diff]
1.1.3-ldap-fix.patch
Sorry, previous patch not work with epatch
Upstream has released 1.1.4; which includes this fix. Will bump to 1.1.4 shortly. This is now in portage as 1.1.4; please allow up to two hours for your rsync mirror before you --sync. |
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