Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodFTPD
- Methods
- Properties
- Authentication
- BindIP
- BindIPType
- Certificate
- DirFormat
- Encryption
- EncryptionList
- FileLocking
- FIPS
- ForceUTF8
- GoodbyeMessage
- GreetingMessage
- HMacList
- HostKeyList
- KeyExchangeList
- MaxDataPort
- MinDataPort
- MonitorTransfers
- MyHostname
- MyIP
- Notification
- PasvPort
- Port
- Protocol
- Secure
- ServerName
- SFTPVersion
- Status
- StrictDataIP
- Threads
- Timeout
- UseIPv6
- Users
- Version
- VirtualFiles
- VirtualFolders
- Events
- wodFTPDNotify
- FtpUser
- FtpUsers
- VirtualFile
- VirtualFiles
- VirtualFolder
- VirtualFolders
- How to get support?
- Technical information
- Fast notifications interface
- Error list
LoginCertificate notification
Called when user wants to authenticate to the server with public key.
Syntax
- Basic
object.LoginCertificate Owner, User, ErrorText, Certificate, Action
The LoginCertificate(object,Owner,User,ErrorText,Certificate,Action) syntax has these parts:
The LoginCertificate(object,Owner,User,ErrorText,Certificate,Action) syntax has these parts:
object | An expression evaluating to an object of type wodFTPDNotify. |
Owner | A wodFTPDCom object. Reference to wodFTPServer instance that called this notification method. |
User | A FtpUser object. Reference to user who provided the certificate. |
ErrorText | A String value. Text description of certificate validation errors - one per line. |
Certificate | An ICertificate object. Reference to ICertificate object containing user's certificate. |
Action | A FtpActions enumeration, as described in settings. When set to Deny/SilentDeny, wodFTPServer denies this action. |
Remarks
NOTE: This method is called only if you implemented IwodFTPDNotify interface in your application, and wodFTPD.Notification property has received reference to instance of your implementation.LoginCertificate notification method is called when the client supplies his client certificate and tries to authenticate using it. At this point, you should decide if you will accept the certificate. If so - set Action = Allow. If you don't want to allow access, set Action = Deny.
It is possible that at this stage user's Login information is empty. This is due to fact that SSL is established and the certificate is provided before any data flow between the client and the server - thus before he managed to send his login information to you.
To get more information about the certificate, feel free to check Certificate's properties and methods - they are provided through wodCertificate object.
If supplied certificate contains validation errors, they will be provided through ErrorText argument - line by line per error.
The settings for Action are
Constant | Value | Description |
---|---|---|
Deny | 0 | Deny execution of the action. |
Allow | 1 | Allow to execute action. |
SilentDeny | 2 | Silently deny execution of the action. |
SilentAllow | 3 | Silently allow to execute action. |