Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add an EL search attribute so member filters work on id, identifier, …
…or name
credman committed Sep 3, 2021
1 parent 7f63f91 commit 6054626
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions base/container_files/conf/subject.properties
@@ -7,7 +7,7 @@ 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.emailAttributeName.value = mail
subjectApi.source.ldap.numberOfAttributes = 6
subjectApi.source.ldap.numberOfAttributes = 7
subjectApi.source.ldap.attribute.0.name = uid
subjectApi.source.ldap.attribute.0.subjectIdentifier = true
subjectApi.source.ldap.attribute.0.translationType = sourceAttributeSameAsSubjectAttribute
@@ -27,8 +27,13 @@ subjectApi.source.ldap.attribute.4.formatToLowerCase = false
subjectApi.source.ldap.attribute.5.name = employeeNumber
subjectApi.source.ldap.attribute.5.translationType = sourceAttributeSameAsSubjectAttribute
subjectApi.source.ldap.attribute.5.formatToLowerCase = false

subjectApi.source.ldap.attribute.6.name = searchAttribute0
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.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
#todo ??? not created by UI: subjectApi.source.ldap.search.search.param.scope.value = SUBTREE_SCOPE

@@ -43,10 +48,13 @@ subjectApi.source.ldap.search.searchSubjectByIdentifier.param.filter.value = (&(


subjectApi.source.ldap.searchAttributeCount = 1
subjectApi.source.ldap.searchAttribute.0.attributeName = employeeNumber
subjectApi.source.ldap.searchAttribute.0.attributeName = searchAttribute0
subjectApi.source.ldap.sortAttribute.0.attributeName = employeeNumber
subjectApi.source.ldap.sortAttributeCount = 1

subjectApi.source.ldap.param.stringToFindOnCheckConfig.value = Dawn Gilmore
subjectApi.source.ldap.param.subjectIdToFindOnCheckConfig.value = 800002999
subjectApi.source.ldap.param.subjectIdentifierToFindOnCheckConfig.value = dgilmore

# STATUS SECTION for searches to filter out inactives and allow
# the user to filter by status with e.g. status=all

0 comments on commit 6054626

Please sign in to comment.