NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | OK REPLIES | ERROR MESSAGES | NOTES | ATTRIBUTES
#include <arpa/ftpd/systemAuth.h>int systemPass(FtpConn *conn);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
Using criteria defined by the implementation, this function verifies that the correct user password is used. The user name is conn->name, and the user password is conn->passwd. If the password is accepted, a connection is opened according to user defaults. This might necessitate the following:
Changing the current directory to the home directory of the user (updating conn->dir in multi-threaded conditions).
Changing the root directory (if supported by the implementation).
Changing conn->shell (if shell spawning is supported).
In a traditional UNIX implementation if conn->guest = 1, the password is not checked.
Returns 0 if the password is correct, -1 otherwise.
Parameters conn->dir and conn->shell are only used by the application side; the FTPD library does not interpret them. If the systemBeuser(3FTPD) and systemBesuper(3FTPD) routines are to be used, the necessary information must be provided to the application side.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | OK REPLIES | ERROR MESSAGES | NOTES | ATTRIBUTES