search cancel

Fail to create endpoint O365

book

Article ID: 239343

calendar_today

Updated On:

Products

CA Identity Suite

Issue/Introduction

Trying to create an O365 endpoint from IdM’s User Console but it fails.
Followed all pre-requisites required (IdM side, Azure side, O365 side) before create the endpoint but IdM is showing an error message:

Create Office365 Endpoint Office 365 Endpoint: An error occurred while executing CreateOffice365Endpoint. ERROR MESSAGE: Endpoint 'Office365 Endpoint' creation failed: Connector Server Add failed: code 80 (OTHER-NamingException): failed to add entry eTDYNDirectoryName=Office365 Endpoint,eTNamespaceName=Office 365,dc=im,dc=etasa: javax.naming .NamingException: Failed to activate the connector [Office365 EAAB]: Failed to borrow connection object with connection key [[email protected]]: Failed to borrow connection object with connection key [[email protected]]: Failed to borrow connection object with connection key [[email protected]]: Exception calling "ReadLine" with "2" argument(s): "Specified method is not supported." (ldaps://<CS ip address>:20411),

When issuing the command provided by docops to "Verify the PowerShell Connection to the Office 365 Endpoint"

Import-Module MsOnline$UserCredential = Get-CredentialConnect-MsolService -Credential $UserCredential$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $UserCredential -Authentication Basic -AllowRedirection -SessionOption (New-PSSessionOption -IdleTimeOut 60000)Import-PSSession $sessionget-rolegroup | format-list 

getting these errors:

Import-Module: A positional parameter cannot be found that accepts argument '$null' 

Cause

When the command below is failing:

Import-Module MsOnline
$UserCredential = Get-Credential
Connect-MsolService -Credential $UserCredential
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $UserCredential -Authentication Basic -AllowRedirection -SessionOption (New-PSSessionOption -IdleTimeOut 60000)
Import-PSSession $session
get-rolegroup | format-list

Check if the module is already installed. To do this, open Windows PowerShell and run the following command:

      Import-Module MSOnline

A list of cmdlets appears. If not The MSOnline is not installed.

 

Environment

Release : 14.4

Component :

Resolution

1. Check if the module is already installed. To do this, open Windows PowerShell and run the following command:

      Import-Module MSOnline
A list of cmdlets appears.
 
2. If MSOnline is not found, run the following command to install the module:
      Install-Module MSOnline
 
3. Repeat Step 1 to check that the module has installed correctly.
 
If the MSOnline is already installed,  uninstall it and install it again, run "Uninstall-Module MSOnline", run the steps above
 
After that, run the first command above, the command needs to run successfully before trying to acquire the O365 endpoint.

Additional Information

Double Check if all the steps from doc Connect to Office 365 doc was followed