RE: [Asterisk-Users] chan_sip + MD5 encryption: WARNING Format for authentication entry is user[:secret]@realm
kleis-asterisk-dev at tiscali.it
kleis-asterisk-dev at tiscali.it
Sat Jun 4 07:20:25 MST 2005
>-- Messaggio Originale --
>Date: Sat, 4 Jun 2005 14:31:07 +0200
>From: kleis-asterisk-dev at tiscali.it
>To: asterisk-users at lists.digium.com
>Subject: [Asterisk-Users] chan_sip + MD5 encryption: WARNING Format for
> authentication entry is user[:secret]@realm
>Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>
>
>
>Hi all!
>
>So far I've always used plaintext passwords for SIP, but now I've decided
>to use MD5 encryption.
>
>For each client I edited its section as follows, then:
>
>auth=md5
>md5secret=hashed_passwd
>;secret=plaintext_passwd
>
>where hashed_passwd is the output of
>
>echo -n "user:realm:plaintext_passwd" | md5sum
>
>
>When the first SIP clients registers with Asterisk after a "sip reload"
the
>following warning is logged:
>
>Jun 4 12:47:12 WARNING[11389]: chan_sip.c:9601 add_realm_authentication:
>Format for authentication entry is user[:secret]@realm at line 0
>
I found that removing auth=md5 solves this problem.
I looked into chan_sip.c and it seems that "auth" doesn't matter: it is a
"struct" (a stucture) and it would be created starting from username, md5secret/secret
and realm, isn't it? If not, I think it should be reported to developers
as a bug.
Cheers!
Alex
__________________________________________________________________
TISCALI ADSL 1.25 MEGA a soli 19.95 euro/mese
Solo con Tiscali Adsl navighi senza limiti di tempo
a meno di 20 euro al mese e in piu' telefoni senza
pagare il canone Telecom. Scopri come
http://abbonati.tiscali.it/adsl/sa/1e25flat_tc/
More information about the asterisk-users
mailing list