AuthAttempt Event
Reports a user authentication attempt.
Syntax
ANSI (Cross Platform) virtual int FireAuthAttempt(SFTPServerAuthAttemptEventParams *e);
typedef struct {
int64 ConnectionID;
const char *Username;
int AuthType;
int Accept; int reserved; } SFTPServerAuthAttemptEventParams; Unicode (Windows) virtual INT FireAuthAttempt(SFTPServerAuthAttemptEventParams *e);
typedef struct {
LONG64 ConnectionID;
LPCWSTR Username;
INT AuthType;
BOOL Accept; INT reserved; } SFTPServerAuthAttemptEventParams;
- (void)onAuthAttempt:(long long)connectionID :(NSString*)username :(int)authType :(int*)accept;
#define EID_SFTPSERVER_AUTHATTEMPT 7 virtual INT SECUREBLACKBOX_CALL FireAuthAttempt(LONG64 &lConnectionID, LPSTR &lpszUsername, INT &iAuthType, BOOL &bAccept);
Remarks
ConnectionID identifies the session, Username specifies client's username, and AuthType specifies the authentication type. Use the Accept parameter to accept or decline the attempt.
Supported authentication types:
atRhosts | 0x01 | RHOSTS file authentication. Rarely used today. |
atPublicKey | 0x02 | Public key (sometimes called private key) authentication |
atPassword | 0x04 | Password-based authentication |
atHostbased | 0x08 | Hostbased authentication |
atKeyboard | 0x10 | Keyboard-interactive authentication. This is often used in place of generic password authentication. |
atGssWithMic | 0x20 | GSS authentication |
atGssKeyex | 0x40 | GSS authentication with key exchange |
atPublicKeyAgent | 0x80 | Public key agent authentication |