Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal: unknown configuration directive IdentLookups #1377

Closed
sgohl opened this issue Jan 20, 2022 · 5 comments
Closed

fatal: unknown configuration directive IdentLookups #1377

sgohl opened this issue Jan 20, 2022 · 5 comments
Assignees
Labels

Comments

@sgohl
Copy link

sgohl commented Jan 20, 2022

on FreeBSD 13 (fresh installation) via ports

despite http://www.proftpd.org/docs/directives/linked/config_ref_IdentLookups.html stating that IdentLookups is in the core module:

# proftpd -t
Checking syntax of configuration file
2022-01-20 18:19:03,298 ftp proftpd[1122]: fatal: unknown configuration directive 'IdentLookups' on line 11 of '/usr/local/etc/proftpd.conf'
# proftpd -l
Compiled-in modules:
  mod_core.c
  mod_xfer.c
  mod_rlimit.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_facts.c
  mod_dso.c
  mod_auth_pam.c
  mod_ctrls.c
  mod_lang.c
# proftpd -V
Compile-time Settings:
  Version: 1.3.7c (maint)
  Platform: FREEBSD13 (FREEBSD13_0) [FreeBSD 13.0-RELEASE amd64]
  Built: Thu Jan 13 2022 17:10:05 UTC
  Built With:
    configure  '--localstatedir=/var/run' '--libexecdir=/usr/local/libexec/proftpd' '--with-pkgconfig=libdata/pkgconfig' '--sysconfdir=/usr/local/etc' '--enable-ctrls' '--enable-dso' '--disable-sendfile' '--enable-ipv6' '--disable-memcache' '--enable-nls' '--enable-pcre' '--disable-redis' '--with-shared=mod_ban:mod_copy:mod_ctrls_admin:mod_deflate:mod_dnsbl:mod_dynmasq:mod_exec:mod_ifsession:mod_ifversion:mod_qos:mod_quotatab:mod_quotatab_file:mod_quotatab_radius:mod_quotatab_sql:mod_radius:mod_ratio:mod_readme:mod_rewrite:mod_sftp:mod_sftp_pam:mod_sftp_sql:mod_shaper:mod_site_misc:mod_snmp:mod_sql:mod_sql_passwd:mod_tls:mod_tls_shmcache:mod_unique_id:mod_wrap2:mod_wrap2_file:mod_wrap2_sql' '--with-includes=/usr/local/include' '--with-libraries=/usr/local/lib' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/share/info/' '--build=amd64-portbld-freebsd13.0' 'build_alias=amd64-portbld-freebsd13.0' 'CC=cc' 'CFLAGS=-O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing ' 'LDFLAGS= -lpthread  -fstack-protector-strong ' 'LIBS=-lssl -lcrypto -L/usr/lib' 'CPPFLAGS=-DHAVE_OPENSSL -I/usr/include -DLIBICONV_PLUG' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing  -DLIBICONV_PLUG '

  CFLAGS: -g2 -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing  -Wall -fno-omit-frame-pointer -fno-strict-aliasing -Werror=implicit-function-declaration
  LDFLAGS: -L$(top_srcdir)/lib -L$(top_builddir)/lib  -lpthread  -fstack-protector-strong  -rdynamic -L/usr/local/lib
  LIBS: -lintl  -lpcreposix -lpcre -lssl -lcrypto -lpam -lsupp -lexecinfo -lcrypt -lssl -lcrypto -L/usr/lib -lutil -pthread

  Files:
    Configuration File:
      /usr/local/etc/proftpd.conf
    Pid File:
      /var/run/proftpd.pid
    Scoreboard File:
      /var/run/proftpd.scoreboard
    Header Directory:
      /usr/local/include/proftpd
    Shared Module Directory:
      /usr/local/libexec/proftpd

  Info:
    + Max supported UID: 4294967295
    + Max supported GID: 4294967295

  Features:
    - Autoshadow support
    + Controls support
    + curses support
    - Developer support
    + DSO support
    + IPv6 support
    + Largefile support
    - Lastlog support
    - Memcache support
    + ncursesw support
    + NLS support
    + OpenSSL support (OpenSSL 1.1.1k-freebsd  24 Aug 2021)
    + PCRE support
    - POSIX ACL support
    - Redis support
    - Sendfile support
    - Shadow file support
    - Sodium support
    + Trace support
    + xattr support

  Tunable Options:
    PR_TUNABLE_BUFFER_SIZE = 1024
    PR_TUNABLE_DEFAULT_RCVBUFSZ = 8192
    PR_TUNABLE_DEFAULT_SNDBUFSZ = 8192
    PR_TUNABLE_ENV_MAX = 2048
    PR_TUNABLE_GLOBBING_MAX_MATCHES = 100000
    PR_TUNABLE_GLOBBING_MAX_RECURSION = 8
    PR_TUNABLE_HASH_TABLE_SIZE = 40
    PR_TUNABLE_LOGIN_MAX = 256
    PR_TUNABLE_NEW_POOL_SIZE = 512
    PR_TUNABLE_PATH_MAX = 1024
    PR_TUNABLE_SCOREBOARD_BUFFER_SIZE = 80
    PR_TUNABLE_SCOREBOARD_SCRUB_TIMER = 30
    PR_TUNABLE_SELECT_TIMEOUT = 30
    PR_TUNABLE_TIMEOUTIDENT = 10
    PR_TUNABLE_TIMEOUTIDLE = 600
    PR_TUNABLE_TIMEOUTLINGER = 10
    PR_TUNABLE_TIMEOUTLOGIN = 300
    PR_TUNABLE_TIMEOUTNOXFER = 300
    PR_TUNABLE_TIMEOUTSTALLED = 3600
    PR_TUNABLE_XFER_SCOREBOARD_UPDATES = 10
@Castaglia
Copy link
Member

The mod_ident module is disabled by default; see #269.

The best way to handle this, in your ProFTPD configuration, is to use e.g.:

<IfModule mod_ident.c>
  IdentLookups off
</IfModule>

@sgohl
Copy link
Author

sgohl commented Jan 20, 2022

Hi and thanks for your answer. It seemed like the mod_ident module was a bit deprecated and the function now went into the core (as the docs say, still), therefore I wanted to avoid loading this module just for this one reason.

Is this really the only way? So the docs are wrong?

@Castaglia
Copy link
Member

You don't need to load the module, no. (Which particular docs are you looking at, that say the functionality went into the core? I suspect those docs are stale, out-of-date.)

If you actually want the mod_ident functionality, then you need to load the module. Otherwise, the "fix" is either:

  • a) remove that IdentLookups directive from your config file, or
  • b) put the IdentLookups directive in the conditional <IfModule> block, as mentioned

@Castaglia Castaglia self-assigned this Jan 21, 2022
@sgohl
Copy link
Author

sgohl commented Jan 21, 2022

Which particular docs are you looking at

http://www.proftpd.org/docs/directives/linked/config_ref_IdentLookups.html

what I meant with "went into", was, that I know it used to be in the separate module ident. But seeing it stated as mod_core i just came to the conclusion that the module was being merged into the core. That was just my assumption.

Module
mod_core

If I add the conditional, I can't be really sure the statement is effectively enabled. In fact, if I leave out the conditional statement, it's what I currently got - it's not working. Therefore it seems that a module has to be loaded, and as it's not compiled with, it needs to be dso-loaded, what I actually don't want.

What I'd expect, is, that when I find a directive which is stated with "Module: mod_core", I should be able use it right away.
Otherwise I may misunderstand the docs itself.

But accepting the fact that I got 2 options now, I'd consider the question as answered. So thanks :)

@sgohl sgohl closed this as completed Jan 21, 2022
@Castaglia
Copy link
Member

For the record, here are the maintained, up-to-date documentation for these modules:

And I've filed #1378 to remove the confusing, out-of-date docs.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants