Hi Giovanni!
On Wednesday, 2005-03-30 at 06:16:38 PM, Giovanni Venturi scribbled:
> Hello I installed Kannel 1.4.0 on a Fedora core 2 and I always get this from
> smsbox:
>
>
> [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <*.*.*.*>
> 2005-03-25 13:03:08 [31336] [3] DEBUG: Status: 403 Answer: <Authorization
> failed for sendsms>
> 2005-03-25 13:03:08 [31336] [3] DEBUG: HTTP: Resetting HTTPClient for
> `*.*.*.*'.
> 2005-03-25 13:04:08 [31336] [1] DEBUG: Timeout for fd:22 appeares.
> 2005-03-25 13:04:08 [31336] [1] DEBUG: HTTP: Destroying HTTPClient area
> 0x813bf90.
> 2005-03-25 13:04:08 [31336] [1] DEBUG: HTTP: Destroying HTTPClient for
> `*.*.*.*'.
>
> I checked all the time but the user and password are correct. I installed it
> on a different PC and it works. Same configuration files, just changed
> IP-allowed. I'm becoming crazy. Why the dabug don't give more info?
What are your logging levels? Can you post your configuration files?
It sounds very strange when you say it works on another PC.
If you are *really* sure you have the username and password correct...
then you could add a log line into ./gw/smsbox.c and recompile.
I think this is the relevant code:
/*
* new authorisation, usable by POST and GET
*/
static URLTranslation *authorise_username(Octstr *username, Octstr *password,
Octstr *client_ip)
{
URLTranslation *t = NULL;
if (username == NULL || password == NULL)
return NULL;
if ((t = urltrans_find_username(translations, username))==NULL)
return NULL;
if (octstr_compare(password, urltrans_password(t))!=0)
return NULL;
else {
Octstr *allow_ip = urltrans_allow_ip(t);
Octstr *deny_ip = urltrans_deny_ip(t);
if (is_allowed_ip(allow_ip, deny_ip, client_ip) == 0) {
warning(0, "Non-allowed connect tried by <%s> from <%s>, ignored",
octstr_get_cstr(username), octstr_get_cstr(client_ip));
return NULL;
}
}
info(0, "sendsms used by <%s>", octstr_get_cstr(username));
return t;
}
> IP non allowed, cannot write in ..., user unknowng or similar so to
> understand
> where is the problem?
> Please I hope you can help me.
> Giovanni
>
--
Benjamin Lee mailto:[EMAIL PROTECTED]
Melbourne, Australia http://www.realthought.net
Open Source / Linux / BSD / GNU tel:+61.4.16.BEN.LEE
__________________________________________________________________________
Bachelor:
A man who chases women and never Mrs. one.