<div>Hello,<br><br> Is it possible to use a view/table from a remote database (not from opensips db) for authenticating users?<br><br>I'm testing following scenario but cannot get it to work.<br>I have a separate user provisioning system which store username, password and domain in a external mysql db. I want opensips to query user credentials from external database when authenticating users.<br>
<br>I created a view named "subscriber" in the external DB which contains following fields;<br> - username<br> - domain<br> - ha1<br> - ha1b<br><br>In the opensips.conf file I've changed auth_db params as below;<br>
<br>modparam("auth_db", "calculate_ha1", yes)<div>modparam("auth_db", "password_column", "password")</div><div>modparam("auth_db", "db_url","mysql://dbuser:dbpassword@dbserveraddress/mydb")</div>
<div>modparam("auth_db", "load_credentials", "")</div><br><br>When I try to start OpenSIPS it attempts to query from a table called "version" and fail to start.<br><br></div><div>
<div>Oct 22 13:54:48 opensips /sbin/opensips[18071]: ERROR:db_mysql:db_mysql_submit_query: driver error: Table 'mydb.version' doesn't exist.<br><br>Any thoughts? Suggestions?<br><br>Thanks in advance.<br><br>
<br>Hasitha<br></div><br><br><div><br></div><br></div>