Do the authentication with an external command cmd.
Values to be used the authentication to be passed to the command is
specified with the format as "%format"
like %U for username and %P for password.
A parameter can be passed in command-line argument,
in environment variable or in the standard input of the command.
If the environment and input-pattern is omitted as
AUTHORIZER="-cmd{cmd},
the pair of user name and password is passed by default
as if implicitly specified as
AUTHORIZER="-cmd{cmd}{DG_USER=%U DG_PASS=%P}{USER %U\nPASS %P\n}".
The result of the authentication by the command is shown in its output string
or by its exit code.
The command may puts a string to its standard output to show the result
in the form of a status response of the FTP protocol, that is,
"230" for success and "530" for failure.
Otherwise the exit code of the process is used, the value zero for success
and non-zero values for failure.
Example: passing username in argument while password in environment variable
AUTHORIZER="-cmd{myauth %U}{MYPASS=%P}"
[the content of the myauth command]
#!/bin/sh
if [ "$1" = "user1" -a "$MYPASS" = "pass1" ]; then
echo "230 SUCCESS"
else
echo "530 FAILURE"
fi