check_from does exactly that.
Note that all functions that compare the username in digest credentials with any other value in the message use the _authorized_ credentials for the comparison. The check will always fail if there are no authorized credentials in the message -- in other words you have to call either proxy_authorize or www_authorize before checking the digest username.
That also means that credentials from Proxy-Authorization will only be used if you authorize using proxy_authorize.
Jan.
On 08-09-2005 06:06, tulay sazak wrote:
Hello Everybody,
is_user("username") method is used to check if the username in the parameter matches the username in credentials, i.e. username in Proxy-Authorization header field. SER document explains its functionality as: Check if the username in credentials matches the given username.
Since username in credentials is authenticated, I want it to be same with the one written in "From" field. But I could not find a way to compare them in ser.cfg.
Did anybody try it before? Is there a way to compare the username of "From" field with the one in "Proxy-Authorization" field?
Thanks in advance.. Regards
Tulay Sazak
______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers