SQLUserQuery

Documentation Options SQLUserQuery
Available in:moftpd 1.2b0-
Allowed in:<Server>
Inherited:yes
Arguments:string
Description: SQL Query to find a user. If there's multiple matches the first line will be used.
Result column names should correspond against option names valid in <User>. A value of NULL is ignored.
%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:SQLUserQuery "select * from users where name = %u"
See also:SQLConnect, SQLDirQuery
moftpd homepage