Hi Jiang,
what exactly is the problem? Do you get some errors? AFAIK, the config
section look ok, but I'm not sure if the field you put in the file are
enough.
Best regards,
Marian
Jiang zhou wrote:
Hi, all:
I wang to use dbtext to authentication. But I can't config it
successful . Can some give me the ser.cfg and dbtext file?
My config file is below:
ser.cfg:
loadmodule "/usr/local/lib/ser/modules/dbtext.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/nathelper.so"
# ----------------- setting module-specific parameters ---------------
#modparam("registrar", "append_branches", 0)
modparam("usrloc", "db_mode", 0)
#modparam("usrloc", "db_mode", 2)
# -- auth params --
modparam("auth_db", "db_url", "dbtext:/var/dbtext/ser/")
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "password")
...
if (uri==myself) {
if (method=="REGISTER") {
if (!www_authorize("abc.com", "subscriber")) {
www_challenge("abc.com", "0");
break;
};
save("location");
break;
};
[dbtext config]:
[root@localhost ser]# pwd
/var/dbtext/ser
[root@localhost ser]# ls
subscriber
[root@localhost ser]# more subscriber
username(str) password(str) ha1(str) domain(str) ha1b(str)
test:test:xxx:abc.com:xxx
[root@localhost ser]#
Jiang zhou
Best Regards
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers