[OpenSIPS-Users] CacheDB_Redis authentication

Yury Kirsanov y.kirsanov at gmail.com
Wed Aug 7 06:53:03 EDT 2019


Hi Bogdan,
Thanks, I've just checked it and can confirm that using empty username
works!

modparam("cachedb_redis", "cachedb_url","redis:prod://:Password@10.x.x.x
:6379/")

Probably it would be good to update REDIS module article with this
information!

Thanks again and best regards,
Yury.

ср, 7 авг. 2019 г. в 20:43, Bogdan-Andrei Iancu <bogdan at opensips.org>:

> Have you checked this?
>
>
> https://stackoverflow.com/questions/44344628/how-to-create-a-redis-cloud-connection-url-with-an-auth-password
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS Summit 2019
>   https://www.opensips.org/events/Summit-2019Amsterdam/
>
> On 08/07/2019 01:38 PM, Yury Kirsanov wrote:
>
> Hi,
> Tried like this:
>
> modparam("cachedb_redis",
> "cachedb_url","redis:prod://10.x.x.x:6379/?password=Password")
>
> And like this:
>
> modparam("cachedb_redis", "cachedb_url",
> "redis:prod://Password@10.x.x.x:6379/"
> <redis:prod://Password@10.x.x.x:6379/>)
>
> And tried some other ways putting password in different places but in that
> cases OpenSIPS won't even start. In two examples above it starts but then
> I'm getting following error:
>
> Jul 31 19:22:56 ERROR:cachedb_redis:redis_set: Redis operation failure -
> 0x1b19410 NOAUTH Authentication required.
> Jul 31 19:22:56 ERROR:cachedb_redis:redis_set: giving up on query
>
> Thanks for your help,
> Yury.
>
> On Wed, 7 Aug. 2019, 20:33 Bogdan-Andrei Iancu, <bogdan at opensips.org>
> wrote:
>
>> Hi,
>>
>> How exactly have you tried to build the URL ?
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>>   https://www.opensips-solutions.com
>> OpenSIPS Summit 2019
>>   https://www.opensips.org/events/Summit-2019Amsterdam/
>>
>> On 07/31/2019 12:35 PM, Yury Kirsanov wrote:
>>
>> Hi,
>> Could you please let me know correct syntax of modparam for cachedb_redis
>> for password authentication? Or is it not supported at all? I've tried
>> different variants but can't get it to work, always getting an error:
>>
>> Jul 31 19:22:56 ERROR:cachedb_redis:redis_set: Redis operation failure -
>> 0x1b19410 NOAUTH Authentication required.
>> Jul 31 19:22:56 ERROR:cachedb_redis:redis_set: giving up on query
>>
>> Thanks!
>>
>> Regards,
>> Yury.
>>
>>
>> _______________________________________________
>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190807/3729246a/attachment.html>


More information about the Users mailing list