[ ProFTPd x86 & x64 ] [ 1.3.4.0] ProFTPD Server

Share and find modules created by users. These modules are all UNOFFICIAL, please use with care and back up your data!

Moderators: Qoolbox, John Tsai

Forum rules
When posting about a module, please use the following syntax: [Module Name][Version]Topic

Thanks!

Re: [ ProFTPd x86 & x64 ] [ 1.3.5.3] ProFTPD Server

Postby Qoolbox » Sun Feb 03, 2013 7:21 pm

x64 version online for 1.3.5.3

(not tested at this time, my N2800 for test is at office)
Stéphane Guérithault

Senior presales & technical engineer / 3rd Party developer / PR @ Thecus France

In a world without walls and fences, who needs Windows and Gates

http://www.serveur-nas.fr Visitez le forum francophone Thecus de Cachem http://thecusunderground.com http://www.enviedesavoir.com

Image
Image
Qoolbox
Third-Party Developer
 
Posts: 6323
Joined: Fri Nov 19, 2010 4:27 am
Location: France

Re: [ ProFTPd x86 & x64 ] [ 1.3.5.3] ProFTPD Server

Postby walkero » Sun Feb 03, 2013 7:36 pm

WOW....That was fast.... Thanks...
walkero
 
Posts: 12
Joined: Thu Jan 31, 2013 5:34 am

Re: [ ProFTPd x86 & x64 ] [ 1.3.5.3] ProFTPD Server

Postby walkero » Sun Feb 03, 2013 8:28 pm

It seems I can't make it work. I created a user from proftpd web gui, but he can't login. It returns:

Response: 530 Login incorrect.
Error: Critical error
Error: Could not connect to server


I have only yours mysql enabled and the database is installed right. I see the user record inside the table "usertable". I even removed and reinstalled the MySQL module, but it didn't help.

Then I tried to see if there was a problem with the proftpd config file, and reverted it to the orig default version. But it didn't help. Of course I restarted the proftpd before I test it.

Then I opened SSH and killed all the proftpd tasks, and restarted it in debug mode

Code: Select all
proftpd -n -d 1


and as soon as I tried to login with ftp user I got

Feb 03 14:19:10 N4800 proftpd[9136] N4800.thecus.com: ProFTPD 1.3.5rc1 (devel) (built Wed Jan 23 2013 08:11:03 PST) standalone mode STARTUP
Feb 03 14:19:19 N4800 proftpd[9204] N4800.thecus.com (192.168.1.3[192.168.1.3]): FTP session opened.
Feb 03 14:19:19 N4800 proftpd[9204] N4800.thecus.com (192.168.1.3[192.168.1.3]): USER clab_ftp: no such user found from 192.168.1.3 [192.168.1.3] to 192.168.1.90:21
Feb 03 14:19:19 N4800 proftpd[9204] N4800.thecus.com (192.168.1.3[192.168.1.3]): FTP session closed.


It seems like it doesn't even check at mysql to find if there is such a user. Should I make any more confirguration at proftpd config file, against the default one? Do you have any clue what is wrong with the login? The ANON connection works just fine.

Any help would be great. Thanks
walkero
 
Posts: 12
Joined: Thu Jan 31, 2013 5:34 am

Re: [ ProFTPd x86 & x64 ] [ 1.3.5.3] ProFTPD Server

Postby walkero » Sun Feb 03, 2013 9:08 pm

After some search I added the following at the proftpd config file
LoadModule mod_sql.c
LoadModule mod_tls.c

AuthOrder mod_sql.c
SQLAuthTypes backend
SQLBackend mysql
SQLEngine on
SQLAuthenticate on
SQLConnectInfo proftpd_admin@localhost username password
SQLUserInfo usertable userid passwd uid gid homedir shell
SQLGroupInfo grouptable groupname gid members
SQLUserWhereClause "disabled=0 and (NOW()<=expiration or expiration=-1 or expiration=0)"


with the above I started the proftpd in debug mode just fine but when a user with password tries to access it I get the following errors

Feb 03 15:06:26 N4800 proftpd[13100] N4800.thecus.com (192.168.1.3[192.168.1.3]): mod_sql/4.3: no SQL backends registered
Feb 03 15:06:26 N4800 proftpd[13100] N4800.thecus.com (192.168.1.3[192.168.1.3]): mod_sql.c: error initializing session: No such file or directory
Feb 03 15:06:26 N4800 proftpd[13100] N4800.thecus.com (192.168.1.3[192.168.1.3]): FTP session closed.


I also tried to add the following at the top of proftpd config file

LoadModule mod_sql_mysql.c

but when I start proftpd in debug mode, it returns

Feb 03 15:14:12 N4800 proftpd[19045]: mod_dso/0.5: unable to find module symbol 'sql_mysql_module' in 'mod_sql_mysql.c'
Feb 03 15:14:12 N4800 proftpd[19045]: Fatal: LoadModule: error loading module 'mod_sql_mysql.c': Operation not permitted on line 7 of '/raid/data/module/proftpd/sys/etc/proftpd.conf'


and unfortunately I am stuck here. Any help on that?
walkero
 
Posts: 12
Joined: Thu Jan 31, 2013 5:34 am

Re: [ ProFTPd x86 & x64 ] [ 1.3.5.3] ProFTPD Server

Postby Qoolbox » Sun Feb 03, 2013 11:13 pm

i am not sure really how handle this with mysql

i am only make the mod_sql:mod_sql_mysql in the shared flag

Code: Select all
--with-shared=mod_sql:mod_sql_mysql


but not in the modules flag

Code: Select all
--with-modules=mod_tls:mod_sftp:mod_dynmasq:mod_ban:mod_shaper:mod_quotatab:mod_clamav


as they ask in readme note...

seems note enought :(

as i supposed in my previous release, i think it must be :

Code: Select all
--with-shared=mod_sql:mod_sql_mysql


but also

Code: Select all
--with-modules=mod_tls:mod_sftp:mod_dynmasq:mod_ban:mod_shaper:mod_quotatab:mod_clamav:mod_sql:mod_sql_mysql


I am really not sure

i can for sure re cross compile it with flags easily...
Stéphane Guérithault

Senior presales & technical engineer / 3rd Party developer / PR @ Thecus France

In a world without walls and fences, who needs Windows and Gates

http://www.serveur-nas.fr Visitez le forum francophone Thecus de Cachem http://thecusunderground.com http://www.enviedesavoir.com

Image
Image
Qoolbox
Third-Party Developer
 
Posts: 6323
Joined: Fri Nov 19, 2010 4:27 am
Location: France

Re: [ ProFTPd x86 & x64 ] [ 1.3.5.4] ProFTPD Server

Postby Qoolbox » Sun Feb 03, 2013 11:43 pm

hope this release will work..

just added

Code: Select all
--with-modules=mod_tls:mod_sftp:mod_dynmasq:mod_ban:mod_shaper:mod_quotatab:mod_clamav:mod_sql:mod_sql_mysql


and make the module universal.... to simplify things
Stéphane Guérithault

Senior presales & technical engineer / 3rd Party developer / PR @ Thecus France

In a world without walls and fences, who needs Windows and Gates

http://www.serveur-nas.fr Visitez le forum francophone Thecus de Cachem http://thecusunderground.com http://www.enviedesavoir.com

Image
Image
Qoolbox
Third-Party Developer
 
Posts: 6323
Joined: Fri Nov 19, 2010 4:27 am
Location: France

Re: [ ProFTPd x86 & x64 ] [ 1.3.5.4] ProFTPD Server

Postby walkero » Mon Feb 04, 2013 5:46 am

Unfortunately, I have the same problems. When I put "LoadModule mod_sql_mysql.c" at the top I get

Feb 03 23:41:18 N4800 proftpd[24847]: mod_dso/0.5: unable to find module symbol 'sql_mysql_module' in 'mod_sql_mysql.c'
Feb 03 23:41:18 N4800 proftpd[24847]: Fatal: LoadModule: error loading module 'mod_sql_mysql.c': Operation not permitted on line 7 of '/raid/data/module/proftpd/sys/etc/proftpd.conf'


Without this I get the same error on connection

Feb 03 23:40:04 N4800 proftpd[23716] N4800.thecus.com (192.168.1.9[192.168.1.9]): mod_sql/4.3: no SQL backends registered
Feb 03 23:40:04 N4800 proftpd[23716] N4800.thecus.com (192.168.1.9[192.168.1.9]): mod_sql.c: error initializing session: No such file or directory
Feb 03 23:40:04 N4800 proftpd[23716] N4800.thecus.com (192.168.1.9[192.168.1.9]): FTP session closed.


Does anyone have proftpd working on his system, and can provide a working config file?
walkero
 
Posts: 12
Joined: Thu Jan 31, 2013 5:34 am

Re: [ ProFTPd x86 & x64 ] [ 1.3.5.4] ProFTPD Server

Postby Qoolbox » Mon Feb 04, 2013 3:43 pm

I read somewhere,

that mod_sql must be loaded before mod_sql_mysql...

but cant find where i found that... grrrrrrrr


I will may be try to compil a true x64bit version... as this one is just emulate x86 thought X86Base from Fajo
Stéphane Guérithault

Senior presales & technical engineer / 3rd Party developer / PR @ Thecus France

In a world without walls and fences, who needs Windows and Gates

http://www.serveur-nas.fr Visitez le forum francophone Thecus de Cachem http://thecusunderground.com http://www.enviedesavoir.com

Image
Image
Qoolbox
Third-Party Developer
 
Posts: 6323
Joined: Fri Nov 19, 2010 4:27 am
Location: France

Re: [ ProFTPd x86 & x64 ] [ 1.3.5.4] ProFTPD Server

Postby Qoolbox » Mon Feb 04, 2013 6:20 pm

I had time this morning to compil a true x64 version...

always based on 1.3.5.4
Stéphane Guérithault

Senior presales & technical engineer / 3rd Party developer / PR @ Thecus France

In a world without walls and fences, who needs Windows and Gates

http://www.serveur-nas.fr Visitez le forum francophone Thecus de Cachem http://thecusunderground.com http://www.enviedesavoir.com

Image
Image
Qoolbox
Third-Party Developer
 
Posts: 6323
Joined: Fri Nov 19, 2010 4:27 am
Location: France

Re: [ ProFTPd x86 & x64 ] [ 1.3.5.4] ProFTPD Server

Postby deenasty » Tue Feb 05, 2013 12:59 am

Hello,

Import to MySQL PhPMyAdmin done.

I've tested to install proftpd_1.3.5.4_x86x64.mod , Module Install **** ERROR **** : 23 at line 87.

I've tested to install proftpd_1.5.3.3_x86.mod , Module Install **** ERROR **** : 23 at line 74.
Thecus N5200PRO | Mod Ram, Cpu, Colling & pico power.

[SABnzbd+] [0.7.10.0] Usenet Grabber ---------------------------------> 100% approved
[ Twonky Server x86 & x64 ] [ 7.1.2.1 ] DLNA Server ----------------> 100% approved
[ MySQL / PhpMyAdmin ] [ 5.6.8.2 / 3.5.4 ] Database Server --------> 100% approved
deenasty
 
Posts: 11
Joined: Sat Mar 12, 2011 9:42 pm

PreviousNext

Return to Third party modules

Who is online

Users browsing this forum: No registered users and 4 guests