8
0
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:
alexpeshkoff 2015-11-23 09:57:34 +00:00
parent 7edbefc1dd
commit c32ac809ad
2 changed files with 8 additions and 1 deletions

View File

@ -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;

View File

@ -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);