www.ProFTPD.de
13. März 2007, 21:23:47 *
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: Proftpd mit mod_sql_mysql und mod_quotatab_sql möglich ???  (Gelesen 356 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
GreenRover
Gast
« am: 27. November 2004, 09:39:37 »

Hallo ich würde gerne ein FTP server haben der seine Benutzer aus einer Mysqldatenbank hold und dazu noch diese´n Benutzern eine Speicherplatzbegrenzung auf erlegen.

Ich wollte das ganze mit Proftpd und folgendne Compileoptionen lösen:

./configure \
--prefix=/usr/local/lamp/proftpd/ \
--with-modules=mod_sql:mod_sql_mysql:mod_quotatab_sql \
--with-includes=/usr/local/lamp/mysql/include/mysql \
--with-libraries=/usr/local/lamp/mysql/lib/mysql \
--sysconfdir=/etc \
--localstatedir=/var

Leider wird beim folgenden MAKE befehl nur  eine Reihe von Programmierungsfehlern in den mod_quotatab_sql  Dateien ausgegeben???
Mein C reicht leider nicht um den Fehler zu findne. aber schein einfahcn ur eine Variabele nicht deklariert zu sein.

Ich nutze die: proftpd-1.2.10
Bitte verratet mir was ich machen kann oder ob das Problem in der 1.2.11 gefixt wird.

PS:
nur mit mod_sql_mysql funst es und nur quota welcher seine User aus der sysdatei (passwd) holt funst auch.
Gespeichert
Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #1 am: 27. November 2004, 10:08:45 »

1. mod_quotatab:mod_quotatab_sql  :!: beim configure (Beide!)

2. Die Pfade sehen so kommisch aus.

3. Poste mal das komplette Ergebnis von make.

4. Und mache vorher make clean
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
GreenRover
ProFTPD
*
Offline Offline

Beiträge: 15

224408346
Profil anzeigen
« Antwort #2 am: 27. November 2004, 10:10:54 »

Kann ich machen.
Aber die sind IO. Den der mod PHP leuft ja auch damit.
Es ist mysql-4.1.7.
Gespeichert

Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #3 am: 27. November 2004, 10:11:42 »

Na probier mal.
Ich denke das mod_quotatab:mod_quotatab_sql  beim configure wird's sein.
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
GreenRover
ProFTPD
*
Offline Offline

Beiträge: 15

224408346
Profil anzeigen
« Antwort #4 am: 27. November 2004, 10:16:20 »

So nun erstmal nochmal mit die Fehlermeldung mit meinem config parametern.

Code:

mod_quotatab_sql.c:53: warning: implicit declaration of function `va_start'
mod_quotatab_sql.c:53: `argp' undeclared (first use in this function)
mod_quotatab_sql.c:55: warning: implicit declaration of function `va_arg'
mod_quotatab_sql.c:55: parse error before "char"
mod_quotatab_sql.c:56: warning: implicit declaration of function `va_end'
mod_quotatab_sql.c:59: warning: control reaches end of non-void function
mod_quotatab_sql.c: At top level:
mod_quotatab_sql.c:61: parse error before '*' token
mod_quotatab_sql.c: In function `sqltab_get_name':
mod_quotatab_sql.c:62: `cmdtable' undeclared (first use in this function)
mod_quotatab_sql.c:62: `cmdtab' undeclared (first use in this function)
mod_quotatab_sql.c:63: `cmd_rec' undeclared (first use in this function)
mod_quotatab_sql.c:63: `cmd' undeclared (first use in this function)
mod_quotatab_sql.c:64: `modret_t' undeclared (first use in this function)
mod_quotatab_sql.c:64: `res' undeclared (first use in this function)
mod_quotatab_sql.c:67: warning: implicit declaration of function `pr_stash_get_symbol'
mod_quotatab_sql.c:67: `PR_SYM_HOOK' undeclared (first use in this function)
mod_quotatab_sql.c:67: `NULL' undeclared (first use in this function)
mod_quotatab_sql.c:69: warning: implicit declaration of function `quotatab_log'
mod_quotatab_sql.c:70: `name' undeclared (first use in this function)
mod_quotatab_sql.c:73: warning: implicit declaration of function `strlen'
mod_quotatab_sql.c:76: `p' undeclared (first use in this function)
mod_quotatab_sql.c:76: warning: implicit declaration of function `pr_str_strip'
mod_quotatab_sql.c:79: warning: implicit declaration of function `call_module'
mod_quotatab_sql.c:82: warning: implicit declaration of function `MODRET_ISERROR'
mod_quotatab_sql.c:62: warning: statement with no effect
mod_quotatab_sql.c:63: warning: statement with no effect
mod_quotatab_sql.c:64: warning: statement with no effect
mod_quotatab_sql.c:88: warning: control reaches end of non-void function
mod_quotatab_sql.c: At top level:
mod_quotatab_sql.c:90: parse error before '*' token
mod_quotatab_sql.c:96: parse error before '*' token
mod_quotatab_sql.c: In function `sqltab_create':
mod_quotatab_sql.c:97: `pool' undeclared (first use in this function)
mod_quotatab_sql.c:97: `tmp_pool' undeclared (first use in this function)
mod_quotatab_sql.c:97: `NULL' undeclared (first use in this function)
mod_quotatab_sql.c:98: `cmdtable' undeclared (first use in this function)
mod_quotatab_sql.c:98: `sql_cmdtab' undeclared (first use in this function)
mod_quotatab_sql.c:99: `cmd_rec' undeclared (first use in this function)
mod_quotatab_sql.c:99: `sql_cmd' undeclared (first use in this function)
mod_quotatab_sql.c:100: `modret_t' undeclared (first use in this function)
mod_quotatab_sql.c:100: `sql_res' undeclared (first use in this function)
mod_quotatab_sql.c:106: `sqltab' undeclared (first use in this function)
mod_quotatab_sql.c:112: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:113: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:114: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:115: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:116: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:117: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:118: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:119: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:130: warning: implicit declaration of function `snprintf'
mod_quotatab_sql.c:131: `quotatab_tally' undeclared (first use in this function)
mod_quotatab_sql.c:134: `USER_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:137: `GROUP_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:140: `CLASS_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:143: `ALL_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:178: `PR_SYM_HOOK' undeclared (first use in this function)
mod_quotatab_sql.c:181: warning: implicit declaration of function `destroy_pool'
mod_quotatab_sql.c:191: warning: implicit declaration of function `strerror'
mod_quotatab_sql.c:191: `errno' undeclared (first use in this function)
mod_quotatab_sql.c: At top level:
mod_quotatab_sql.c:200: parse error before '*' token
mod_quotatab_sql.c: In function `sqltab_lookup':
mod_quotatab_sql.c:202: `pool' undeclared (first use in this function)
mod_quotatab_sql.c:202: `tmp_pool' undeclared (first use in this function)
mod_quotatab_sql.c:202: `NULL' undeclared (first use in this function)
mod_quotatab_sql.c:203: `cmdtable' undeclared (first use in this function)
mod_quotatab_sql.c:203: `sql_cmdtab' undeclared (first use in this function)
mod_quotatab_sql.c:204: `cmd_rec' undeclared (first use in this function)
mod_quotatab_sql.c:204: `sql_cmd' undeclared (first use in this function)
mod_quotatab_sql.c:205: `modret_t' undeclared (first use in this function)
mod_quotatab_sql.c:205: `sql_res' undeclared (first use in this function)
mod_quotatab_sql.c:206: `array_header' undeclared (first use in this function)
mod_quotatab_sql.c:206: `sql_data' undeclared (first use in this function)
mod_quotatab_sql.c:210: `sqltab' undeclared (first use in this function)
mod_quotatab_sql.c:213: `TYPE_TALLY' undeclared (first use in this function)
mod_quotatab_sql.c:216: `TYPE_LIMIT' undeclared (first use in this function)
mod_quotatab_sql.c:220: `PR_SYM_HOOK' undeclared (first use in this function)
mod_quotatab_sql.c:224: `FALSE' undeclared (first use in this function)
mod_quotatab_sql.c:229: `name' undeclared (first use in this function)
mod_quotatab_sql.c:230: `quota_type' undeclared (first use in this function)
mod_quotatab_sql.c:230: `USER_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:230: `GROUP_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:231: `CLASS_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:243: parse error before ')' token
mod_quotatab_sql.c:266: warning: implicit declaration of function `memmove'
mod_quotatab_sql.c:266: `quotatab_tally' undeclared (first use in this function)
mod_quotatab_sql.c:268: warning: implicit declaration of function `strcasecmp'
mod_quotatab_sql.c:278: `ALL_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:290: warning: implicit declaration of function `strcmp'
mod_quotatab_sql.c:295: warning: implicit declaration of function `atof'
mod_quotatab_sql.c:298: warning: implicit declaration of function `atoi'
mod_quotatab_sql.c:303: `TRUE' undeclared (first use in this function)
mod_quotatab_sql.c:328: `quotatab_limit' undeclared (first use in this function)
mod_quotatab_sql.c:364: `SOFT_LIMIT' undeclared (first use in this function)
mod_quotatab_sql.c:367: `HARD_LIMIT' undeclared (first use in this function)
mod_quotatab_sql.c:372: warning: implicit declaration of function `atol'
mod_quotatab_sql.c:384: warning: control reaches end of non-void function
mod_quotatab_sql.c: At top level:
mod_quotatab_sql.c:390: parse error before '*' token
mod_quotatab_sql.c:394: parse error before '*' token
mod_quotatab_sql.c: In function `sqltab_verify':
mod_quotatab_sql.c:397: `TRUE' undeclared (first use in this function)
mod_quotatab_sql.c:398: warning: control reaches end of non-void function
mod_quotatab_sql.c: At top level:
mod_quotatab_sql.c:400: parse error before '*' token
mod_quotatab_sql.c: In function `sqltab_write':
mod_quotatab_sql.c:401: `pool' undeclared (first use in this function)
mod_quotatab_sql.c:401: `tmp_pool' undeclared (first use in this function)
mod_quotatab_sql.c:401: `NULL' undeclared (first use in this function)
mod_quotatab_sql.c:402: `cmdtable' undeclared (first use in this function)
mod_quotatab_sql.c:402: `sql_cmdtab' undeclared (first use in this function)
mod_quotatab_sql.c:403: `cmd_rec' undeclared (first use in this function)
mod_quotatab_sql.c:403: `sql_cmd' undeclared (first use in this function)
mod_quotatab_sql.c:404: `modret_t' undeclared (first use in this function)
mod_quotatab_sql.c:404: `sql_res' undeclared (first use in this function)
mod_quotatab_sql.c:410: `sqltab' undeclared (first use in this function)
mod_quotatab_sql.c:416: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:417: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:418: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:419: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:420: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:421: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:422: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:433: `quotatab_tally' undeclared (first use in this function)
mod_quotatab_sql.c:433: `USER_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:436: `GROUP_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:439: `CLASS_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:442: `ALL_QUOTA' undeclared (first use in this function)
mod_quotatab_sql.c:451: `quotatab_deltas' undeclared (first use in this function)
mod_quotatab_sql.c:480: `PR_SYM_HOOK' undeclared (first use in this function)
mod_quotatab_sql.c:493: `errno' undeclared (first use in this function)
mod_quotatab_sql.c: At top level:
mod_quotatab_sql.c:502: parse error before '*' token
mod_quotatab_sql.c: In function `sqltab_rlock':
mod_quotatab_sql.c:506: `sqltab' undeclared (first use in this function)
mod_quotatab_sql.c:506: `F_RDLCK' undeclared (first use in this function)
mod_quotatab_sql.c:507: warning: implicit declaration of function `fcntl'
mod_quotatab_sql.c:507: `F_SETLK' undeclared (first use in this function)
mod_quotatab_sql.c: At top level:
mod_quotatab_sql.c:513: parse error before '*' token
mod_quotatab_sql.c: In function `sqltab_unlock':
mod_quotatab_sql.c:517: `sqltab' undeclared (first use in this function)
mod_quotatab_sql.c:517: `F_UNLCK' undeclared (first use in this function)
mod_quotatab_sql.c:518: `F_SETLK' undeclared (first use in this function)
mod_quotatab_sql.c: At top level:
mod_quotatab_sql.c:524: parse error before '*' token
mod_quotatab_sql.c: In function `sqltab_wlock':
mod_quotatab_sql.c:528: `sqltab' undeclared (first use in this function)
mod_quotatab_sql.c:528: `F_WRLCK' undeclared (first use in this function)
mod_quotatab_sql.c:529: `F_SETLK' undeclared (first use in this function)
mod_quotatab_sql.c: At top level:
mod_quotatab_sql.c:535: parse error before '*' token
mod_quotatab_sql.c:535: parse error before '*' token
mod_quotatab_sql.c:536: warning: return type defaults to `int'
mod_quotatab_sql.c: In function `sqltab_open':
mod_quotatab_sql.c:538: `quota_table_t' undeclared (first use in this function)
mod_quotatab_sql.c:538: `tab' undeclared (first use in this function)
mod_quotatab_sql.c:538: `NULL' undeclared (first use in this function)
mod_quotatab_sql.c:539: `pool' undeclared (first use in this function)
mod_quotatab_sql.c:539: `tab_pool' undeclared (first use in this function)
mod_quotatab_sql.c:539: `parent_pool' undeclared (first use in this function)
mod_quotatab_sql.c:539: invalid lvalue in assignment
mod_quotatab_sql.c:540: `tmp_pool' undeclared (first use in this function)
mod_quotatab_sql.c:540: warning: left-hand operand of comma expression has no effect
mod_quotatab_sql.c:541: `config_rec' undeclared (first use in this function)
mod_quotatab_sql.c:541: `c' undeclared (first use in this function)
mod_quotatab_sql.c:544: parse error before ')' token
mod_quotatab_sql.c:546: `tab_type' undeclared (first use in this function)
mod_quotatab_sql.c:548: `TYPE_TALLY' undeclared (first use in this function)
mod_quotatab_sql.c:560: warning: implicit declaration of function `strchr'
mod_quotatab_sql.c:560: `srcinfo' undeclared (first use in this function)
mod_quotatab_sql.c:564: `errno' undeclared (first use in this function)
mod_quotatab_sql.c:564: `EINVAL' undeclared (first use in this function)
mod_quotatab_sql.c:578: warning: implicit declaration of function `pstrdup'
mod_quotatab_sql.c:578: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:583: warning: implicit declaration of function `pstrcat'
mod_quotatab_sql.c:583: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:585: warning: implicit declaration of function `find_config'
mod_quotatab_sql.c:585: `main_server' undeclared (first use in this function)
mod_quotatab_sql.c:585: `CONF_PARAM' undeclared (first use in this function)
mod_quotatab_sql.c:585: `FALSE' undeclared (first use in this function)
mod_quotatab_sql.c:605: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:610: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:625: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:637: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:653: `TYPE_LIMIT' undeclared (first use in this function)
mod_quotatab_sql.c:676: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:704: `SEEK_CUR' undeclared (first use in this function)
mod_quotatab_sql.c:710: warning: control reaches end of non-void function
mod_quotatab_sql.c: In function `sqltab_sess_init':
mod_quotatab_sql.c:713: warning: implicit declaration of function `quotatab_openlog'
mod_quotatab_sql.c:716: warning: implicit declaration of function `get_param_ptr'
mod_quotatab_sql.c:716: `main_server' undeclared (first use in this function)
mod_quotatab_sql.c:716: `FALSE' undeclared (first use in this function)
mod_quotatab_sql.c:716: warning: assignment makes pointer from integer without a cast
mod_quotatab_sql.c:717: `NULL' undeclared (first use in this function)
mod_quotatab_sql.c:721: `PRIVS_ROOT' undeclared (first use in this function)
mod_quotatab_sql.c:721: parse error before "if"
mod_quotatab_sql.c:724: warning: implicit declaration of function `open'
mod_quotatab_sql.c:724: `O_RDWR' undeclared (first use in this function)
mod_quotatab_sql.c:724: `O_CREAT' undeclared (first use in this function)
mod_quotatab_sql.c:727: `PRIVS_RELINQUISH' undeclared (first use in this function)
mod_quotatab_sql.c:727: parse error before "if"
mod_quotatab_sql.c:732: warning: control reaches end of non-void function
mod_quotatab_sql.c: At top level:
mod_quotatab_sql.c:734: parse error before "return"
mod_quotatab_sql.c: In function `sqltab_init':
mod_quotatab_sql.c:740: warning: implicit declaration of function `quotatab_register'
mod_quotatab_sql.c:741: `QUOTATAB_LIMIT_SRC' undeclared (first use in this function)
mod_quotatab_sql.c:741: `QUOTATAB_TALLY_SRC' undeclared (first use in this function)
mod_quotatab_sql.c: At top level:
mod_quotatab_sql.c:746: parse error before "quotatab_sql_module"
mod_quotatab_sql.c:746: warning: type defaults to `int' in declaration of `quotatab_sql_module'
mod_quotatab_sql.c:747: `NULL' undeclared here (not in a function)
mod_quotatab_sql.c:747: initializer element is not constant
mod_quotatab_sql.c:747: (near initialization for `quotatab_sql_module')
mod_quotatab_sql.c:747: `NULL' undeclared here (not in a function)
mod_quotatab_sql.c:747: warning: excess elements in scalar initializer
mod_quotatab_sql.c:747: warning: (near initialization for `quotatab_sql_module')
mod_quotatab_sql.c:750: warning: excess elements in scalar initializer
mod_quotatab_sql.c:750: warning: (near initialization for `quotatab_sql_module')
mod_quotatab_sql.c:753: warning: excess elements in scalar initializer
mod_quotatab_sql.c:753: warning: (near initialization for `quotatab_sql_module')
mod_quotatab_sql.c:756: `NULL' undeclared here (not in a function)
mod_quotatab_sql.c:756: warning: excess elements in scalar initializer
mod_quotatab_sql.c:756: warning: (near initialization for `quotatab_sql_module')
mod_quotatab_sql.c:759: `NULL' undeclared here (not in a function)
mod_quotatab_sql.c:759: warning: excess elements in scalar initializer
mod_quotatab_sql.c:759: warning: (near initialization for `quotatab_sql_module')
mod_quotatab_sql.c:762: `NULL' undeclared here (not in a function)
mod_quotatab_sql.c:762: warning: excess elements in scalar initializer
mod_quotatab_sql.c:762: warning: (near initialization for `quotatab_sql_module')
mod_quotatab_sql.c:765: warning: excess elements in scalar initializer
mod_quotatab_sql.c:765: warning: (near initialization for `quotatab_sql_module')
mod_quotatab_sql.c:769: warning: excess elements in scalar initializer
mod_quotatab_sql.c:769: warning: (near initialization for `quotatab_sql_module')
mod_quotatab_sql.c:769: warning: data definition has no type or storage class
../include/mod_sql.h:47: warning: array `sql_cmdtable' assumed to have one element
make[1]: *** [mod_quotatab_sql.o] Error 1
make[1]: Leaving directory `/tmp/proftpd-1.2.10/modules'
make: *** [modules] Error 2
Gespeichert

Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #5 am: 27. November 2004, 10:18:49 »

Also nochmal:

Code:
./configure \
--prefix=/usr/local/lamp/proftpd/ \
--with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql \
--with-includes=/usr/local/lamp/mysql/include/mysql \
--with-libraries=/usr/local/lamp/mysql/lib/mysql \
--sysconfdir=/etc \
--localstatedir=/var

make clean

make


Poste dann das komplette Ergebnis von make
Gespeichert

RedHat 8.0 (2.4er Kernel)
proftpd 1.2.10
-mod_sql_mysql
-mow_wrap
-mod_exec
-mod_ifsession[/size]
GreenRover
ProFTPD
*
Offline Offline

Beiträge: 15

224408346
Profil anzeigen
« Antwort #6 am: 27. November 2004, 10:22:00 »

Hat sich alles erledigt. Es war doch blos das der mod_quotatab gefehtl hat.
Hatte gedacht der währe nur für das normale quota mit der passwd.
na dann THX.

aber ich habe noch eine Frage. Ist es möglich das der server sein benutzerdaten aus mehreren Sql Tabellen zusammensucht ??

laos die logindaten sind in einer Tabelle und die Pfad- und quotaangaben in einer anderen
Gespeichert

Wörsty
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 1602


50772603
Profil anzeigen WWW E-Mail
« Antwort #7 am: 27. November 2004, 10:47:28 »

Zitat von: "GreenRover"
aber ich habe noch eine Frage. Ist es möglich das der server sein benutzerdaten aus mehreren Sql Tabellen zusammensucht ??

Weiß nicht. Noch nicht probiert. Denke nicht.
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.069 Sekunden mit 16 Zugriffen.