Proftpd & MySQL Benutzverwaltung

Kufstein

B1G-Software-Kunde
Hallo

ich wollte den Proftpd mit MySQL Verwaltung einrichten. Hab da mall den google.ch benutzt und nach http://www.cplinux.de/debian-proftpd-mit-mysql.view.html vorgegangen.


So meine modules.conf sieht wie folgt aus:
Code:
#
# This file is used to manage DSO modules and features.
#

# This is the directory where DSO modules reside

ModulePath /usr/lib/proftpd

# Allow only user root to load and unload modules, but allow everyone
# to see which modules have been loaded

ModuleControlsACLs insmod,rmmod allow user root
ModuleControlsACLs lsmod allow user *

LoadModule mod_ctrls_admin.c
LoadModule mod_tls.c
LoadModule mod_sql.c
LoadModule mod_ldap.c
LoadModule mod_sql_mysql.c
LoadModule mod_sql_postgres.c
LoadModule mod_quotatab.c
LoadModule mod_quotatab_file.c
LoadModule mod_quotatab_ldap.c
LoadModule mod_quotatab_sql.c
LoadModule mod_radius.c
LoadModule mod_wrap.c
LoadModule mod_rewrite.c

# keep this module the last one
LoadModule mod_ifsession.c

Meine Proftpd.conf so:
Code:
Include /etc/proftpd/modules.conf
UseIPv6                         off
ServerName                      "server03"
ServerType                      standalone
DeferWelcome                    off
MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on
TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200
DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                     "-l"
Port                            21
MaxInstances                    30
User                            proftpd
Group                           nogroup
Umask                           022  022
AllowOverwrite                  on
DefaultRoot ~
TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log
<IfModule mod_tls.c>
TLSEngine off
</IfModule>

<IfModule mod_quota.c>
QuotaEngine on
</IfModule>

<IfModule mod_ratio.c>
Ratios on
</IfModule>

<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine        on
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>


<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>
SQLAuthTypes Crypt
SQLAuthenticate users*
SQLConnectInfo proftpd@localhost ftp ratemal
SQLDefaultGID 65534
SQLDefaultUID 65534
SQLMinUserGID  100
SQLMinUserUID            500
SQLUserInfo ftpuser username password uid gid homedir shell
SQLLOGFILE /var/log/proftpd/proftpd.sql.log

nun kann ich mich nicht verbinden und in der log steht folgendes:

Code:
Jul 09 06:04:42 mod_sql/4.2.1[21162]: defaulting to 'postgres' backend
Jul 09 06:04:42 mod_sql/4.2.1[21162]: backend module 'mod_sql_postgres/4.02'
Jul 09 06:04:42 mod_sql/4.2.1[21162]: backend api    'mod_sql_api_v2'
Jul 09 06:04:42 mod_sql/4.2.1[21162]: >>> sql_sess_init
Jul 09 06:04:42 mod_sql/4.2.1[21162]: entering 	postgres cmd_defineconnection
Jul 09 06:04:42 mod_sql/4.2.1[21162]:  name: 'default'
Jul 09 06:04:42 mod_sql/4.2.1[21162]:  user: 'ftp'
Jul 09 06:04:42 mod_sql/4.2.1[21162]:  host: 'localhost'
Jul 09 06:04:42 mod_sql/4.2.1[21162]:    db: 'proftpd'
Jul 09 06:04:42 mod_sql/4.2.1[21162]:  port: '5432'
Jul 09 06:04:42 mod_sql/4.2.1[21162]:   ttl: '0'
Jul 09 06:04:42 mod_sql/4.2.1[21162]: exiting 	postgres cmd_defineconnection
Jul 09 06:04:42 mod_sql/4.2.1[21162]: entering 	postgres cmd_open
Jul 09 06:04:42 mod_sql/4.2.1[21162]: exiting 	postgres cmd_open
Jul 09 06:04:42 mod_sql/4.2.1[21162]: unrecoverable backend error
Jul 09 06:04:42 mod_sql/4.2.1[21162]: error: 'mod_sql_postgres/4.02'
Jul 09 06:04:42 mod_sql/4.2.1[21162]: message: 'could not connect to server: Connection refused
	Is the server running on host "localhost" and accepting
	TCP/IP connections on port 5432?
'

Was mir hier komisch vorkommt ist das der auf prot 5432 Zugreifen will, wo doch MySQL auf 3306 läuft.

Jemand ne Idee ?
 
Du versuchst auf eine Psogresql Datenbank zu zu greifen.
Steht in deinen Logs mit drinnen und diese läuft auch auf Port 5432.
 
Kann ich dir jetzt auch nicht sagen aber es währe vielleicht schonmal ein Anfang wenn du in der Datei modules.conf das Modul schonmal auskommentierst.
Code:
LoadModule mod_sql_postgres.c
 
Kann ich dir jetzt auch nicht sagen aber es währe vielleicht schonmal ein Anfang wenn du in der Datei modules.conf das Modul schonmal auskommentierst.
Code:
LoadModule mod_sql_postgres.c

dann bringt er auch ein fehler ...


EDIT: nun läuf es.... hatte noch ein Problem mit invaild shells ... aber nun funzt es ..
 
Last edited:
Back
Top