To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 54595e91 authored by Aurel Schwitter's avatar Aurel Schwitter

Move Cn-To-Name converter to dediacted function

parent ef7166ef
......@@ -13,7 +13,7 @@ function Get-ETHMaillistMember {
$membersCn = (Get-ETHMaillist -Identity $Identity).members
foreach ($member in $membersCn) {
$Name = ($member -split ",OU=")[0] -replace "CN="
$Name = Convert-CnToName $member
# determine if the member is a user or a mailinglist
if ($member -like "*OU=EthLists,*") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment