From 1045a212da7b2ad2605b71c46b02cd0e73660e21 Mon Sep 17 00:00:00 2001 From: Chad Redman Date: Sat, 7 May 2022 00:31:29 -0400 Subject: [PATCH] eduLDAP description to be 'FirstName LastName (uid)' --- base/container_files/conf/subject.properties | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/base/container_files/conf/subject.properties b/base/container_files/conf/subject.properties index 40cd376..9687cc3 100644 --- a/base/container_files/conf/subject.properties +++ b/base/container_files/conf/subject.properties @@ -5,9 +5,9 @@ subjectApi.source.ldap.adapterClass = edu.internet2.middleware.grouper.subj.Grou subjectApi.source.ldap.param.ldapServerId.value = demo subjectApi.source.ldap.param.SubjectID_AttributeType.value = employeeNumber subjectApi.source.ldap.param.Name_AttributeType.value = cn -subjectApi.source.ldap.param.Description_AttributeType.value = cn +subjectApi.source.ldap.param.Description_AttributeType.value = description subjectApi.source.ldap.param.emailAttributeName.value = mail -subjectApi.source.ldap.numberOfAttributes = 7 +subjectApi.source.ldap.numberOfAttributes = 8 subjectApi.source.ldap.attribute.0.name = uid subjectApi.source.ldap.attribute.0.subjectIdentifier = true subjectApi.source.ldap.attribute.0.translationType = sourceAttributeSameAsSubjectAttribute @@ -32,6 +32,10 @@ subjectApi.source.ldap.attribute.6.translationType = translation subjectApi.source.ldap.attribute.6.translation = ${subject_attribute__employeenumber + '|' + subject_attribute__uid + '|' + subject_attribute__cn} subjectApi.source.ldap.attribute.6.internal = true subjectApi.source.ldap.attribute.6.formatToLowerCase = true +subjectApi.source.ldap.attribute.7.name = description +subjectApi.source.ldap.attribute.7.formatToLowerCase = false +subjectApi.source.ldap.attribute.7.translation = ${source_attribute__cn + ' (' + source_attribute__uid + ')'} +subjectApi.source.ldap.attribute.7.translationType = translation subjectApi.source.ldap.search.search.param.filter.value = (&(|(uid=%TERM%)(employeeNumber=%TERM%)(cn=*%TERM%*))(objectclass=eduPerson)) #todo ??? not created by UI: subjectApi.source.ldap.search.search.param.base.value = ou=people,dc=internet2,dc=edu