Mysql Percona 8 with PAM+SSSD+AD Authentication - mysql

Good afternoon everyone.
We are using MYSQL Percona 8 with PAM+SSSD+AD authentication.
Faced with the fact that authentication works well only on the machine where the server is installed, from the terminal console.
When connecting from any other machine, the error is:
ERROR 2059 (HY000): Authentication plugin ‘dialog’ cannot be loaded: /usr/lib/mysql/plugin/dialog.so: cannot open shared object file: No such file or directory
At first I thought the problem was in the native mysql client, so I installed Percona-client , it didn’t help, I tried to add dialog.so manually, which resulted in the error:
ERROR 2059 (HY000): Authentication plugin ‘dialog’ cannot be loaded: Incompatible client plugin interface
In the end, I came to the decision that the connection only starts working if percona-server-server is installed on the client machine.
I think this is an absurd solution or a bug, I don’t know.
Tell me how to transfer only the necessary module and make the client work without installing the entire server?
p.s By the way, even the latest DBeaver also cannot work with this, but in the process of torment, it turned out that if you select not "MySQL" but "MariaDB" when connecting, then it successfully connects via PAM. Perhaps this will help someone.
I probably managed to find a solution to a similar problem here for mariadb and redhat. But I don’t know how to build mysql percona client with these modules.
https://bugzilla.redhat.com/attachment.cgi?id=940720&action=diff

I had a similar issue and changed the plugin from "auth_pam" to "auth_pam_compat" and it resolved the issues with LDAP/PAM Stack authenticated users.
Found in a forum online - https://rimzy.net/category/authenticatin-plugin/
This issue is applicable to all plugins that require loading an external library at the client-side, including the PAM authentication plugin. In this case, you will get the error
ERROR 2059 (HY000): Authentication plugin 'dialog' cannot be loaded: /usr/local/Percona-Server-8.0.25-15-Linux.x86_64.glibc2.17/lib/plugin/dialog.so: cannot open shared object file: No such file or directory
Oracle-compatible auth_pam_compat plugin does not experience this issue, because, instead of
dialog.so
it uses the built-in
mysql_clear_password
plugin.

Related

Authentication plugin 'mysql_clear_password' cannot be loaded in Navicat

I try to connect with my database and use Navicat with MacOS , but I get an error and not able to connect. I tried many different things but not able to connect yet. any help really appreciates and it's really great to help me.
Error :
Connection Failed
Authentication plugin 'mysql_clear_password' cannot be loaded:
dlopen(/usr/local/mysql/lib/plugin/mysql_clear_password.so, 2): image
not found
I got the same error in my MySQLWorkbench, went through the available ui configs and ticked the
Enable Cleartext Authentication Plugin
Steps need to be taken:
Open Connect to Database window
Choose Advanced option
Tick Enable Cleartext Authentication Plugin option
You could try starting Navicat from the terminal. This assumes the app is 'Navicat Premium Essentials'.
LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN=y /Applications/Navicat\ Premium\ Essentials.app/Contents/MacOS/Navicat\ Premium\ Essentials
This solved the issue for me with Sequel Pro. See: https://github.com/sequelpro/sequelpro/issues/2247#issuecomment-144567527

Chrome Extension: Failed to start native messaging host

I'm developing a Chrome extension using Native Messaging technology.
The extension works but on some PC I get an error:
Failed to start native messaging host
Some (not all) of those PCs are running Windows 7 and Windows XP:
Windows 7: the PC has a lock icon on the user folder C:\Users. I can fix it as per the tutorial and restart the PC to make my extension work.
Windows XP: I have not found any solution for this error.
According to nativeMessaging documentation I think the problem is related to filesystem security permissions of chrome.exe file and native host application file.
I've asked many times about this problem on other groups and searched on google but haven't found a solution.
How to check the permissions of chrome.exe file or native host application file are okay?
Any other way to solve this problem?
Xan comment is correct. --enable-native-messaging not needed.
Udpated:
Finally, this answer Failed to start native messaging host on Windows, "COMSPEC is not set" hellped me.
Need add ComSpec in System variables.

Error when upload project using laravel 5 on host

I have download packages laravel 5, and upload it on host http://test.dntc.com.vn/ for test
Result is blank page, no content.Help...
Check your server error_log for exact cause. Often there are storage folder permissions issues or Laravel Apache requirements are not installed.
Read more about requirements from http://laravel.com/docs/5.0/installation#server-requirements
First, enable PHP errors in your server to see whats happen.

activeCollab: Failed to connect. Reason: Failed to load class 'Swift_1_SimpleCharacterReaderFactory'

Details:
I am using activeCollab, have installed it on cPanel shared server.
Unable to send emails via native php mail function, even if i try to configure STMP i get the error. so i am not able to configure SMTP either.
Not sure where i am going wrong.
Version:
3.2.12
Error:
Failed to connect. Reason: Failed to load class 'Swift_1_SimpleCharacterReaderFactory'
Failed to send message. Reason: Failed to load class 'Swift_1_SimpleCharacterReaderFactory'
That is not a known issue, so we recommend that you upgrade to the latest stable release (3.3.18 at the moment). You can find the upgrade instructions here.
Upgrade should resolve the potential problem that you did not upload all the files properly, plus activeCollab 3.3 has auto-upgrade feature which will make similar error less likely to happen in the future.

NAnt - The remote certificate is invalid according to the validation procedure

Using NAnt, I'm trying to download a file from my Mercurial server via my build script.
The Mercurial server is configured to allow access via https using a self-signed certificate.
I'm able to download the file without issues using a web browser, so I know the permissions on the server are set properly.
When I try to do this via NAnt however, I get an error stating 'The remote connection is invalid according to the validation procedure.'.
Can anyone offer suggestions as to how I can resolve this?
The server's certificate needs to be installed on the machine executing the script in order for this to work.
See this procedure for instructions on how to do this. You'll need to export the certificate from the server before starting. This can be done by viewing the website's certificate details in your browser and exporting them.