ejabberd - Comments for "LDAP auth generates a lot of empty requests, but none authentication request" https://www.ejabberd.im/node/2557 en you should submit this https://www.ejabberd.im/node/2557#comment-50891 <p>you should submit this ebuild or a better version to bugs.gentoo.org so gentoo users find it ;-)</p> Tue, 18 Sep 2007 11:34:39 +0000 jamatik comment 50891 at https://www.ejabberd.im I have solved this by using https://www.ejabberd.im/node/2557#comment-50543 <p>I have solved this by using lates SVN snapshot. Also it seems the things are mostly solved in devel version (at least to my observation). So if you would want to give it a try, I attach my ebuild, which does build ejabberd on gentoo from SVN. Its basically the copy of the latest tar based ebuild, so nothing much spectacular ;-). Also beware it does not use sasl in run script.</p> <pre> # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit eutils multilib versionator subversion ESVN_REPO_URI="http://svn.process-one.net/ejabberd/trunk" JABBER_ETC="/etc/jabber" JABBER_RUN="/var/run/jabber" JABBER_SPOOL="/var/spool/jabber" JABBER_LOG="/var/log/jabber" DESCRIPTION="The Erlang Jabber Daemon" HOMEPAGE="http://www.ejabberd.im/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug mod_irc mod_muc mod_pubsub ldap odbc ssl web" DEPEND="&gt;=net-im/jabber-base-0.01 &gt;=dev-libs/expat-1.95 odbc? ( dev-db/unixODBC ) ldap? ( =net-nds/openldap-2* ) ssl? ( &gt;=dev-libs/openssl-0.9.8 )" PROVIDE="virtual/jabber-server" S=${WORKDIR}/src src_unpack() { subversion_src_unpack cp -ar ${ESVN_STORE_DIR}/${ESVN_PROJECT}/trunk/* ${WORKDIR} } src_compile() { econf ${myconf} \ $(use_enable mod_irc) \ $(use_enable ldap eldap) \ $(use_enable mod_muc) \ $(use_enable mod_pubsub) \ $(use_enable ssl tls) \ $(use_enable web) \ $(use_enable odbc) \ || die "econf failed" if useq debug; then emake ejabberd_debug=true || die "compiling ejabberd core failed" else emake || die "compiling ejabberd core failed" fi } src_install() { make \ DESTDIR=${D} \ EJABBERDDIR=${D}/usr/$(get_libdir)/erlang/lib/${P} \ ETCDIR=${D}${JABBER_ETC} \ LOGDIR=${D}${JABBER_LOG} \ install \ || die "install failed" chown -R jabber:jabber "${D}${JABBER_ETC}" chown -R jabber:jabber "${D}${JABBER_LOG}" chown -R jabber:jabber "${D}/usr/$(get_libdir)/erlang/lib/${P}" insinto /usr/share/doc/${PF} dohtml doc/*.{html,png} # # Create /usr/bin/ejabberd # cat &lt; ${T}/ejabberd #!/bin/bash erl -pa /usr/$(get_libdir)/erlang/lib/${P}/ebin \\ ${pa} \\ -sname ejabberd \\ -s ejabberd \\ -ejabberd config \"${JABBER_ETC}/ejabberd.cfg\" \\ log_path \"${JABBER_LOG}/ejabberd.log\" \\ -kernel inetrc \"${JABBER_ETC}/inetrc\" \\ -mnesia dir \"${JABBER_SPOOL}\" \\ \$@ EOF # # Create /usr/bin/ejabberdctl # cat &lt; ${T}/ejabberdctl #!/bin/sh exec env HOME=${JABBER_RUN} \\ erl -pa /usr/$(get_libdir)/erlang/lib/${P}/ebin \\ ${pa} \\ -noinput \\ -sname ejabberdctl \\ -s ejabberd_ctl \\ -extra \$@ EOF dobin ${T}/ejabberdctl dobin ${T}/ejabberd newinitd ${FILESDIR}/ejabberd-1.1.1-r1.initd ${PN} newconfd ${FILESDIR}/${P}.confd ${PN} insinto ${JABBER_ETC} doins ${FILESDIR}/inetrc if useq ssl ; then doins ${FILESDIR}/ssl.cnf newins ${FILESDIR}/self-cert-v2.sh self-cert.sh fi } pkg_postinst() { elog "For configuration instructions, please see /usr/share/doc/${PF}/html/guide.html" elog "or the online version at http://www.process-one.net/en/projects/ejabberd/docs/guide_en.html" echo if useq ssl ; then if [ ! -e /etc/jabber/ssl.pem ]; then elog "Please edit ${JABBER_ETC}/ssl.cnf and run ${JABBER_ETC}/self-cert.sh" elog "Ejabberd may refuse to start without an SSL certificate" fi fi if ! useq web ; then elog "The web USE flag is off, this has disabled the web admin interface." fi if useq odbc ; then elog "Please add a column askmessage to the rosterusers table if migrating from 1.1.1" fi } </pre> Mon, 03 Sep 2007 08:50:42 +0000 risa2000 comment 50543 at https://www.ejabberd.im I have same errors. Probably https://www.ejabberd.im/node/2557#comment-50522 <p>I have same errors. Probably this bug explain why ejabberd can't lookup users from LDAP:<br /> <noindex><a href="https://bugs.gentoo.org/show_bug.cgi?id=188679" title="https://bugs.gentoo.org/show_bug.cgi?id=188679" rel="nofollow" >https://bugs.gentoo.org/show_bug.cgi?id=188679</a></noindex><br /> but included patch not work for my gentoo machine :(</p> Tue, 28 Aug 2007 16:39:55 +0000 winterheart comment 50522 at https://www.ejabberd.im Hmm, thanks for pointing https://www.ejabberd.im/node/2557#comment-47198 <p>Hmm, thanks for pointing that out. I have been using old 1.1.3 version doc from ejabbered web site and had to figure that out from sources :(.</p> Mon, 20 Aug 2007 16:36:01 +0000 risa2000 comment 47198 at https://www.ejabberd.im Is the ejabberd guide in SVN up to date https://www.ejabberd.im/node/2557#comment-47037 <p>It seems the <noindex><a href="http://svn.process-one.net/ejabberd/trunk/doc/guide.html#htoc28" rel="nofollow" >ejabberd guide in SVN</a></noindex> is up to date with the SVN source code, right?</p> Mon, 20 Aug 2007 16:05:50 +0000 mfoss comment 47037 at https://www.ejabberd.im After rebuilding ejabberd https://www.ejabberd.im/node/2557#comment-46617 <p>After rebuilding ejabberd from latest SVN trunk, all problems are solved. So this was definitely bug in 1.1.3.<br /> There is one change in config:<br /> Instead of ldap_uidattr and ldap_uidattr_format the recent version uses ldap_uids which contains list of pairs (uidattr, uidattr_format).</p> Sun, 19 Aug 2007 22:11:28 +0000 risa2000 comment 46617 at https://www.ejabberd.im