SecureBlackbox 2020 C++ Edition

Questions / Feedback?

AuthPassword Event

This event is fired on password authentication attempt from a client.

Syntax

ANSI (Cross Platform)
virtual int FireAuthPassword(SFTPServerAuthPasswordEventParams *e);
typedef struct {
int64 ConnectionID;
const char *Username;
const char *Password;
int Accept;
int ForceChangePassword; int reserved; } SFTPServerAuthPasswordEventParams; Unicode (Windows) virtual INT FireAuthPassword(SFTPServerAuthPasswordEventParams *e);
typedef struct {
LONG64 ConnectionID;
LPCWSTR Username;
LPCWSTR Password;
BOOL Accept;
BOOL ForceChangePassword; INT reserved; } SFTPServerAuthPasswordEventParams;
- (void)onAuthPassword:(long long)connectionID :(NSString*)username :(NSString*)password :(int*)accept :(int*)forceChangePassword;
#define EID_SFTPSERVER_AUTHPASSWORD 9

virtual INT SECUREBLACKBOX_CALL FireAuthPassword(LONG64 &lConnectionID, LPSTR &lpszUsername, LPSTR &lpszPassword, BOOL &bAccept, BOOL &bForceChangePassword);

Remarks

Parameters Username and Password contain user credentials. If they are correct, set Accept to true. You can request password change by setting ForceChangePassword to true.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 C++ Edition - Version 20.0 [Build 8166]