------------------------------------------------------
db_host = localhost
db_port = 3306
db_unix_socket = /var/run/mysqld/mysqld.sock
db = test
db_user = test
db_passwd = test
db_client_flags = 0
default_pass_scheme = PLAIN
password_query = SELECT clear FROM users WHERE username = '%u'
user_query = SELECT pop as home, uid, gid FROM users WHERE username = '%u'
------------------------------------------------------
Is possible use sqlrelay