From sanyakirilloff at gmail.com Wed Sep 20 18:25:41 2023 From: sanyakirilloff at gmail.com (=?UTF-8?B?0JDQu9C10LrRgdCw0L3QtNGAINCa0LjRgNC40LvQu9C+0LI=?=) Date: Wed, 20 Sep 2023 23:25:41 +0700 Subject: [Midpoint-dev] Problem importing groups as roles from Active Directory to MidPoint Message-ID: Hello community! I have an AD resource configured. I need to import AD groups into MidPoint as roles. I have specified the following configuration: ``` * entitlement group AD Group true ri:group c:RoleType ri:dn mr:stringIgnoreCase $focus/name ri:name $focus/name name ri:description strong description description name unmatched * ``` I also configured the task to import groups from AD. The trick is that of all existing groups, only half are added in the form of roles; for the remaining roles, MidPoint throws the following error: *Error processing focus(role:null(Operators Server)): constraint violation: Found conflicting existing object with property name = PP({.../common/common-3}name):[PPV(PolyString:* *Operators Server* *)]: role:471cba00-1b15-45d3-94c4-287fa0ff661e(Administrators)* In * *I added * matchingRule:* *polyStringNorm* This fixed the bugs - the task of adding groups now completes without them. But this did not solve the problem that, as before, of all groups, exactly half are added as roles, the rest are simply ignored. Tell me how this can be fixed? -------------- next part -------------- An HTML attachment was scrubbed... URL: From topplerjason at gmail.com Mon Sep 25 15:37:59 2023 From: topplerjason at gmail.com (Jason Toppler) Date: Mon, 25 Sep 2023 20:37:59 +0700 Subject: [Midpoint-dev] Problem creating a mailbox on an Exchange server using an SSH connector Message-ID: Hi, all! I have an Active Directory resource to which I added an SSH connector. My goal is to create a mailbox on the Exchange server for a new user. For this I use the following script: * C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command ". 'C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto -ClientApplication:ManagementShell; New-Mailbox -Name $givenName$familyName -UserPrincipalName $email -Password (ConvertTo-SecureString -String 'Pa$$word1' -AsPlainText -Force)" modify after * The command to be executed looks like this: *$givenName = 'Assol'; $familyName = 'Vandenguk2'; $email = 'AssolVandenguk2 at idm.ru '; C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command ". 'C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto -ClientApplication:ManagementShell; New-Mailbox -Name $givenName$familyName -UserPrincipalName $email -Password (ConvertTo-SecureString -String 'Pa$$word1' -AsPlainText -Force)"* This doesn't work. I understand this because the command is executed in cmd.exe, not powershell. Is it possible to somehow make the command work? -------------- next part -------------- An HTML attachment was scrubbed... URL: