www.ProFTPD.de
13. März 2007, 21:53:45 *
Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge
News: SMF - Neu installiert!
 
   Übersicht   Hilfe Suche Login Registrieren  
Seiten: [1]   Nach unten
  Drucken  
Autor Thema: mysql abfrage greift nicht korrekt - login nicht möglich  (Gelesen 559 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
giuseppe
Gast
« am: 12. Juli 2004, 13:57:20 »

Hallo Liste,

folgendes Prob:
Ich habe den ProFTP nach anleitung mit mysql-support installiert und folgende Zeilen in die .conf eingetragen:
SQLAuthTypes Plaintext
SQLAuthenticate users*
SQLConnectInfo mailbase@localhost user password
SQLDefaultGID 5001
SQLDefaultUID 5001
SQLMinUserGID  100
SQLMinUserUID            500
SQLUserInfo mailuser account password uid gid maildir shell

und anschließend den Server gestartet.
Wenn ich nun in mein Mysql.log schaue sehe ich folgendes:

Connect     user@localhost on mailbase
Query       SELECT account, password, uid, gid, maildir, shell FROM mailuser WHERE (account='user.hier') LIMIT 1

und der Login schlägt fehl.

Wenn ich mich nun per IMAP einlogge, sieht der Mysql eintrag etwas anders aus:
Query       SELECT account, "", password, uid, gid, home, maildir, "", account, "" FROM mailuser WHERE account = "user.hier"

und der Login Klappt !

Nun meine Frage:
Fehlen mir etwa noch einträge in meiner proftpd.conf Huch oder was ist hier los ?

danke im voraus
Giuseppe
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #1 am: 12. Juli 2004, 14:06:51 »

ohne mir das nun genau anzuschauen ? Was sagt die ProFTPD und das SQLLOgFile Debug Ausgabe ?
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
Anonymous
Gast
« Antwort #2 am: 12. Juli 2004, 14:22:23 »

sorry wenn ich mal doof fragen muss,

ich habe logging nur mit
ExtendedLog /var/log/proftpd.log ALL
aktiviert.

Wo aktiviere ich denn
SQLLOgFile Debug Ausgabe ?

gruss
Giuseppe
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #3 am: 12. Juli 2004, 14:25:47 »

Zitat von: "Anonymous"
sorry wenn ich mal doof fragen muss,

ich habe logging nur mit
ExtendedLog /var/log/proftpd.log ALL
aktiviert.

Wo aktiviere ich denn
SQLLOgFile Debug Ausgabe ?

gruss
Giuseppe


http://www.proftpd.de/index.php?id=13&backPID=13&tx_faq_faq=4
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
giuseppe
Gast
« Antwort #4 am: 12. Juli 2004, 14:29:52 »

hi,

im debug.log erhalte ich nun folgenden Fehler:

 no supplemental groups found for user'user.hier'

gruss
Giuseppe
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #5 am: 12. Juli 2004, 14:58:05 »

Zitat von: "giuseppe"
hi,

im debug.log erhalte ich nun folgenden Fehler:

 no supplemental groups found for user'user.hier'

gruss
Giuseppe


das ist kein fehler. "Supplemental" bedeutet ja soviel wie "zusaetzlich". Poste bitte BEIDE Logs oder (besser) poste die Links zu den Logs
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
giuseppe
Gast
« Antwort #6 am: 12. Juli 2004, 15:08:15 »

da ich derzeit leider keine ablage habe, muss ich die logs posten:

debug.log:
Jul 12 14:48:08 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): connected - local  : 127.0.0.1:21
Jul 12 14:48:08 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): connected - remote : 127.0.0.1:2897
Jul 12 14:48:08 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): FTP session opened.
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'USER user.hier@server.de' to mod_core
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'USER user.hier@server.de' to mod_core
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'USER user.hier@server.de' to mod_auth
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endpwent" to module mod_sql
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_sql
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_file
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_unix
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching CMD command 'USER user.hier@server.de' to mod_auth
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_sql
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_auth_file
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_auth_unix
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): no supplemental groups found for user 'user.hier@server.de'
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching POST_CMD command 'USER user.hier@server.de' to mod_sql
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching LOG_CMD command 'USER user.hier@server.de' to mod_sql
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching LOG_CMD command 'USER user.hier@server.de' to mod_log
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'PASS (hidden)' to mod_core
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'PASS (hidden)' to mod_core
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endpwent" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_file
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_unix
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching CMD command 'PASS (hidden)' to mod_auth
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_auth_file
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_auth_unix
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): no supplemental groups found for user 'user.hier@server.de'
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getpwnam" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endpwent" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_file
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_unix
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): FTP session closed.

proftp.log:
localhost UNKNOWN nobody [12/Jul/2004:14:48:18 +0200] "USER user.hier" 331 -

mysql.log:
Connect     user@localhost on mailbase
Query       SELECT account, password, uid, gid, maildir, shell FROM mailuser WHERE (account='user.hier') LIMIT 1


gruss
  Giuseppe
Gespeichert
Anonymous
Gast
« Antwort #7 am: 12. Juli 2004, 15:15:46 »

Zitat von: "giuseppe"
da ich derzeit leider keine ablage habe, muss ich die logs posten:

debug.log:
Jul 12 14:48:08 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): connected - local  : 127.0.0.1:21
Jul 12 14:48:08 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): connected - remote : 127.0.0.1:2897
Jul 12 14:48:08 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): FTP session opened.
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'USER user.hier@server.de' to mod_core
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'USER user.hier@server.de' to mod_core
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'USER user.hier@server.de' to mod_auth
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endpwent" to module mod_sql
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_sql
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_file
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_unix
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching CMD command 'USER user.hier@server.de' to mod_auth
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_sql
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_auth_file
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_auth_unix
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): no supplemental groups found for user 'user.hier@server.de'
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching POST_CMD command 'USER user.hier@server.de' to mod_sql
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching LOG_CMD command 'USER user.hier@server.de' to mod_sql
Jul 12 14:48:18 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching LOG_CMD command 'USER user.hier@server.de' to mod_log
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'PASS (hidden)' to mod_core
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'PASS (hidden)' to mod_core
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endpwent" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_file
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_unix
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching CMD command 'PASS (hidden)' to mod_auth
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_auth_file
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getgroups" to module mod_auth_unix
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): no supplemental groups found for user 'user.hier@server.de'
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "getpwnam" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endpwent" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_sql
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_file
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): dispatching auth request "endgrent" to module mod_auth_unix
Jul 12 14:48:22 mail proftpd[8869] mail.server.de (localhost[127.0.0.1]): FTP session closed.

proftp.log:
localhost UNKNOWN nobody [12/Jul/2004:14:48:18 +0200] "USER user.hier" 331 -

mysql.log:
Connect     user@localhost on mailbase
Query       SELECT account, password, uid, gid, maildir, shell FROM mailuser WHERE (account='user.hier') LIMIT 1


gruss
  Giuseppe


unter mysql.log und proftp.log ist der user=user.hier@server.de.
Gespeichert
giuseppe
Gast
« Antwort #8 am: 13. Juli 2004, 12:01:51 »

Hi Liste,

hat keiner ´ne Idee für mich ?!
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #9 am: 13. Juli 2004, 12:16:22 »

Zitat von: "giuseppe"
Hi Liste,

hat keiner ´ne Idee für mich ?!


hmm, irgendwie macht das keinen Sinn fuer mich. Kurz Root Zugriff kannst Du mir nicht geben, oder ?
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
giuseppe
ProFTPD
*
Offline Offline

Beiträge: 2


Profil anzeigen
« Antwort #10 am: 13. Juli 2004, 13:28:41 »

Zitat von: "stonki"
Zitat von: "giuseppe"
Hi Liste,

hat keiner ´ne Idee für mich ?!


hmm, irgendwie macht das keinen Sinn fuer mich. Kurz Root Zugriff kannst Du mir nicht geben, oder ?


du hast ´ne PN
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #11 am: 13. Juli 2004, 14:54:09 »

Zitat von: "giuseppe"
Zitat von: "stonki"
Zitat von: "giuseppe"
Hi Liste,

hat keiner ´ne Idee für mich ?!


hmm, irgendwie macht das keinen Sinn fuer mich. Kurz Root Zugriff kannst Du mir nicht geben, oder ?


du hast ´ne PN


SHELL war nicht definiert.

"SQLLOGFILE /var/log/proftpd.sql.log" ist der Freund bei solchen sachen
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
giuseppe
ProFTPD
*
Offline Offline

Beiträge: 2


Profil anzeigen
« Antwort #12 am: 13. Juli 2004, 14:56:53 »

Zitat von: "stonki"
Zitat von: "giuseppe"
Zitat von: "stonki"
Zitat von: "giuseppe"
Hi Liste,

hat keiner ´ne Idee für mich ?!


hmm, irgendwie macht das keinen Sinn fuer mich. Kurz Root Zugriff kannst Du mir nicht geben, oder ?


du hast ´ne PN


SHELL war nicht definiert.

"SQLLOGFILE /var/log/proftpd.sql.log" ist der Freund bei solchen sachen


Danke nochmal... ;-) -freu-
Gespeichert
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #13 am: 13. Juli 2004, 15:58:27 »

:roll:
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
Seiten: [1]   Nach oben
  Drucken  
 
Gehe zu:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Prüfe XHTML 1.0 Prüfe CSS
Seite erstellt in 0.082 Sekunden mit 19 Zugriffen.