Skip to content

Commit

Permalink
Merge pull request #83 from internet2/PC_midpoint-comanage
Browse files Browse the repository at this point in the history
midpoint automation chgs
  • Loading branch information
pcaskey authored Dec 22, 2020
2 parents 079b23c + bc598cf commit 2418d49
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<tooltip>Person imported from the HR CSV</tooltip>
<icon>
<cssClass>fa fa-user-circle</cssClass>
<color>olive</color>
<color>purple</color>
</icon>
</display>
</archetypePolicy>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,19 @@
<matchingRule>mr:distinguishedName</matchingRule>
<outbound>
<strength>strong</strength>
<source>
<path>familyName</path>
</source>
<source>
<path>name</path>
<path>givenName</path>
</source>
<expression>
<script>
<code>
'uid=' + name + ',ou=People,dc=internet2,dc=edu'
tmpGivenName = basic.norm(basic.stringify(givenName))?.tr(' ', '.')
tmpFamilyName = basic.norm(basic.stringify(familyName))?.tr(' ', '.')
tmpuid = tmpGivenName.substring(0, 1) + tmpFamilyName + iterationToken
'uid=' + tmpuid + ',ou=People,dc=internet2,dc=edu'
</code>
</script>
</expression>
Expand Down Expand Up @@ -147,9 +153,21 @@
<matchingRule>mr:stringIgnoreCase</matchingRule>
<outbound>
<strength>strong</strength>
<source>
<path>familyName</path>
</source>
<source>
<path>name</path>
<path>givenName</path>
</source>
<expression>
<script>
<code>
tmpGivenName = basic.norm(basic.stringify(givenName))?.tr(' ', '.')
tmpFamilyName = basic.norm(basic.stringify(familyName))?.tr(' ', '.')
return tmpGivenName.substring(0, 1) + tmpFamilyName + iterationToken
</code>
</script>
</expression>
</outbound>
</attribute>
<attribute>
Expand Down Expand Up @@ -220,6 +238,20 @@
<outbound/>
</password>
</credentials>
<iteration>
<maxIterations>10</maxIterations>
<tokenExpression>
<script>
<code>
if (iteration == 0) {
return "";
} else {
return sprintf("%02d", iteration);
}
</code>
</script>
</tokenExpression>
</iteration>
</objectType>

<objectType>
Expand Down

0 comments on commit 2418d49

Please sign in to comment.