Description
-
Called when user tries to connect to the server.
Return Type
-
None
Syntax
-
object.Connecting Owner,
User, Action
The Connecting Method syntax has these parts:
| object |
An expression
evaluating to an object of type wodSSHD-Notifications. |
| Owner |
A wodSSHDCom object. Instance
of wodSSHServer that called this notification
method. |
| User |
A SSHUser object. Reference
to user that is trying to connect. |
| Action |
A SSHActions
enumeration, as described in settings. Action to
perform for the user - Allow means he is
allowed to connect, Deny will disconnect user
immediately. |
Settings
-
The settings for Action are:
 |
Deny |
0 |
Deny execution of the
action. |
 |
Allow |
1 |
Allow to execute
action. |
Remarks
-
This method is called only if you implemented
IwodSSHNotify interface in your application, and
wodSSHD.Notification
property has received reference to instance of your
implementation. This notification method is called
before any data is transmitted by wodSSHD, upon new
connection by some client. At this point client's IP
address is known, and User.RemoteIP is set with
that information. You should decide if you will allow the
user to continue authentication with the server, or reject
him from your server immediately.
|