Hi Takeshi, The tutorial was written for the case where you provide the plain-text password and the auth engine calculates the ha1.
If you want to disable the HA1 calculation, in that case you need to cache it and to provide it to auth engine via the password AVP (for pv authentication). Actually, aside of changing the "calculate_ha1" param , you should not change anything else - if your changes are consistent (like adding in "password" column in DB the HA1 value), the caching mechanism will work unchanged - it will load, cache and provide the HA1 instead of passwd. Regards, Bogdan mayamatakeshi wrote: > Hello, > I'm reading about using memcache > (http://www.opensips.org/Resources/DocsTutMemcache) to cache passowords. > However, what if i need to disable calculate_ha1? When > www_authorize/proxy_authorize completes, how could I know which > password AVP was used (ha1 or ha1b)? > I think I can concatenate the 2 passwords and cache it. Then when I > need to authenticate again I could read from cache, split the > passwords and try both. But is there a simpler way? > > br, > takeshi > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Bogdan-Andrei Iancu OpenSIPS Bootcamp 20 - 24 September 2010, Frankfurt, Germany www.voice-system.ro _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
