vandal
Verified User
excellent script.
Tested on RH ES 3.0.
Tested on RH ES 3.0.
koh said:updated today, only have the following modules:
mod_core.c
mod_xfer.c
mod_auth_unix.c
mod_auth_file.c
mod_auth.c
mod_ls.c
mod_log.c
mod_site.c
mod_delay.c
mod_auth_pam.c
mod_ratio.c
mod_readme.c
mod_cap.c
rm -f upgrade-proftpd.sh
wget [url]http://www.web4host.net/tools/upgrade-proftpd.sh[/url]
chmod 755 upgrade-proftpd.sh
./upgrade-proftpd.sh
[root@server ~]# proftpd -l
Compiled-in modules:
mod_core.c
mod_xfer.c
mod_auth_unix.c
mod_auth_file.c
mod_auth.c
mod_ls.c
mod_log.c
mod_site.c
mod_delay.c
mod_auth_pam.c
mod_ratio.c
mod_readme.c
mod_tls.c
mod_ldap.c
mod_radius.c
mod_ifsession.c
mod_load.c
mod_quotatab.c
mod_quotatab_file.c
mod_quotatab_ldap.c
mod_rewrite.c
mod_wrap.c
mod_cap.c
[root@server ~]#
mod_ldap.c:380: warning: implicit declaration of function `ldap_get_dn'
mod_ldap.c:380: warning: assignment makes pointer from integer without a cast
mod_ldap.c:391: warning: assignment makes pointer from integer without a cast
mod_ldap.c:403: warning: assignment makes pointer from integer without a cast
mod_ldap.c:412: warning: assignment makes pointer from integer without a cast
mod_ldap.c:413: warning: assignment makes pointer from integer without a cast
mod_ldap.c:419: warning: implicit declaration of function `ldap_value_free'
mod_ldap.c:440: warning: assignment makes pointer from integer without a cast
mod_ldap.c:478: warning: assignment makes pointer from integer without a cast
mod_ldap.c:479: warning: assignment makes pointer from integer without a cast
mod_ldap.c:504: warning: assignment makes pointer from integer without a cast
mod_ldap.c: In function `pr_ldap_group_lookup':
mod_ldap.c:518: error: `LDAPMessage' undeclared (first use in this function)
mod_ldap.c:518: error: `result' undeclared (first use in this function)
mod_ldap.c:518: error: `e' undeclared (first use in this function)
mod_ldap.c:518: warning: left-hand operand of comma expression has no effect
mod_ldap.c:537: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_ldap.c:538: error: `LDAP_SERVER_DOWN' undeclared (first use in this function)
mod_ldap.c:543: warning: format argument is not a pointer (arg 3)
mod_ldap.c:551: warning: format argument is not a pointer (arg 3)
mod_ldap.c:568: warning: assignment makes pointer from integer without a cast
mod_ldap.c:579: warning: assignment makes pointer from integer without a cast
mod_ldap.c:589: warning: implicit declaration of function `ldap_count_values'
mod_ldap.c: In function `pr_ldap_quota_lookup':
mod_ldap.c:629: error: `LDAPMessage' undeclared (first use in this function)
mod_ldap.c:629: error: `result' undeclared (first use in this function)
mod_ldap.c:629: error: `e' undeclared (first use in this function)
mod_ldap.c:629: warning: left-hand operand of comma expression has no effect
mod_ldap.c:648: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_ldap.c:649: error: `LDAP_SERVER_DOWN' undeclared (first use in this function)
mod_ldap.c:660: warning: format argument is not a pointer (arg 3)
mod_ldap.c:664: warning: format argument is not a pointer (arg 3)
mod_ldap.c:688: warning: assignment makes pointer from integer without a cast
mod_ldap.c: In function `handle_ldap_getgroups':
mod_ldap.c:963: error: `LDAPMessage' undeclared (first use in this function)
mod_ldap.c:963: error: `result' undeclared (first use in this function)
mod_ldap.c:963: error: `e' undeclared (first use in this function)
mod_ldap.c:963: warning: left-hand operand of comma expression has no effect
mod_ldap.c:1001: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_ldap.c:1002: error: `LDAP_SERVER_DOWN' undeclared (first use in this function)
mod_ldap.c:1007: warning: format argument is not a pointer (arg 3)
mod_ldap.c:1015: warning: format argument is not a pointer (arg 3)
mod_ldap.c:1025: warning: implicit declaration of function `ldap_next_entry'
mod_ldap.c:1026: warning: assignment makes pointer from integer without a cast
mod_ldap.c:1027: warning: format argument is not a pointer (arg 3)
mod_ldap.c:1030: warning: assignment makes pointer from integer without a cast
mod_ldap.c:1031: warning: format argument is not a pointer (arg 3)
mod_ldap.c: In function `handle_ldap_check':
mod_ldap.c:1126: error: `LDAP' undeclared (first use in this function)
mod_ldap.c:1126: error: `ld_auth' undeclared (first use in this function)
mod_ldap.c:1174: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_ldap.c:1175: error: `LDAP_INVALID_CREDENTIALS' undeclared (first use in this function)
mod_ldap.c:1176: warning: format argument is not a pointer (arg 3)
mod_ldap.c:1178: warning: implicit declaration of function `ldap_unbind'
mod_ldap.c: In function `set_ldap_dereference':
mod_ldap.c:1457: error: `LDAP_DEREF_SEARCHING' undeclared (first use in this function)
mod_ldap.c:1459: error: `LDAP_DEREF_FINDING' undeclared (first use in this function)
mod_ldap.c:1461: error: `LDAP_DEREF_ALWAYS' undeclared (first use in this function)
mod_ldap.c: In function `ldap_getconf':
mod_ldap.c:1857: error: `LDAP_SCOPE_ONELEVEL' undeclared (first use in this function)
mod_ldap.c: In function `pr_ldap_user_lookup':
mod_ldap.c:315: warning: statement with no effect
mod_ldap.c: In function `pr_ldap_group_lookup':
mod_ldap.c:518: warning: statement with no effect
mod_ldap.c: In function `handle_ldap_getgroups':
mod_ldap.c:963: warning: statement with no effect
make[1]: *** [mod_ldap.o] Error 1
make[1]: Leaving directory `/root/proftpd-1.3.0/modules'
make: *** [modules] Error 2
cd lib/ && make lib
make[1]: Entering directory `/root/proftpd-1.3.0/lib'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/root/proftpd-1.3.0/lib'
cd src/ && make src
make[1]: Entering directory `/root/proftpd-1.3.0/src'
make[1]: Nothing to be done for `src'.
make[1]: Leaving directory `/root/proftpd-1.3.0/src'
cd modules/ && make static
make[1]: Entering directory `/root/proftpd-1.3.0/modules'
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -O2 -Wall -c mod_ldap.c
mod_ldap.c:94:18: lber.h: No such file or directory
mod_ldap.c:95:18: ldap.h: No such file or directory
mod_ldap.c:152: error: `LDAP_DEREF_NEVER' undeclared here (not in a function)
mod_ldap.c:153: error: `LDAP_SCOPE_SUBTREE' undeclared here (not in a function)
mod_ldap.c:163: error: syntax error before '*' token
mod_ldap.c:163: warning: type defaults to `int' in declaration of `ld'
mod_ldap.c:163: warning: data definition has no type or storage class
mod_ldap.c:178: error: syntax error before '*' token
mod_ldap.c: In function `pr_ldap_set_sizelimit':
mod_ldap.c:186: error: `limit_ld' undeclared (first use in this function)
mod_ldap.c:186: error: (Each undeclared identifier is reported only once
mod_ldap.c:186: error: for each function it appears in.)
mod_ldap.c:186: error: `limit' undeclared (first use in this function)
mod_ldap.c: At top level:
mod_ldap.c:191: error: syntax error before '*' token
mod_ldap.c: In function `pr_ldap_set_dereference':
mod_ldap.c:199: error: `deref_ld' undeclared (first use in this function)
mod_ldap.c:199: error: `derefopt' undeclared (first use in this function)
mod_ldap.c: In function `pr_ldap_unbind':
mod_ldap.c:212: warning: implicit declaration of function `ldap_unbind_s'
mod_ldap.c:212: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_ldap.c:213: warning: implicit declaration of function `ldap_err2string'
mod_ldap.c:213: warning: format argument is not a pointer (arg 3)
mod_ldap.c: At top level:
mod_ldap.c:220: error: syntax error before '*' token
mod_ldap.c: In function `pr_ldap_connect':
mod_ldap.c:224: error: `conn_ld' undeclared (first use in this function)
mod_ldap.c:224: warning: implicit declaration of function `ldap_init'
mod_ldap.c:224: error: `LDAP_PORT' undeclared (first use in this function)
mod_ldap.c:232: error: `LDAP_VERSION2' undeclared (first use in this function)
mod_ldap.c:236: error: `LDAP_VERSION3' undeclared (first use in this function)
mod_ldap.c:241: warning: implicit declaration of function `ldap_set_option'
mod_ldap.c:241: error: `LDAP_OPT_PROTOCOL_VERSION' undeclared (first use in this function)
mod_ldap.c:241: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_ldap.c:242: warning: format argument is not a pointer (arg 3)
mod_ldap.c:259: warning: comparison between pointer and integer
mod_ldap.c:260: warning: implicit declaration of function `ldap_simple_bind_s'
mod_ldap.c:261: warning: format argument is not a pointer (arg 4)
mod_ldap.c: In function `pr_ldap_user_lookup':
mod_ldap.c:315: error: `LDAPMessage' undeclared (first use in this function)
mod_ldap.c:315: error: `result' undeclared (first use in this function)
mod_ldap.c:315: error: `e' undeclared (first use in this function)
mod_ldap.c:315: warning: left-hand operand of comma expression has no effect
mod_ldap.c:334: warning: implicit declaration of function `ldap_search_st'
mod_ldap.c:334: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_ldap.c:335: error: `LDAP_SERVER_DOWN' undeclared (first use in this function)
mod_ldap.c:346: warning: format argument is not a pointer (arg 3)
mod_ldap.c:350: warning: format argument is not a pointer (arg 3)
mod_ldap.c:355: warning: implicit declaration of function `ldap_count_entries'
mod_ldap.c:357: warning: implicit declaration of function `ldap_msgfree'
mod_ldap.c:361: warning: implicit declaration of function `ldap_first_entry'
mod_ldap.c:373: warning: implicit declaration of function `ldap_get_values'
mod_ldap.c:373: warning: assignment makes pointer from integer without a cast
mod_ldap.c:380: warning: implicit declaration of function `ldap_get_dn'
mod_ldap.c:380: warning: assignment makes pointer from integer without a cast
mod_ldap.c:391: warning: assignment makes pointer from integer without a cast
mod_ldap.c:403: warning: assignment makes pointer from integer without a cast
mod_ldap.c:412: warning: assignment makes pointer from integer without a cast
mod_ldap.c:413: warning: assignment makes pointer from integer without a cast
mod_ldap.c:419: warning: implicit declaration of function `ldap_value_free'
mod_ldap.c:440: warning: assignment makes pointer from integer without a cast
mod_ldap.c:478: warning: assignment makes pointer from integer without a cast
mod_ldap.c:479: warning: assignment makes pointer from integer without a cast
mod_ldap.c:504: warning: assignment makes pointer from integer without a cast
mod_ldap.c: In function `pr_ldap_group_lookup':
mod_ldap.c:518: error: `LDAPMessage' undeclared (first use in this function)
mod_ldap.c:518: error: `result' undeclared (first use in this function)
mod_ldap.c:518: error: `e' undeclared (first use in this function)
mod_ldap.c:518: warning: left-hand operand of comma expression has no effect
mod_ldap.c:537: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_ldap.c:538: error: `LDAP_SERVER_DOWN' undeclared (first use in this function)
mod_ldap.c:543: warning: format argument is not a pointer (arg 3)
mod_ldap.c:551: warning: format argument is not a pointer (arg 3)
mod_ldap.c:568: warning: assignment makes pointer from integer without a cast
mod_ldap.c:579: warning: assignment makes pointer from integer without a cast
mod_ldap.c:589: warning: implicit declaration of function `ldap_count_values'
mod_ldap.c: In function `pr_ldap_quota_lookup':
mod_ldap.c:629: error: `LDAPMessage' undeclared (first use in this function)
mod_ldap.c:629: error: `result' undeclared (first use in this function)
mod_ldap.c:629: error: `e' undeclared (first use in this function)
mod_ldap.c:629: warning: left-hand operand of comma expression has no effect
mod_ldap.c:648: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_ldap.c:649: error: `LDAP_SERVER_DOWN' undeclared (first use in this function)
mod_ldap.c:660: warning: format argument is not a pointer (arg 3)
mod_ldap.c:664: warning: format argument is not a pointer (arg 3)
mod_ldap.c:688: warning: assignment makes pointer from integer without a cast
mod_ldap.c: In function `handle_ldap_getgroups':
mod_ldap.c:963: error: `LDAPMessage' undeclared (first use in this function)
mod_ldap.c:963: error: `result' undeclared (first use in this function)
mod_ldap.c:963: error: `e' undeclared (first use in this function)
mod_ldap.c:963: warning: left-hand operand of comma expression has no effect
mod_ldap.c:1001: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_ldap.c:1002: error: `LDAP_SERVER_DOWN' undeclared (first use in this function)
mod_ldap.c:1007: warning: format argument is not a pointer (arg 3)
mod_ldap.c:1015: warning: format argument is not a pointer (arg 3)
mod_ldap.c:1025: warning: implicit declaration of function `ldap_next_entry'
mod_ldap.c:1026: warning: assignment makes pointer from integer without a cast
mod_ldap.c:1027: warning: format argument is not a pointer (arg 3)
mod_ldap.c:1030: warning: assignment makes pointer from integer without a cast
mod_ldap.c:1031: warning: format argument is not a pointer (arg 3)
mod_ldap.c: In function `handle_ldap_check':
mod_ldap.c:1126: error: `LDAP' undeclared (first use in this function)
mod_ldap.c:1126: error: `ld_auth' undeclared (first use in this function)
mod_ldap.c:1174: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_ldap.c:1175: error: `LDAP_INVALID_CREDENTIALS' undeclared (first use in this function)
mod_ldap.c:1176: warning: format argument is not a pointer (arg 3)
mod_ldap.c:1178: warning: implicit declaration of function `ldap_unbind'
mod_ldap.c: In function `set_ldap_dereference':
mod_ldap.c:1457: error: `LDAP_DEREF_SEARCHING' undeclared (first use in this function)
mod_ldap.c:1459: error: `LDAP_DEREF_FINDING' undeclared (first use in this function)
mod_ldap.c:1461: error: `LDAP_DEREF_ALWAYS' undeclared (first use in this function)
mod_ldap.c: In function `ldap_getconf':
mod_ldap.c:1857: error: `LDAP_SCOPE_ONELEVEL' undeclared (first use in this function)
mod_ldap.c: In function `pr_ldap_user_lookup':
mod_ldap.c:315: warning: statement with no effect
mod_ldap.c: In function `pr_ldap_group_lookup':
mod_ldap.c:518: warning: statement with no effect
mod_ldap.c: In function `handle_ldap_getgroups':
mod_ldap.c:963: warning: statement with no effect
make[1]: *** [mod_ldap.o] Error 1
make[1]: Leaving directory `/root/proftpd-1.3.0/modules'
make: *** [modules] Error 2
rm -fr proftpd-* upgrade-proftpd.sh
wget [url]http://www.web4host.net/tools/upgrade-proftpd.sh[/url]
chmod 755 upgrade-proftpd.sh
./upgrade-proftpd.sh
/bin/sh ./libtool --mode=link gcc -L./lib -static -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/table.o src/regexp.o src/dirtree.o src/support.o src/netaddr.o src/inet.o src/child.o src/parser.o src/log.o src/xferlog.o src/bindings.o src/netacl.o src/class.o src/scoreboard.o src/help.o src/feat.o src/netio.o src/response.o src/ident.o src/data.o src/modules.o src/display.o src/auth.o src/fsio.o src/mkhome.o src/ctrls.o src/event.o src/var.o modules/mod_core.o modules/mod_xfer.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_cap.o modules/mod_auth_pam.o modules/mod_readme.o modules/mod_ratio.o modules/module_glue.o -lsupp -lcrypt -Llib/libcap -lcap -lpam
gcc -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/table.o src/regexp.o src/dirtree.o src/support.o src/netaddr.o src/inet.o src/child.o src/parser.o src/log.o src/xferlog.o src/bindings.o src/netacl.o src/class.o src/scoreboard.o src/help.o src/feat.o src/netio.o src/response.o src/ident.o src/data.o src/modules.o src/display.o src/auth.o src/fsio.o src/mkhome.o src/ctrls.o src/event.o src/var.o modules/mod_core.o modules/mod_xfer.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_cap.o modules/mod_auth_pam.o modules/mod_readme.o modules/mod_ratio.o modules/module_glue.o -L/root/proftpd-1.3.0/lib -lsupp -lcrypt -L/root/proftpd-1.3.0/lib/libcap -lcap -lpam
modules/module_glue.o(.data+0x24): undefined reference to `auth_pam_module'
collect2: ld returned 1 exit status
make: *** [proftpd] Error 1
jel3 said:- Fatal: unknown configuration directive 'AuthPAMAuthoritative' on line 46 of '/etc/proftpd.conf'
any ideas?