2009/1/5 Andrew Rechenberg Lists <flux...@resurgent.com>: >> As far as I can recall the NTLM code is just copied from the digest >> code but there is actually no real functionality there.. It should >> probably be deactivated, or better, completed... > > I've started working on completing the NTLM code. The Pidgin SIPE > project has some working NTLM code to authenticate to a MS OCS server so > I'll try to port that over.
Cool! That is what we need in order to eat our own dog food here in Nokia. ;) >> > Can I create my own authorization header with > SIPTAG_AUTHORIZATION_STR >> > and re-run nua_register with the same handle? I've tried that in my >> > nua_r_register handler and my code just hangs and a REGISTER is > never >> > re-sent to the server. >> >> I'm afraid if the server returns just an unknown authentication scheme >> it makes the handle unusable. The >> auc_challenge()/auc_credentials()/nua_authenticate() API is not very >> well thought out for such a case. ;-/ > > > So if I get the NTLM plugin code working then I should just be able to > use nua_authenticate()? That is right, if the information that NTLM need can be passed using the auc* API. > There are some other things that need to get added to the header for > OCS. Can I just use TAGs to add those? Can I add those tags in > nua_authenticate? That depends on the things to add? You can add SIP headers with nua_authenticate(), but the extra tags are not passed to auc* functions. > Also, what is the proper way to add an additional auth_plugin? Create > auth_plugin_dummy.c|h, add the ca_X_plugin struct to ca_plugins? > Anything else? > I'd like to maybe add a Kerberos plugin and I just wanted to follow the > proper procedure. I think that is all needed for built-in client-side authenticator. If you plan to add an external plugin there are more hoops to hop through. Of course, adding test cases has never harmed anyone. Sofia SIP already depends on openssl, so it would be very convenient if you could use the openssl crypto libraries... -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------------ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel