PAM auth fails in client without server package

Bug #1191882 reported by Alex davies
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.1
Invalid
Undecided
Unassigned
5.5
Triaged
High
Unassigned
5.6
Triaged
High
Unassigned
5.7
Triaged
High
Unassigned
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

If using PAM authentication on a server, and using a client with just the Percona client installed authentication fails:

[root@client sources.list.d]# mysql -u adavies -p -h servername
Enter password:
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

Sure enough, this file is only included with the Server rather than client:

[root@server ~]# dpkg -S /usr/lib/mysql/plugin/dialog.so
percona-server-server-5.5: /usr/lib/mysql/plugin/dialog.so

This isnt an error on the server as when clients with the server package installed connect they work, and strace shows the client attempting to read that file:

[root@client sources.list.d]# strace mysql -u adavies -h server -pxx 2>&1 | grep -i --color dialog
read(3, "\23\0\0\2\376dialog\0\4Password: ", 16384) = 23
open("/usr/lib/mysql/plugin/dialog.so", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, ": Authentication plugin 'dialog'"..., 142: Authentication plugin 'dialog' cannot be loaded: /usr/lib/mysql/plugin/dialog.so: cannot open shared object file: No such file or directory

This is using the Ubuntu 10.04 packages from the Percona repo.

This appears to be a packaging bug: it seems to me that the plugin dialog.so should be included with the client package (or the common package).

Tags: pam pkg
Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :

Same applies to RPMs from Percona. On CentOS 6.4 dialog.so is included into Percona-Server-server-55, but not to Percona-Server-client-55 or Percona-Server-shared-55 (I've checked with 5.5.31-rel30.3.520).

Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :

Same with 5.6.11 on Debian 7:

openxs@debian7:~$ dpkg -S /usr/lib/mysql/plugin/dialog.so
percona-server-server-5.6: /usr/lib/mysql/plugin/dialog.so

tags: added: pkg
tags: added: pam
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-679

Revision history for this message
Paul White (paulw2u) wrote :

Belatedly invalidating superfluous Ubuntu task.

Changed in ubuntu:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.