changeset 1067:8649f78b1dde

mod_auth_ccert: Pass on the authz to the configurable username-figure-outer function
author Kim Alvefur <zash@zash.se>
date Fri, 14 Jun 2013 20:22:17 +0200
parents 83175a6af8c5
children 8ad0d234608c
files mod_auth_ccert/mod_auth_ccert.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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