[Serusers] Registration restrictions

Tamas J thomasj at eworld.hu
Thu Dec 16 11:51:17 CET 2004


Thursday, December 16, 2004, 11:38:31 AM, bobcat wrote:

>>                 if (method=="REGISTER") {
>>                         if (!www_authorize("example.net", "subscriber")) {
>>                                 www_challenge("example.net", "0");
>>                                 break;
>>                         };
>>                         if (check_to()) {
>>                                 save("location");
>>                         };
>>                         break;
>>                 };
>>
>>But I'm getting:
>>  0(3010) check_username(): Digest username and URI username do NOT match

b> Seems to me that this is what you wanted? However, the way you've coded the
b> register block means that if the usernames don't match, the client gets no
b> reply.
b> So, it would keep sending register requests over and over. Maybe that's why
b> the
b> message is there. Perhaps code it like this:

b>     if (!check_to()) {
b>         sl_send_reply("403", "Registration id must match login");
b>         break;
b>     };
b>     save("location");
b>     break;

b> Conor.

Hello!

Thanks for the suggestion. You are right, I'm just a newbie in SER...

Do you know how to have different username and auth. username?

Thanks!

        Tamas




More information about the sr-users mailing list