Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107886 - net-misc/partysip-2.2.3 need a wrong authentification entry
Summary: net-misc/partysip-2.2.3 need a wrong authentification entry
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Stefan Knoblich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-02 05:51 UTC by White
Modified: 2005-10-02 11:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix the Auth Bug. (partysip-2.2.3-auth_bug.diff,423 bytes, patch)
2005-10-02 05:51 UTC, White
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description White 2005-10-02 05:51:07 UTC
Partysip 2.2.3 need  a wrong authentification entry.
The Auth Plugin extract from the SIP Auth Header during the Registration the
opaque entry. But this Info is never used. The missing of this entry produces a
401 Authorisation failed.

This is not compatible to some Soft and Hardware Clients...



Reproducible: Always
Steps to Reproduce:
1. ebuild partysip
2. enable authentification
3. try to register with minisip or linphone or VoIP HW Phone
4. Look in a Network Packet Trace
Actual Results:  
The User get an 401 Auth failed on Register

Expected Results:  
a 200 Register OK is espected.

this should workaround this:
--- partysip-2.2.3/plugin/auth/auth.c.orig      2005-10-02 14:35:32.000000000 +0200
+++ partysip-2.2.3/plugin/auth/auth.c   2005-10-02 14:35:59.000000000 +0200
@@ -73,7 +73,7 @@

   nonce = osip_proxy_authorization_get_nonce (p_auth);
   opaque = osip_proxy_authorization_get_opaque (p_auth);
-  if (opaque == NULL || nonce == NULL)
+  if (nonce == NULL)
     return -1;

   realm = osip_proxy_authorization_get_realm (p_auth);
Comment 1 White 2005-10-02 05:51:55 UTC
Created attachment 69717 [details, diff]
fix the Auth Bug.

fix the Auth Bug.
After this: Authentification works with all Clients I found.
Comment 2 Stefan Knoblich (RETIRED) gentoo-dev 2005-10-02 11:17:09 UTC
i'm ripping out a bit more:

--- partysip-2.2.3/plugin/auth/auth.c.orig      2005-10-02 20:13:36.000000000 +0000
+++ partysip-2.2.3/plugin/auth/auth.c   2005-10-02 20:13:55.000000000 +0000
@@ -65,15 +65,13 @@
   /* find the pending_auth element */
   char *response;
   char *nonce;
-  char *opaque;
   char *realm;

   /* char *qop; */
   char *uri;

   nonce = osip_proxy_authorization_get_nonce (p_auth);
-  opaque = osip_proxy_authorization_get_opaque (p_auth);
-  if (opaque == NULL || nonce == NULL)
+  if (nonce == NULL)
     return -1;

   realm = osip_proxy_authorization_get_realm (p_auth);

since it's not used anyways

Comment 3 Stefan Knoblich (RETIRED) gentoo-dev 2005-10-02 11:23:35 UTC
fixed in cvs, thanks a lot :)