Using exportedVars key names in casAttributes

We need tu use the key name of exportedVars in casAttributes to make
attr availlable
This commit is contained in:
2018-04-09 14:31:35 +02:00
parent e84ba19b68
commit eef533bfe6
2 changed files with 29 additions and 5 deletions

View File

@ -1,3 +1,4 @@
%set %%ssoFilters = %%getSSOFilters
{
"ldapGroupAttributeNameUser": "dn",
"cfgAuthorIP": "172.16.0.1",
@ -67,9 +68,18 @@
"exportedVars": {
"UA": "HTTP_USER_AGENT",
%for att in %%casAttribute
"%%att": "%%att.casLDAPAttribute",
"%%att": "%%att",
%end for
%set %%idx = 0
%set %%size = %%len(%%ssoFilters) - 1
%for key,value in %%ssoFilters
%if %%idx == %%size
"%%key": "%%value"
%else
"%%key": "%%value",
%end if
%set %%idx += 1
%end for
%%getSSOFilters
},
"notificationStorage": "File",
"applicationList": {
@ -168,7 +178,16 @@
%for att in %%casAttribute
"%%att": "%%att.casLDAPAttribute",
%end for
%%getSSOFilters
%set %%idx = 0
%set %%size = %%len(%%ssoFilters) - 1
%for key,value in %%ssoFilters
%if %%idx == %%size
"%%key": "%%key"
%else
"%%key": "%%key",
%end if
%set %%idx += 1
%end for
},
"issuerDBSAMLPath": "^/saml/",
"samlAttributeAuthorityDescriptorAttributeServiceSOAP": "urn:oasis:names:tc:SAML:2.0:bindings:SOAP;#PORTAL#/saml/AA/SOAP;",