Home Forums Installation Sync MS AD users and groups using Ldap Reply To: Sync MS AD users and groups using Ldap

#2745
Anuradha bopagama
Participant

Hi

When I try to troubleshoot why Openiam not sync with AD, I found following log in AD Powershell connector logs,

Response result is '{"status":"FAILURE","errorCode":"FAIL_CONNECTOR","errorText":"Exception at Program.RequestHandler at invoking PowerShell - '\r\nSystem.Management.Automation.RuntimeException: Unable to connect to AD as PSDrive ---> System.Management.Automation.RuntimeException: Unable to connect to AD as PSDrive\r\n --- End of inner exception stack trace ---\r\n at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)\r\n at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)\r\n at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)\r\n at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings)\r\n at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings)\r\n at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)\r\n at ConnectorRequestRunner.Workers.PowershellWorker.RunPowershellScript(String scriptPath, MessageInfo openIAMRequest)\r\n'\r\nUnable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.\r\nAt C:\\Connectors\\ADConnector\\Connector.ps1:2277 char:9\r\n+ New-PSDrive -PSProvider ActiveDirectory -Server $headerAttrib ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nCategoryInfo: InvalidOperation: (:) [New-PSDrive], ADServerDownException\r\nFullyQualifiedErrorId: NewDriveProviderException,Microsoft.PowerShell.Commands.NewPSDriveCommand\r\n\r\n","fieldMappings":null,"stacktraceText":null,"responseValue":null,"errorTokenList":null,"failure":true,"success":false,"identity":null,"managedSystemId":"active_dir_win02_managed_sys_id","objectType":"USER","applicationId":"6484@172.24.90.132","userList":null,"groupList":null,"passwordExpirationDate":null,"daysToExpiration":null,"passwordChangeNeeded":false,"accountEnabled":false,"accountFound":false,"communicationException":false,"parentAuditLogId":null}'
Any ideas why this happen?