From owner-freebsd-questions@FreeBSD.ORG Tue Aug 12 05:29:57 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 994761065674 for ; Tue, 12 Aug 2008 05:29:57 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 4BE8B8FC14 for ; Tue, 12 Aug 2008 05:29:57 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so784445yxb.13 for ; Mon, 11 Aug 2008 22:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=D5HjVFGS7W51UGuFIvQsCN9yJglbf/6+UlFofLELaCg=; b=KMqsp4M0BJ5JbjBoh9kcTq0nRvG9PiAoHRmhWYsg8ZZvuXkQdj0lZ3OCLHgFNzgWfO oUwxah/uZed9LI67hm80hY2tY4y/Yf6f0+peRm8dfLT+wL/6hnzZdrzvd0L3L+crjY8E my8tLShrX3iQhgNGEkvMaJEyz3FWI4Fjs7p50= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=l08We7/e1g3lw9VGTReu506l5p/t4a1yskkCQ+UYaiS/G9gla6aykhOXpTjp++LcNr fvDPGbOtE5YlYW72rVxcBCLVBNL24OGgejjXFwrD0lqQgXlI1/Ujizi3imXT1t2fY9Ab RYdmRNwOMuvSZO0nifXEQE+JusRb1Gt+0K2B4= Received: by 10.151.155.5 with SMTP id h5mr13613035ybo.241.1218518996618; Mon, 11 Aug 2008 22:29:56 -0700 (PDT) Received: by 10.151.153.18 with HTTP; Mon, 11 Aug 2008 22:29:56 -0700 (PDT) Message-ID: <991123400808112229q184bca5ao8403a24ff8a56df@mail.gmail.com> Date: Tue, 12 Aug 2008 08:29:56 +0300 From: "Odhiambo Washington" To: assetburned In-Reply-To: <36770826-27C1-4806-8355-D07758613B39@assetburned.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <36770826-27C1-4806-8355-D07758613B39@assetburned.de> Cc: freebsd-questions@freebsd.org Subject: Re: how to let MPD check the password against POP3, IMAP or WWW? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 05:29:57 -0000 On Sun, Aug 10, 2008 at 6:20 PM, assetburned wrote: > Hi > > I have a MPD VPN server and another machine which runs WWW, IMAP and POP3 > services. > > I know that I could check if a password is valid e.g. by writing a script > which calls a Lynx command. > > But how can I forward the password from MPD to that script? And I also think > that the password has to be unencrypted for the lynx command, so how can I > manage that? > > CU AssetBurned I run dovecot with MySQL database on one of my servers. Dovecot provides POP3/IMAP. I also have mpd5 on this box and I use credentials from the DB (which contains cleartext passwords) for mpd5 to authenticate, but I do it using a script which extracts the username and cleartext password and writes those to mpd.secret, and also sets the correct permissions on the file. It's a simplistic shell script, called from cron once a day. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "Oh My God! They killed init! You Bastards!" --from a /. post