Commit edc2984c authored by Maxime Besson's avatar Maxime Besson

Add groups to default test page (#2036)

parent ae9740f1
Pipeline #7783 passed with stage
in 16 minutes and 56 seconds
......@@ -96,10 +96,12 @@
"domain" : "__DNSDOMAIN__",
"exportedHeaders" : {
"test1.__DNSDOMAIN__" : {
"Auth-User" : "$uid"
"Auth-User" : "$uid",
"Auth-Groups" : "$groups"
},
"test2.__DNSDOMAIN__" : {
"Auth-User" : "$uid"
"Auth-User" : "$uid",
"Auth-Groups" : "$groups"
}
},
"exportedVars" : {},
......
......@@ -92,6 +92,10 @@ print
print "<li>Connected user: <ul>\n";
print "<li><tt>\$ENV{HTTP_AUTH_USER}</tt>: $ENV{HTTP_AUTH_USER}</li>\n";
print "<li><tt>\$ENV{REMOTE_USER}</tt>: $ENV{REMOTE_USER}</li>\n";
print "</ul><li>Groups: <ul>\n";
for my $grp (split /; /, $ENV{HTTP_AUTH_GROUPS}) {
print "<li>$grp</li>\n";
}
print "</ul></li>\n";
print "</ul>\n";
print
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment