ortiche pure_authd authenticator script written in perl

root 0a7d115cf1 Merge branch 'master' of http://git.lattuga.net/ortiche.net/pureftpd-auth 5 years ago
.gitignore 9c277f4871 thinking git directory 8 years ago
LICENSE 64cbcecc8c Init commit 8 years ago
README.md aa47b5636c improving readme 8 years ago
pureftpd-auth.pl 8f627168d0 Modificato il server_name 5 years ago

README.md

pureftpd-auth

Ortiche pure_authd authenticator script written in perl. Based on ziokernel code.

Dependencies

apt-get install pure-ftpd libcrypt-eksblowfish-perl libclass-mix-perl libparams-classify-perl liblog-log4perl-perl dh-make-perl

dh-make-perl --build --cpan Crypt::Passwd::XS dpkg -i libcrypt-passwd-xs-perl_0.601-1_amd64.deb

[1] https://wiki.debian.org/PerlFAQ

Config

echo "/usr/local/ortiche/pureftpd-auth/pureftpd-auth.pl" > /etc/pure-ftpd/conf/ExtAuth echo "yes" > /etc/pure-ftpd/conf/CreateHomeDir rm -fr /etc/pure-ftpd/auth/ ln -s /etc/pure-ftpd/conf/ExtAuth /etc/pure-ftpd/auth/ExtAuth

Auth

mkdir /usr/local/ortiche/pureftpd-auth/auth vi /usr/local/ortiche/pureftpd-auth/auth/pureftpd.pl

#!/usr/bin/perl $DB_DB="ftp_db"; $DB_HOST="localhost"; $DB_USER="ftp_user_ro"; $DB_PASS="your_password"; $DB_TABLE="ftp_table";

Running

/usr/sbin/pure-ftpd -d -A -B -4 -Z -p 50000:50601 -H -Y 1 -E -k 95 -C 5 -c 30 -lextauth:/var/run/pure-ftpd/extauth.sock -B

/usr/sbin/pure-authd -s /var/run/pure-ftpd/extauth.sock -r /usr/local/ortiche/pureftpd-auth/pureftpd-auth.pl -B