[Serusers] NAT vs. NoNat authentication

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Fri Jul 16 17:22:13 CEST 2004


On Jul 16, 2004 at 13:38, Bart Van Daal <B.Vandaal at edpnet.net> wrote:
> Hi,
>  
> Is there a difference in authenticating a natted or non-nated UA
> using www_authen? The reason i'm asking is because when my UA
> is directly connected to the internet it authenticates fine but
> when NATed I get the following error:
> 
> parse_headers: flags=4096
>  0(12877) pre_auth(): Credentials with given realm not found
>  0(12877) ---:: didn't authorize
>  0(12877) build_auth_hf(): 'WWW-Authenticate: Digest realm="ser.edpnet.net",
> nonce="40f7be4edbd22e214821f2a3937968fc049ae290" '
>  0(12877) parse_headers: flags=-1


This is normal if it happens only for the first request. Your UA sends
the first request without auth. info., the server sends back a
negative reply with and auth. header and then your UA is supposed to
retry to send the request with proper auth.

In the future please include network dumps.

Andrei




More information about the sr-users mailing list