From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 20 14:00:06 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8793E16A406 for ; Wed, 20 Feb 2008 14:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6111913C474 for ; Wed, 20 Feb 2008 14:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1KE06qD023236 for ; Wed, 20 Feb 2008 14:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1KE06Zb023235; Wed, 20 Feb 2008 14:00:06 GMT (envelope-from gnats) Resent-Date: Wed, 20 Feb 2008 14:00:06 GMT Resent-Message-Id: <200802201400.m1KE06Zb023235@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Szymon Roczniak Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15D2916A403 for ; Wed, 20 Feb 2008 13:52:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id F33EA13C448 for ; Wed, 20 Feb 2008 13:52:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1KDoNwf095462 for ; Wed, 20 Feb 2008 13:50:23 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m1KDoNr8095461; Wed, 20 Feb 2008 13:50:23 GMT (envelope-from nobody) Message-Id: <200802201350.m1KDoNr8095461@www.freebsd.org> Date: Wed, 20 Feb 2008 13:50:23 GMT From: Szymon Roczniak To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/120883: [patch] net-im/jabberd: add cyrus-sasl2 support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2008 14:00:06 -0000 >Number: 120883 >Category: ports >Synopsis: [patch] net-im/jabberd: add cyrus-sasl2 support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Feb 20 14:00:06 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Szymon Roczniak >Release: 6.3-RELEASE i386 >Organization: >Environment: >Description: jabberd and gsasl installed from ports and up to date SASL authentication stopped working after moving to a fresh installation of jabberd on a new server. This might be limited to my installation or some weirdness in my configuration. However, I've also tried it with default config files with the same result - SASL authentication not working. Quick google search revealed that the problem might be in the GSASL library. Fortunately jabberd also supports cyrus-sasl, and compiling it against this sasl library instead of gsasl actually fixes the problem. >How-To-Repeat: Install net-im/jabberd, do basic configuration and start it. Try connecting with any jabber client with SASL authentication enabled. It shouldn't let you log on. >Fix: the attached patch adds a 'CYRUS sasl' option to the ports' configuration. Patch attached with submission follows: diff -uNr jabberd.orig/Makefile jabberd/Makefile --- jabberd.orig/Makefile Mon Jan 14 14:21:50 2008 +++ jabberd/Makefile Wed Feb 20 13:00:40 2008 @@ -15,7 +15,6 @@ COMMENT= Online presence and instant messaging server LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \ - gsasl.11:${PORTSDIR}/security/gsasl \ idn.16:${PORTSDIR}/dns/libidn OPTIONS= MYSQL "Support MySQL (storage/auth/reg)" on \ @@ -28,7 +27,8 @@ ANON "Enable anonymous (auth/reg)" off \ FS "Filesystem storage (only for testing)" off \ DEBUG "Compile with debug messages" on \ - REQUIRES "Add backend requires to startup script" off + REQUIRES "Add backend requires to startup script" off \ + CYRUS "Use cyrus SASL instead of gsasl (experimental)" off GNU_CONFIGURE= yes USE_OPENSSL= yes @@ -69,6 +69,14 @@ .if !defined(WITHOUT_DEBUG) CONFIGURE_ARGS+=--enable-debug +.endif + +.if defined(WITH_CYRUS) +CONFIGURE_ARGS+=--enable-sasl=cyrus +LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2 +.else +CONFIGURE_ARGS+=--enable-sasl=gsasl +LIB_DEPENDS+= gsasl.11:${PORTSDIR}/security/gsasl .endif .if defined(WITH_POSTGRESQL) diff -uNr jabberd.orig/files/patch-sx-sasl_cyrus.c jabberd/files/patch-sx-sasl_cyrus.c --- jabberd.orig/files/patch-sx-sasl_cyrus.c Thu Jan 1 00:00:00 1970 +++ jabberd/files/patch-sx-sasl_cyrus.c Wed Feb 20 13:05:12 2008 @@ -0,0 +1,10 @@ +--- sx/sasl_cyrus.c.orig 2008-02-19 22:13:53.000000000 +0000 ++++ sx/sasl_cyrus.c 2008-02-19 22:14:05.000000000 +0000 +@@ -20,7 +20,6 @@ + + /* SASL authentication handler */ + +-#error Cyrus SASL implementation is not supported! It is included here only for the brave ones, that do know what they are doing. You need to remove this line to compile it. + + #include "sx.h" + #include "sasl.h" >Release-Note: >Audit-Trail: >Unformatted: