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:
@ -32,6 +32,7 @@ def getSSOFilters():
|
||||
"""
|
||||
import glob
|
||||
from ConfigParser import ConfigParser
|
||||
|
||||
try:
|
||||
filters = { 'uid': "uid", "mail": "mail" }
|
||||
filterDirectory = "/usr/share/sso/app_filters/"
|
||||
@ -49,14 +50,18 @@ def getSSOFilters():
|
||||
for key in toClean:
|
||||
if key in filters.keys():
|
||||
del(filters[key])
|
||||
res = ""
|
||||
res = {}
|
||||
index=0
|
||||
size=len(filters)
|
||||
return(filters.items())
|
||||
"""
|
||||
for k,v in filters.items():
|
||||
res += " \"{0}\": \"{1}\"".format(k,v)
|
||||
res[k] " \"{0}\": \"{1}\"".format(k,v)
|
||||
index += 1
|
||||
if index != size:
|
||||
res += ",\n"
|
||||
return(res)
|
||||
"""
|
||||
except:
|
||||
return "Error Generating Filters"
|
||||
|
||||
|
Reference in New Issue
Block a user