SQLDirQuery

Documentation Options SQLDirQuery
Available in:moftpd 1.2b0-
Allowed in:<Server>, <User>
Inherited:yes
Arguments:string
Description: SQL Query to find directory information for a user.
Each row in the result will be added to the directory permissions list for this login. One column should be "directory", with value the full path of this directory/file. The rest should be options valid in <Directory>.
The order of the rows are not unimportant. Generally, you should return parent directories before subdirectories.
%u is replaced by the (quoted) user name, but only outside strings (to not confilct with LIKE).
%s is replaced by the server name.
%l is replaced by the local ip. %L is replaced by the local port.
%r is replaced by the remote ip. %R is replaced by the remote port.
You can type \% to generate a % and \\ to generate a backslash.
Example:SQLDirQuery "select directory,deny,allow from directories where user = %u"
See also:SQLConnect, SQLUserQuery
moftpd homepage