Comment 4 for bug 1574900

Revision history for this message
Kaijia Feng (fengkaijia) wrote : Re: libpam-mysql undefined symbol: make_scrambled_password - Needs Patches Applied by RedHat / Fedora Community to Fix Ubuntu 16.04

After reading MySQL's code, I was able to make it work with this patch (almost the same as the Fedora patch). The patch switches from the missing make_scrambled_password() to my_make_scrambled_password(). Although my_make_scrambled_password() was not visible to client programs in MySQL 5.7, somehow libmysqlclient20 had fixed it earlier so my_make_scrambled_password() is available. And as the MySQL source code stated make_scrambled_password() as the wrapper around my_make_scrambled_password() to maintain client lib ABI compatibility, this switch changes should work.

P.S. I have tested the patch for 2 hours and hadn't noticed any stack overflows. I will post if the overflow happens in the future.