• Sergei Golubchik's avatar
    MDEV-17950 SHOW GRANTS FOR does not work for a user identified with non-existing plugin · c94ec9fc
    Sergei Golubchik authored
    Revert the side effect of 7c40996c.
    Do not convert password hash to its binary representation when a user
    entry is loaded. Do it lazily on the first authenticatation attempt.
    
    As a collateral - force all authentication plugins to follow the
    protocol and read_packet at least once before accessing info->username
    (username is not available before first client handshake packet is read).
    
    Fix PAM and GSSAPI plugins to behave.
    c94ec9fc
sspi_server.cc 8.27 KB