I am trying to configure proftpd 1.3.5b. What I would like to achieve is simple: only one VirtualHost, users will log in based on AuthUserFile and not based on /etc/passwd.
The problem is that all the authentication related configuration inside a VirtualHost is being ignored (although the VirtualHost is being loaded successfully).
Here is my config:
<VirtualHost 10.11.12.162>
......
DefaultRoot /disk/ftp/
AuthOrder mod_auth_file.c
AuthUserFile /etc/proftpd/misc/ftp.users
AuthGroupFile /etc/proftpd/misc/ftp.group
....
</VirtualHost>
Users can successfully login based on /etc/passwd and ftp.users is being ignored. DefaultRoot is also ignored.
If I place everything in proftpd.conf, outside the virtualhost, is working. According to documentation, AuthOrder & AuthUserFile is supported inside VirtualHost directive: http://www.proftpd.org/docs/directives/linked/config_ref_AuthUserFile.html
Any idea what is causing this problem? Best Regards