php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #75645 The server requested authentication method unknown to the client [dialog]
Submitted: 2017-12-07 09:45 UTC Modified: -
Votes:20
Avg. Score:4.2 ± 0.9
Reproduced:18 of 18 (100.0%)
Same Version:11 (61.1%)
Same OS:13 (72.2%)
From: michal at cihar dot com Assigned:
Status: Open Package: MySQLi related
PHP Version: 7.2.0 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
27 + 5 = ?
Subscribe to this entry?

 
 [2017-12-07 09:45 UTC] michal at cihar dot com
Description:
------------
PHP fails to authenticate against MariaDB using PAM authentication. 

You can find all details in https://bugs.php.net/bug.php?id=68281, which has been reported against mysql extension and closed only because that extension has been deprecated meanwhile, however exactly same problem exists in MySQLi as well.

I've checked current git and the dialog plugin is still not there, so this applies to all PHP versions so far.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-06 12:48 UTC] kstan at simitgroup dot com
Yes, wish mysqli support PAM authentication. I'm wish to use pam_krb.so
 [2018-10-27 01:57 UTC] buphmin at gmail dot com
I have also been able to reproduce this using mysqlnd with PDO and mysqli on php versions 7.0, 7.1, 7.2. I have not yet got around to recompiling PHP to use libmysqlclient to see if that also fails.
 [2019-02-10 17:03 UTC] kstan at simitgroup dot com
I'm manage to recompile the using mariadb client in ubuntu. the gist as this link
https://gist.github.com/kstan79/028df3e715cac2b4d63e0b003b1233c7
 [2019-04-02 20:56 UTC] buphmin at gmail dot com
Thank kstan! I got your gist working in a docker container after a few modifications. I would still prefer mysqlnd supporting PAM auth though.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Feb 19 23:01:29 2020 UTC