From 41a941615d45d91739cc161e8dd681976ac937e1 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Fri, 9 Mar 2018 14:29:22 +0100 Subject: [PATCH] Adding CAS attributes --- dicos/70_lemonldap_ng.xml | 6 ++++++ tmpl/lmConf-1.js | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dicos/70_lemonldap_ng.xml b/dicos/70_lemonldap_ng.xml index ccf0c56..519454f 100644 --- a/dicos/70_lemonldap_ng.xml +++ b/dicos/70_lemonldap_ng.xml @@ -36,10 +36,13 @@ 64 + + Configuration DNS Configuration LDAP + Configuration CAS @@ -62,6 +65,9 @@ ['ldaps','ldap'] + + casLDAPAttribute + non lemon diff --git a/tmpl/lmConf-1.js b/tmpl/lmConf-1.js index 54e5a7e..f430f5c 100644 --- a/tmpl/lmConf-1.js +++ b/tmpl/lmConf-1.js @@ -158,7 +158,13 @@ "samlAuthnContextMapPasswordProtectedTransport": 3, "ldapUsePasswordResetAttribute": 1, "ldapPpolicyControl": 0, - "casAttributes": {}, + "casAttributes": { + "uid":"uid", +%for att in %%casAttribute + "%%casAttribute": "%%casAttribute.casLDAPAttribute", +%end for + "mail":"mail" + }, "issuerDBSAMLPath": "^/saml/", "samlAttributeAuthorityDescriptorAttributeServiceSOAP": "urn:oasis:names:tc:SAML:2.0:bindings:SOAP;#PORTAL#/saml/AA/SOAP;", "portalDisplayAppslist": 1,