Hi

that is not exactly what I wanted to do.

My idea was to use a script which accepts the username and password as parameters and then tryes to connect to a web, pop3 or imap server, depending on what is easier.

e.g. lynx -auth=username:password http://some.foobar.org/protected

and only if the script is able to fetch the protected page, than the user is also accepted for the VPN connection.

CU AssetBurned

On 12.08.2008, at 06:29, Odhiambo Washington wrote:

On Sun, Aug 10, 2008 at 6:20 PM, assetburned <[EMAIL PROTECTED]> wrote:
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?

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.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to