Skip to content

Instantly share code, notes, and snippets.

@cybozuty
cybozuty / mod_authnz_crowd-2.0.2-groupsenv.patch
Created April 17, 2012 01:03
Patch Atlassian mod_authnz_crowd 2.0.2 to provide space-delimited list of remote user's groups to CGIs via a user-configurable environment variable. Supercedes https://gist.github.com/2154942
--- src/crowd_client.h 2012-03-16 14:05:25.000000000 +0900
+++ src/crowd_client.h 2012-03-16 14:52:02.000000000 +0900
@@ -14,6 +14,7 @@
const char *crowd_app_password; /* Application password used to authenticate with Crowd */
const char *crowd_url; /* Base URL of the Crowd server */
long crowd_timeout; /* Crowd response timeout, in seconds, or 0 for no timeout */
+ const char *groups_env_name; /* Name of the environment variable to store a space-delimited list of groups that the remote user belongs to */
} crowd_config;
/**