[SR-Users] auth module realm_prefix
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jan 5 10:27:00 CET 2012
Hello,
On 1/5/12 4:16 AM, Kelvin Chua wrote:
> Hi guys,
>
> just wondering, what happened to realm_prefix on auth module for 3.2.x?
> why was it removed?
the module was refactored for 3.1.0, to deal properly with auth-int, one
time nonce, etc. Seems this module parameter was lost, since realm
parameter for functions can be a script variable. Same can be achieved
from config:
$var(realm) = $fd;
if (starts_with("$var(realm)", "__realm_prefix__"))
$var(realm) = ${var(realm){s.strip,__realm_prefix_len__});
Then use $var(realm) in functions parameters, e.g.,:
www_challenge("$var(realm))", ...);
For convenience, I will add the parameter back, it is simple coding for it.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda
More information about the sr-users
mailing list