{"action":"closed","issue":{"url":"https://api.github.com/repos/NodeRedis/node_redis/issues/542","labels_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/542/comments","events_url":"https://api.github.com/repos/NodeRedis/node_redis/issues/542/events","html_url":"https://github.com/NodeRedis/node_redis/issues/542","id":26058026,"number":542,"title":"createClient function doesn't copy auth_path","user":{"login":"hikasiru","id":399737,"avatar_url":"https://avatars.githubusercontent.com/u/399737?v=3","gravatar_id":"","url":"https://api.github.com/users/hikasiru","html_url":"https://github.com/hikasiru","followers_url":"https://api.github.com/users/hikasiru/followers","following_url":"https://api.github.com/users/hikasiru/following{/other_user}","gists_url":"https://api.github.com/users/hikasiru/gists{/gist_id}","starred_url":"https://api.github.com/users/hikasiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikasiru/subscriptions","organizations_url":"https://api.github.com/users/hikasiru/orgs","repos_url":"https://api.github.com/users/hikasiru/repos","events_url":"https://api.github.com/users/hikasiru/events{/privacy}","received_events_url":"https://api.github.com/users/hikasiru/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-01-22T00:47:18Z","updated_at":"2015-08-15T19:40:05Z","closed_at":"2015-08-15T19:40:05Z","body":"I'm using node.js express.io and redis(ver 0.10.0). using password\r\n\r\nTrying to use redis socket store, i met ERR operation not permitted\r\n\r\nsource code:\r\n\r\n    var redisInfo = {\r\n\thost : '127.0.0.1',\r\n\tport: 6379,\r\n\tpassword: 'redis password' \r\n    };\r\n\r\n    var redis_pub= redis.createClient(redisInfo.port, redisInfo.host); \r\n    redis_pub.auth(redisInfo.password);\r\n    var redis_sub= redis.createClient(redisInfo.port, redisInfo.host);\t\r\n    redis_sub.auth(redisInfo.password);\r\n    var redis_client= redis.createClient(redisInfo.port, redisInfo.host);\t\r\n    redis_client.auth(redisInfo.password);\r\n\r\n    var redisStore = new express.io.RedisStore({\r\n\tredisPub: redis_pub,\r\n\tredisSub: redis_sub,\r\n\tredisClient: redis_client\r\n    });\r\n\r\n\r\n\r\nSo, index.js line No. 1103 should be change like this, isn't it?\r\n\r\n\r\n    exports.createClient = function (port_arg, host_arg, options) {\r\n    var port = port_arg || default_port,\r\n        host = host_arg || default_host,\r\n        redis_client, net_client;\r\n\r\n    net_client = net.createConnection(port, host);\r\n\r\n    redis_client = new RedisClient(net_client, options);\r\n\r\n    redis_client.port = port;\r\n    redis_client.host = host;\r\n    ////////////////////////////////////////////////////\r\n    if (options && options.auth_pass !== undefined) {\r\n    \tredis_client.auth_pass = options.auth_pass; \r\n    }\r\n    ////////////////////////////////////////////////////\r\n    return redis_client;\r\n};\r\n\r\n\r\nThanks. :)\r\n\r\n\r\nps. I wrote redis and moved to node_redis. "}}