-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Confusing exception message for yubikey protected servers #987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
MySQL server requested "dialog" auth plugin. And PyMySQL don't know how to handle the "dialog" auth plugin. That's why error message use the term "dialog". |
PyMySQL certainly knows how to use the dialog plugin, but apparently only if the prompt is |
If the MySQL server is configured to ask:
|
I use a bunch of mariadb servers which are protected with password+yubikey.
I'm not clear on how it's configured within the server, I don't really have visibility to that, all I know is that from PDB'ing the auth/connect code in pymysql that it looks like it's expecting the password prompt to literally be exactly:
Password:
However in my case, the prompt (connections.py:912) is actually:
Yubikey + password:
To Reproduce
Expected
I don't know if I can register my own handler for this (not that it would really do much good, I don't want to write a yubikey token parser and all that) but at a very minimum I think it would be helpful to see the actual prompt or some other kind of message that at least says something to the effect of 'prompt type is not understood' instead of the above
plugin 'dialog' (None) not configured
Environment
Additional context
In my specific scenario it appears that I am hitting this because from certain network subnets my root credentials work fine without ever invoking the prompt code, but on other subnets the root user is restricted without a yubikey and therefore I get the unsupported prompt type.
The text was updated successfully, but these errors were encountered: