authenticate(self,
handle,
auth_req,
callback,
arg)
Authenticate a client connection.
This function is called to authenticate a connection from a
client.
After a client connection has been accepted (using the
globus_ftp_control_server_accept call), this function should be called
to authenticate the client. The caller of this function may specify
certain authentication requirements using the auth_requirements
parameter.
-
- Parameters:
handle -
a FtpControl object that has already been used in the accept
call
auth_req -
an int specifying the authentication required
callback -
The function to be called when the authentication has been
accepted or rejected. It has the following signature:
'func(arg,handle,error,authInfo)', where arg is the argument
passed into this call, handle is a SWIG'ized pointer to the ftp
control object, error is a tuple (error_code, error_description).
If there is no error, the error_code is 0 and the error
description is a None object, and authInfo is a SWIG'ized pointer
to a auth info object.
arg -
A user argument to be returned when the callback is
executed.
- Returns:
-
A SWIG'ized pointer to the callback handle is returned. After
the callback completes, this may be free'd with the free_callback
method, or it will be free'd when the instance is destroyed.
- Raises:
FtpControlException -
A FtpControlException is raised if
there is a problem authenticating to the server
|