<!-- Our domain should match that of the private router -->
<domain>private.localhost</domain>
<username>opensrf</username>
- <passwd>password</passwd>
+ <passwd>OPENSRF_BUS_PASSWORD</passwd>
<port>6379</port>
<!--
<!-- jabber login info -->
<username>gateway</username>
- <passwd>password</passwd>
+ <passwd>GATEWAY_BUS_PASSWORD</passwd>
<port>6379</port>
<loglevel>3</loglevel>
<logfile>LOCALSTATEDIR/log/gateway.log</logfile>
<port>6379</port>
<unixpath>LOCALSTATEDIR/sock/unix_sock</unixpath>
<username>router</username>
- <password>password</password>
+ <password>ROUTER_BUS_PASSWORD</password>
<resource>router</resource>
<connect_timeout>10</connect_timeout>
<max_reconnect_attempts>5</max_reconnect_attempts>
<server>private.localhost</server>
<port>6379</port>
<username>router</username>
- <password>password</password>
+ <password>ROUTER_BUS_PASSWORD</password>
<resource>router</resource>
<connect_timeout>10</connect_timeout>
<max_reconnect_attempts>5</max_reconnect_attempts>
sed -i 's|LOCALSTATEDIR|@localstatedir@|g' '$(DESTDIR)@sysconfdir@/oils_sip.xml.example'
sed -i 's|SYSCONFDIR|@sysconfdir@|g' '$(DESTDIR)@sysconfdir@/oils_sip.xml.example'
sed -i 's|LIBDIR|@libdir@|g' '$(DESTDIR)@sysconfdir@/oils_sip.xml.example'
+ sed -i 's|OPENSRF_BUS_PASSWORD|@OPENSRF_BUS_PASSWORD@|g' '$(DESTDIR)@sysconfdir@/opensrf_core.xml.example'
+ sed -i 's|GATEWAY_BUS_PASSWORD|@GATEWAY_BUS_PASSWORD@|g' '$(DESTDIR)@sysconfdir@/opensrf_core.xml.example'
+ sed -i 's|ROUTER_BUS_PASSWORD|@ROUTER_BUS_PASSWORD@|g' '$(DESTDIR)@sysconfdir@/opensrf_core.xml.example'
sed -i 's|LOCALSTATEDIR|@localstatedir@|g' '$(DESTDIR)@sysconfdir@/opensrf_core.xml.example'
sed -i 's|SYSCONFDIR|@sysconfdir@|g' '$(DESTDIR)@sysconfdir@/opensrf_core.xml.example'
sed -i 's|LOCALSTATEDIR|@localstatedir@|g' '$(DESTDIR)@sysconfdir@/opensrf.xml.example'
PKG_CHECK_MODULES([DBI], [dbi])
AC_ARG_WITH([hiredis],
-[ --with-hiredis=path location of the hiredis headers (default is /usr/include/hiredis/))],
+[ --with-hiredis=path location of the hiredis headers (default is /usr/include/hiredis/))],
[HIREDIS_HEADERS=${withval}],
[HIREDIS_HEADERS=/usr/include/hiredis/])
AC_SUBST([HIREDIS_HEADERS])
[PERL_BASE=x])
AC_SUBST([PERL_BASE])
+AC_ARG_WITH([redis-accounts],
+[ --with-redis-accounts=path location of the redis accounts file (default is $sysconfdir/redis-accounts.txt)],
+[REDIS_ACCOUNTS=${withval}],
+[REDIS_ACCOUNTS=$sysconfdir/redis-accounts.txt])
+AC_SUBST([REDIS_ACCOUNTS])
+
+OPENSRF_BUS_PASSWORD=$(grep 'ACL SETUSER opensrf on >' ${REDIS_ACCOUNTS} | cut -d'>' -f2)
+GATEWAY_BUS_PASSWORD=$(grep 'ACL SETUSER gateway on >' ${REDIS_ACCOUNTS} | cut -d'>' -f2)
+ROUTER_BUS_PASSWORD=$(grep 'ACL SETUSER router on >' ${REDIS_ACCOUNTS} | cut -d'>' -f2)
+
+AC_SUBST([OPENSRF_BUS_PASSWORD])
+AC_SUBST([GATEWAY_BUS_PASSWORD])
+AC_SUBST([ROUTER_BUS_PASSWORD])
+
AM_CONDITIONAL(CHECK_TESTS, test x$enable_tests = xyes)
if test "x$openils_core" = "xtrue"; then
AC_MSG_RESULT(OpenSRF libraries location: ${OPENSRF_LIBS})
AC_MSG_RESULT(libhiredis headers location: ${HIREDIS_HEADERS})
+AC_MSG_RESULT(REDIS: ${REDIS_ACCOUNTS})
+AC_MSG_RESULT(PASS: ${OPENSRF_BUS_PASS})
AC_MSG_RESULT([----------------------------------------------------------------------])