Skip to content

Mapping error when server tries to use mapping rules from database in full shutdown state #7121

@AlexPeshkoff

Description

@AlexPeshkoff

Assume the following mapping rule in employee.fdb:
create mapping AuthDebug using ANY PLUGIN SERVERWIDE from any user to user;

It enables (in dev build with appropriate firebird.conf) successful login w/o user/password:

# ./isql localhost:employee
Database: localhost:employee, User: HAND_SHAKE

But after the following:

# ./gfix -shut single -force 0 employee
# /etc/init.d/firebird restart

one gets:

# ./isql localhost:employee
Statement failed, SQLSTATE = 28000
Missing security context for employee

which is ok but unfortunately bringing DB online does not help:

# ./gfix -online employee
# ./isql localhost:employee
Statement failed, SQLSTATE = 28000
Missing security context for employee