mysql client does not work with auth_pam plugin activated
I have setup drizzle with the intention to replace mysql. Mysql community version do not support authentication through pam which can be achieved by the drizzle auth-pam plugin. There was also the requirement that users can create their own database. This can be achieved using the simple_policy plugin. But it seems that the auth-pam plugin does not work with protocols other than mysql-plugin-auth (cleartext). This creates a problem when the mysql client tries to connect because it fails. In this way I cannot use drizzle as a drop in replacement of mysql bacuse web apps like Wordpress depend or work similarly to the mysql client.
drizzle is running:
root@serv:~# ps aux | grep drizzle
root 29435 0.0 1.8 476124 38520 ? Ssl Jan25 4:23 /usr/sbin/drizzled
root@serv:~# netstat -lnptu | grep drizzle
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 28792/drizzled
tcp 0 0 127.0.0.1:4427 0.0.0.0:* LISTEN 28792/drizzled
tcp6 0 0 ::1:3306 :::* LISTEN 28792/drizzled
tcp6 0 0 ::1:4427 :::* LISTEN 28792/drizzled
Configuration:
root@serv:~# cat /etc/drizzle/
plugin-
plugin-add=auth_pam
log-warnings
plugin-
plugin-
mysql-unix-
#plugin-
plugin-
Now when I run the mysql client it fails to connect:
This is with unix sockets:
root@serv:~# /usr/bin/mysql --password --user=root
Enter password:
ERROR 1045 (28000): Access denied for user 'root' (using password: YES)
And using port 3306:
root@lnx02ist00:~# /usr/bin/mysql --password --user=root --protocol=tcp
Enter password:
ERROR 1045 (28000): Access denied for user 'root' (using password: YES)
Same with the default drizzle protocol (mysql):
root@serv:~# drizzle --user=root --password
Enter password:
ERROR 1045 (28000): Access denied for user 'root' (using password: YES)
It work only when i use the plaintext mysq-plugin-auth protocol:
root@serv:~# drizzle --protocol=
Enter password:
Welcome to the Drizzle client.. Commands end with ; or \g.
Your Drizzle connection id is 12
Connection protocol: mysql-plugin-auth
Server version: 2011.03.13 Ubuntu
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
drizzle>
But the mysql-plugin-auth is not working with the original mysql-client or it's web based equivalent. Any ideas or workaround?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Drizzle Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Henrik Ingo
- Solved:
- Last query:
- Last reply: