mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 05:23:03 +01:00
Fixed CORE-5026: Firebird authentication gives up after first common plugin
This commit is contained in:
parent
7edbefc1dd
commit
c32ac809ad
@ -273,6 +273,13 @@ int SrpServer::authenticate(CheckStatusWrapper* status, IServerBlock* sb, IWrite
|
||||
{
|
||||
status->init();
|
||||
ex.stuffException(status);
|
||||
switch(status->getErrors()[1])
|
||||
{
|
||||
case isc_stream_eof: // User name not found in security database
|
||||
return AUTH_CONTINUE;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return AUTH_FAILED;
|
||||
|
@ -349,7 +349,7 @@ int SecurityDatabase::verify(IWriter* authBlock, IServerBlock* sBlock)
|
||||
char pw1[MAX_LEGACY_PASSWORD_LENGTH + 1];
|
||||
if (!lookup_user(login.c_str(), pw1))
|
||||
{
|
||||
return IAuth::AUTH_FAILED;
|
||||
return IAuth::AUTH_CONTINUE;
|
||||
}
|
||||
pw1[MAX_LEGACY_PASSWORD_LENGTH] = 0;
|
||||
string storedHash(pw1, MAX_LEGACY_PASSWORD_LENGTH);
|
||||
|
Loading…
Reference in New Issue
Block a user