Quantcast
Channel: WordPress.org Forums » [Redis Object Cache] Support
Viewing all articles
Browse latest Browse all 110

ACL User/PW fails for Unix Socket

$
0
0

Replies: 0

Hello,

I have my Redis server set up with ACL name/password combinations. If I use the TCP:PORT connection & define the appropriate constants in wp-config.php it connects & works without issue.

However, when using a Unix socket connection it fails to connect when an ACL secure username & password is required.

Here is what I put in the config for the TCP:PORT scenario which is working fine:

define( 'WP_REDIS_SCHEME', 'tcp' );
define( 'WP_REDIS_HOST', '127.0.0.1' );
define( 'WP_REDIS_PORT', 6379 );
define( 'WP_REDIS_PREFIX', 'WP_HDGSHEG2I9O:' );
define('WP_REDIS_PASSWORD', ['acl_username', 'acl_password']);

I can get the Unix socket to connect if my ACL user list is empty, but I like to secure it with user names & passwords.

Here is the Unix socket config that I am attempting to use for securing an ACL user/password scenario:

define( 'WP_REDIS_PATH', '/run/redis/redis-server.sock' );
define( 'WP_REDIS_SCHEME', 'unix' );
define( 'WP_REDIS_PREFIX', 'WP_HDGSHEG2I9O:' );
define('WP_REDIS_PASSWORD', ['acl_username', 'acl_password']);

This results in a connection failure. Am I doing this wrong or is it a bug?

  • This topic was modified 12 minutes ago by 01underdog. Reason: clarifying user socket

Viewing all articles
Browse latest Browse all 110

Trending Articles