# HG changeset patch # User Kim Alvefur # Date 1371234137 -7200 # Node ID 8649f78b1dde1a1154beffa6807f2be997d1b61e # Parent 83175a6af8c5b5a680190d3bef9472f870b594fd mod_auth_ccert: Pass on the authz to the configurable username-figure-outer function diff -r 83175a6af8c5 -r 8649f78b1dde mod_auth_ccert/mod_auth_ccert.lua --- a/mod_auth_ccert/mod_auth_ccert.lua Fri Jun 14 20:12:51 2013 +0200 +++ b/mod_auth_ccert/mod_auth_ccert.lua Fri Jun 14 20:22:17 2013 +0200 @@ -14,7 +14,7 @@ local username_extractor = {} -function username_extractor.xmppaddr(cert) +function username_extractor.xmppaddr(cert, authz) local extensions = cert:extensions(); local SANs = extensions[subject_alternative_name]; local xmppAddrs = SANs and SANs[id_on_xmppAddr]; @@ -84,7 +84,7 @@ return nil, false; end - return find_username(cert); + return find_username(cert, authz); end }); end