<div dir="ltr">Thanks for the insight.  I ended up doing something like this:<div><br>redis_cmd("localredis", "AUTH REDIS_PASS", "r");<br><br></div><div>if ($redis(r=>type) == REDIS_REPLY_ERROR) {<br>    xlog("L_ERROR", "Redis authentication error");<br>    exit;<br>}</div><div><br></div><div>I think the confusion came from the fact that you do not specify the password in the modparam() connection string, as you do with other DB modules.  Maybe calling something like this out in the documentation would help clear that up.</div><div><br><div><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 29, 2015 at 3:48 PM, Marc Soda <span dir="ltr"><<a href="mailto:msoda@coredial.com" target="_blank">msoda@coredial.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Ah, so you should be able to do something like:</div><div class="gmail_extra"><br></div>







<div class="gmail_extra"><span>redis_cmd(</span><span>"localredis"</span><span>, "AUTH $var(redis_password)");</span></div><div class="gmail_extra"><br></div><div class="gmail_extra">Nice.  I will try that and post my results. </div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 1:28 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    it appears that hiredis library does the authentication after
    connecting and can be done from config -- that's on a very quick
    search, not sure if something has changed with the hiredis api
    meanwhile:<br>
    <br>
     - <a href="https://github.com/redis/hiredis/issues/56" target="_blank">https://github.com/redis/hiredis/issues/56</a><br>
    <br>
    Cheers,<br>
    Daniel<div><div><br>
    <br>
    On 29/01/15 17:20, Marc Soda wrote:<br>
    <blockquote type="cite">
      <div dir="ltr">The only way it will work right now is to not use a
        password:
        <div>
          <p><span>modparam</span><span>(</span><span>"ndb_redis"</span><span>, </span><span>"server"</span><span>, </span><span>"name=localredis;addr=localhost;port=6379"</span><span>)</span></p>
          <p><span>I've been wanting to look at
              contributing support at that, but no time...</span></p>
          <div class="gmail_extra">
            <div class="gmail_quote">On Thu, Jan 29, 2015 at 10:16 AM,
              Yuriy Gorlichenko <span dir="ltr"><<a href="mailto:ovoshlook@gmail.com" target="_blank">ovoshlook@gmail.com</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                <div dir="ltr">Hello. I try to use NDB_REDIS with remote
                  REDIS DB and can not to connect because remote DB use
                  password, but Kamailio module have no any variable or
                  attr of modparam that implenets password for DB.<br>
                  <br>
                  How I can connect to my REDIS?</div>
                <br>
                _______________________________________________<br>
                SIP Express Router (SER) and Kamailio (OpenSER) -
                sr-users mailing list<br>
                <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
                <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                <br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    </div></div><span><font color="#888888"><pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
  </font></span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br>
</div></div></div></div>
</blockquote></div><br><br>
</div></div></div></div>