From owner-freebsd-questions@freebsd.org Sun Mar 8 17:37:41 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9E93A26F8CA; Sun, 8 Mar 2020 17:37:41 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48b7pr3S2kz4BCG; Sun, 8 Mar 2020 17:37:40 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=Message-ID:Subject:To:From:Date:In-Reply-To; bh=SUdDy9DljXddVtHWV2dYoYUVwbK+B0toKEUcERGfH8c=; b=HOwZVc9FaPZMEh4fgFDbzdLoAV fN4BnO//ixns5V4wiirlFJA/XLJ7Zo5knNc1A3VYIf9jmuBBykTI0XwFRA7oQxaQikJH6fmV+SYUU Qsqzdtz8HKn/1S2ME9+FEGeuaaelwcXxbg5kSOkofd3Sdei20KpmXqzaTt0GdKYtCkn8=; Received: from vas by admin.sibptus.ru with local (Exim 4.93.0.4 (FreeBSD)) (envelope-from ) id 1jAzrp-000Hik-6S; Mon, 09 Mar 2020 00:37:33 +0700 Date: Mon, 9 Mar 2020 00:37:33 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org, freebsd-net@freebsd.org Subject: net-im/prosody and SASL authentication Message-ID: <20200308173733.GA68069@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 48b7pr3S2kz4BCG X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=HOwZVc9F; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.42 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.979,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-3.34)[ip: (-9.89), ipnet: 2001:19f0:5000::/38(-4.94), asn: 20473(-1.83), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Mar 2020 17:37:41 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear Colleagues, Has anyone been successful in configuring SASL authentication in net-im/prosody? The desired result is that when I add a Unix user, this user should be able to login to Jabber automatically without adding a separ= ate Jabber account (I use this feature in ejabberd). I've configured SASL auth in prosody.cfg.lua according to the documentation, but all I get is Mar 09 00:16:36 modulemanager error Unable to load module 'sasl_cyrus':= /usr/local/lib/prosody/modules/mod_sasl_cyrus.lua: No such file or directo= ry Mar 09 00:16:36 modulemanager error Error initializing module 'auth_cyr= us' on 'sibptus.ru': /usr/local/lib/prosody/util/startup.lua:145: module 'c= yrussasl' not found: no field package.preload['cyrussasl'] no file '/usr/local/lib/prosody/cyrussasl.lua' no file '/usr/local/share/lua/5.2/cyrussasl.lua' no file '/usr/local/share/lua/5.2/cyrussasl/init.lua' no file '/usr/local/lib/lua/5.2/cyrussasl.lua' no file '/usr/local/lib/lua/5.2/cyrussasl/init.lua' no file '/usr/local/lib/prosody/cyrussasl.so' no file '/usr/local/lib/lua/5.2/cyrussasl.so' no file '/usr/local/lib/lua/5.2/loadall.so' I guess lua is missing the "cyrussasl" library but where do I get it? I could not find one in the ports. Nor does the net-im/prosody port have any configurable options to enable saslauthd support. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJeZS1dAAoJEA2k8lmbXsY0KIgH/iXqVhjNf03wl6tDZstkmZVi P3ML8sNBt7Az0/rtI8SGwPDoO8WQg/njr/IQBnlh45FL7qrnZdsa1MSOeTlZHSmW BcPzRRdBgMqiEit9lVDqzX4st8AUtwYXjG6yfjiW8Hzyu5uBxFvvLsIulFgrSxmm h2UtFBwkwiXjoq7IatLlvNoBia3cE1FGWNfLRjOrNsdzHL1w4ixHBH0VH9kLYk3A PtaziysDRi5OsdH2aQ68OVqp6CJuaRn1EPv0GA3DGOxXKVc4z11NHi1088AlJ20e NNwuoAmdmVgfNLsJfYsrOIIEkH5eRFEEd4DoVkojGvkzJ91tETJBwlBGvhBS/tw= =MLG7 -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--