Skip to content

Commit

Permalink
Improvements to contact handling
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Sep 28, 2022
1 parent 7c30659 commit 8a649c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Public/Find-Password.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@
MemberOf = $User.MemberOf
DistinguishedName = $User.DistinguishedName
ManagerDN = $User.Manager
Type = 'User'
}
foreach ($Property in $ConditionProperties) {
$MyUser["$Property"] = $User.$Property
Expand Down Expand Up @@ -283,10 +284,11 @@
Name = $Contact.Name
GivenName = $null
Surname = $null
OrganizationalUnit = ConvertFrom-DistinguishedName -DistinguishedName $User.DistinguishedName -ToOrganizationalUnit
OrganizationalUnit = ConvertFrom-DistinguishedName -DistinguishedName $Contact.DistinguishedName -ToOrganizationalUnit
MemberOf = $Contact.MemberOf
DistinguishedName = $Contact.DistinguishedName
ManagerDN = $null
Type = 'Contact'
}
$CachedUsers["$($Contact.DistinguishedName)"] = [PSCustomObject] $MyUser
}
Expand Down

0 comments on commit 8a649c5

Please sign in to comment.