Bug 265886 - www/mod_auth_mysql_another: broken after mariadb removed some internal api (with quick fix)
Summary: www/mod_auth_mysql_another: broken after mariadb removed some internal api (w...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-16 18:16 UTC by Kurt Jaeger
Modified: 2023-04-10 12:35 UTC (History)
3 users (show)

See Also:
joneum: maintainer-feedback+


Attachments
patch (1.50 KB, patch)
2022-08-16 18:16 UTC, Kurt Jaeger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger freebsd_committer freebsd_triage 2022-08-16 18:16:41 UTC
Created attachment 235944 [details]
patch

See also:
https://stackoverflow.com/questions/49247294/c-function-make-scrambled-password-
in-mysql-to-mariadb
https://jira.mariadb.org/plugins/servlet/mobile#issue/MDEV-13464

Basically, the module uses a libmysqlclient call to
make_scrambled_password, which is no longer exposed in recent versions
of mariadb-10.5. Instead a function ma_make_scrambled_password is exposed,
which this patch calls.
Comment 1 Jochen Neumeister freebsd_committer freebsd_triage 2022-08-16 18:30:57 UTC
looks ok for me :-)
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2022-08-16 18:55:32 UTC
I'm not sure if this patch works if one uses mysql instead of mariadb ?

The source for databases/mysql80-client seems to expose a function
my_make_scrambled_password and has some compat for the old make_scrambled_password function. How can this be detected at build time ?
Comment 3 Bernard Spil freebsd_committer freebsd_triage 2023-04-10 12:35:58 UTC
(In reply to Kurt Jaeger from comment #2)
I'd think it breaks with MySQL which is kind of guaranteed not to have ma_make_scrambled_password