<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>dbtext: table not loaded. example desired</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I try to set up ser with dbtext as authentication basis. I run in some problems because the database is not found:</FONT>

<BR><FONT SIZE=2 FACE="Arial">DBT:db_query: table not loaded.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">After some googling a found that Cesc [cesc.santa@gmail.com] had also done some work with dbtext and mailed that to &quot;serusers&quot; or &quot;serdev&quot; mailinglists</FONT></P>

<P><FONT SIZE=2 FACE="Arial">In a mail from May and June 05 he told that he has written a &quot;serctl&quot; for dbtext and a script to produce the necessary files.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Has somebody got these things and can mail me these files! I could not found them in the mailing history.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Has somebody also dealed with dbtext and can give me some example files for ser.cfg and dbtext files for &quot;authentication/subscriber&quot; and &quot;location&quot;.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thanks in advance</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thorsten Mueller</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">ser 0.8.14 cross-compiled for arm</FONT>

<BR><FONT SIZE=2 FACE="Arial">My ser.cfg:</FONT>

<BR><FONT SIZE=2 FACE="Arial">####################################################</FONT>

<BR><FONT SIZE=2 FACE="Arial">...</FONT>

<BR><FONT SIZE=2 FACE="Arial"># Added by mt for authentication with dbtext</FONT>

<BR><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/local/lib/ser/modules/auth.so&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/local/lib/ser/modules/auth_db.so&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/local/lib/ser/modules/dbtext.so&quot;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">modparam(&quot;auth_db&quot;, &quot;db_url&quot;,&quot;dbtext:///var/dbtext/ser&quot;)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># -- auth params --</FONT>

<BR><FONT SIZE=2 FACE="Arial">modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, 1)</FONT>

<BR><FONT SIZE=2 FACE="Arial">modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)</FONT>

<BR><FONT SIZE=2 FACE="Arial">modparam(&quot;auth_db&quot;, &quot;user_column&quot;, &quot;username&quot;)</FONT>

<BR><FONT SIZE=2 FACE="Arial">modparam(&quot;auth_db&quot;, &quot;domain_column&quot;, &quot;domain&quot;)</FONT>

<BR><FONT SIZE=2 FACE="Arial">...</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">if (uri==myself) {</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method==&quot;REGISTER&quot;) {</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!www_authorize(&quot;domain.com&quot;, &quot;subscriber&quot;)) {</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; www_challenge(&quot;domain.com&quot;, &quot;0&quot;);</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; save(&quot;location&quot;);</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </FONT>

<BR><FONT SIZE=2 FACE="Arial">...</FONT>

<BR><FONT SIZE=2 FACE="Arial">#####################################################</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have a file in /var/dbtext/ser which is called &quot;subscriber&quot;:</FONT>

<BR><FONT SIZE=2 FACE="Arial">#####################################################</FONT>

<BR><FONT SIZE=2 FACE="Arial">username(str) password(str) ha1(str) domain(str) ha1b(str)</FONT>

<BR><FONT SIZE=2 FACE="Arial">suser:supasswd:xxx:domain.com:xxx</FONT>

<BR><FONT SIZE=2 FACE="Arial">#####################################################</FONT>
</P>

</BODY>
</HTML>