loip104
Goto Top

Debian Proftpd mysqlMod und proFTPd Administrator problem mit usern passwort

Servus ,
ich versuche mich gerade an Proftpd mit mysql support

Ich möchte einen proftd mittels "proFTPd Administrator" (http://proftpd-adm.sourceforge.net/) verwalten.

die Einrichtung und Installation hat soweit auch funktioniert.

Der "proFTPd Administrator" leuft und scheint auch mit dem proftpd verbunden zu sein.
35a5782476a890dc2287c63da482e8ab

nur kann ich mich nicht einlogen wen ich einen neuen user im cms erstelle.

proftpd.conf
Include /etc/proftpd/modules.conf
Include /etc/proftpd/sql.conf
ServerName			"Servername"
ServerType			standalone
ServerIdent			on		"Servers identifying string"
DeferWelcome			on
DefaultServer			on

DisplayLogin			.welcome	# Textfile to display on login
DisplayConnect			.connect	# Textfile to display on connection
#DisplayFirstChdir               .firstchdir	# Textfile to display on first changedir

UseReverseDNS       		off
IdentLookups        		off

Port				21
Umask				022
MaxInstances                    15
MaxClientsPerHost               3 		"Only %m connections per host allowed"
MaxClients                      10 		"Only %m total simultanious logins allowed"
MaxHostsPerUser                 1

User				nobody
Group				nobody

ScoreboardFile 			/var/log/scoreboard

# Some logging formats
LogFormat            		default 	"%h %l %u %t \"%r\" %s %b"
LogFormat            		auth    	"%v [%P] %h %t \"%r\" %s"
LogFormat            		write   	"%h %l %u %t \"%r\" %s %b"

# Define log-files to use
TransferLog          		/var/log/proftpd.xferlog
ExtendedLog         		/var/log/proftpd.access_log    WRITE,READ write
ExtendedLog          		/var/log/proftpd.auth_log      AUTH auth
ExtendedLog          		/var/log/proftpd.paranoid_log  ALL default
#SQLLogFile			/var/log/proftpd.mysql

# Set up authentication via SQL
# ===========
AuthOrder                       mod_sql.c
SQLAuthTypes			Backend
SQLConnectInfo       		proftpd_admin@localhost root k++++s
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)"

# Log the user logging in
SQLLog PASS counter
SQLNamedQuery counter UPDATE "lastlogin=now(), count=count+1 WHERE userid='%u'" usertable

# logout log
SQLLog EXIT time_logout
SQLNamedQuery time_logout UPDATE "lastlogout=now() WHERE userid='%u'" usertable

# display last login time when PASS command is given
SQLNamedQuery login_time SELECT "lastlogin from usertable where userid='%u'"
SQLShowInfo PASS "230" "Last login was: %{login_time}"

# xfer Log in mysql
SQLLog RETR,STOR transfer1
SQLNamedQuery  transfer1 INSERT "'%u', '%f', '%b', '%h', '%a', '%m', '%T', now(), 'c', NULL" xfer_stat
SQLLOG ERR_RETR,ERR_STOR transfer2
SQLNamedQuery  transfer2 INSERT "'%u', '%f', '%b', '%h', '%a', '%m', '%T', now(), 'i', NULL" xfer_stat


AllowStoreRestart 		on
AllowRetrieveRestart		on
RequireValidShell               off
#PathDenyFilter                  "\\.ftp)|\\.ht)[a-z]+$"
DefaultRoot 			~
DenyFilter 			\*.*/


<Directory /ftp/*>
	AllowOverwrite		off
 	HideNoAccess		off
	<Limit READ>
		AllowAll
        </Limit>

	<Limit WRITE>
		DenyGroup	!admins
 	</Limit>
</Directory>

<Directory /ftp/incoming/*>
	AllowOverwrite		on
	HideNoAccess		on

	<Limit READ>
      		DenyGroup	!admins
    	</Limit>

    	<Limit STOR MKD>
      		AllowAll
    	</Limit>
</Directory>

Bitte nicht über den sql benutzer root wundern, ist alles auf VPS zum testen.


FTP prog log
[R] Serverschlüssel-Algorithmus SSH-RSA, Größe 2048 Bits.
[R] Fingerabdruck (MD5): 49:a9:0a:68:6c:26:3c:22:41:f4:82:cc:54:ad:47:67
[R] Schlüsselaustausch: diffie-hellman-group14-sha1. Sitzungsverschlüsselung: aes256-ctr, MAC: hmac-sha1, Komprimierung: none
[R] Auth Type: Password
[R] Authentifizierung fehlgeschlagen [Ungültiges Passwort]
[R] SSH Fehler: Fehler beim Aushandeln der Authentifizierungs-Methode [Password]
[R] SSH Verbindung geschlossen



Es scheint ein problem mit "SQLAuthTypes Backend" vorzuliegen nur bringt das wechseln des types keinen erfolg.


hoffe mir kann da jemand weiter helfen


MFG
Loip104

Content-Key: 236035

Url: https://administrator.de/contentid/236035

Ausgedruckt am: 29.03.2024 um 15:03 Uhr