Good day,

I've created a test SIP UA with Sofia and I'm attempting to register
with a Microsoft Office Communications Server 2007 server and I'm having
some issues doing some checks with the au_scheme.

I've set a breakpoint in my event callback function and when I receive a
401 Unauthorized response from the OCS server I can see that the
au_scheme is a const char * set to NTLM however when I step through my
code and run the following check it fails:

if (sip->sip_www_authenticate->au_scheme == "NTLM") {
  do something ...
}

I've also tried a NULL terminated comparison ("NTLM\0") and just == "N"
and neither of those work either.  

Am I missing something simple?

Also, I'm trying to do NTLM authentication according to
http://download.microsoft.com/download/1/6/F/16F4E321-AA6B-4FA3-8AD3-E94
C895A3C97/%5BMS-SIPAE%5D.PDF but OCS2007 can be configured to use either
NTLM or Kerberos for its authentication scheme therefore there are 2
WWW-Authenticate headers in the 401 Unauthorized response I receive from
the server however only NTLM is displayed in the parsed sip structure.
Is au_next supposed to have the next au_scheme?  If so, it's empty in my
case.  Why would that occur?

Any help is appreciated.

Regards,
Andy.

Confidentiality Notice: This e-mail message including attachments, if any, is 
intended only for the person or entity to which it is addressed and may contain 
confidential and/or privileged material. Any unauthorized review, use, 
disclosure or distribution is prohibited. If you are not the intended 
recipient, please contact the sender by reply e-mail and destroy all copies of 
the original message. If you are the intended recipient, but do not wish to 
receive communications through this medium, please so advise the sender 
immediately.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to