Configure interdomain federation to Microsoft OCS/Lync within an enterprise
Note
Refer to
Federation and subdomains
for information about federation and subdomains. However, once the OCS and
IM and Presence domains are different, you can configure federation
within the enterprise. You do not have to use subdomains; separate domains are
equally applicable.
When you configure a federated domain entry,
IM and Presence automatically adds the incoming ACL for the federated domain
entry. You can see the incoming ACL associated with a federated domain on
IM and Presence Administration, but you cannot modify or delete it. You can
only delete the incoming ACL when you delete the (associated) federated domain
entry.
Procedure
Step 1
Select
Cisco Unified CM IM and Presence
Administration > Presence > Inter-Domain
Federation > SIP Federation.
Step 2
Select
Add New.
Step 3
Enter the federated domain name in the Domain Name field.
Step 4
Enter a description that identifies the federated domain in the
Description field.
Step 5
Select
Inter-domain to OCS/Lync.
Step 6
Check
Direct Federation.
Step 7
Select
Save.
Step 8
After you add, edit or delete a SIP federated domain, restart the
Cisco XCP Router by selecting
Tools > Control Center -
Network Services in Cisco Unified IM and Presence Serviceability.
When you restart Cisco XCP Router, this causes a restart of all XCP services
on
IM and Presence.
Configuration of static routes using TCP for federation with Microsoft OCS domain
This section describes how to configure statics routes using
TCP for direct federation between
IM and Presence and Microsoft OCS. The
Cisco Adaptive Security Appliance or the Microsoft Access Edge are not required.
Caution
The domain portion of the Routing Proxy FQDN parameter value cannot
be the same as the Microsoft OCS domain. To view or edit the Routing Proxy FQDN
parameter, select
Cisco Unified CM IM and Presence
Administration > System > Service
Parameters, and select the Cisco SIP Proxy
service.
Configure static route on IM and Presence for OCS server
To configure
IM and Presence Service to use TCP when exchanging IM and presence with a federated
Microsoft OCS domain, you must configure a static route on
IM and Presence Service that points to the OCS server (and not the external edge of
Microsoft Access Edge).
You must add an individual static route for the OCS domain. The OCS domain static route should point
to the IP address of a specific OCS Enterprise Edition front-end server or
Standard Edition server.
For high availability purposes, you can configure additional
backup static routes to each OCS domain. The backup route has a lower priority and is used only if the
next hop address of the primary static route is unreachable.
Procedure
Step 1
Select
Cisco Unified CM IM and Presence
Administration > Presence > Routing > Static
Routes.
Step 2
Select
Add New.
Step 3
Enter the destination pattern value so that the domain, or FQDN,
is reversed. For example:
If the domain is domaina.com, the Destination Pattern value
must be .com.domaina.
If the FQDN is name1.name2.domain.com, the Destination Pattern
value must be .com.domain.name2.name1.
Configure static routes on OCS for IM and Presence Service
If you are using direct federation from
IM and Presence Service to OCS without the Access Edge server or
Cisco Adaptive Security Appliance, then you need to configure a static route from OCS to
IM and Presence Service.
Procedure
Step 1
ClickStart > Programs > Administrative
Tools > Microsoft Office Communicator Server
2007on OCS.
Step 2
Right-click on the Front End server.
Step 3
Select
Properties > Front End
Properties.
Step 4
Click the
Routing tab.
Step 5
Click
Add.
Step 6
Enter the domain for the
IM and Presence Service node, for example 'cisco.com'.
Step 7
Enter the IP of the
IM and Presence Service node for the Next Hop IP address.
When you configure the static route on OCS, select
the protocol type TLS, and make sure that the static route points to port 5061
(the default is 5062).
Note
When using TLS with static routes on OCS, you must specify
the FQDN of the
IM and Presence server, rather than an IP address.
On
IM and Presence, you must also configure the Peer Auth Listener port on OCS
as 5061. You configure this by selectingCisco Unified CM IM and Presence
Administration > System > Application
Listeners. Verify that the Peer Auth Listener port is
5061. You can configure the Server Auth Listener port to be 5062.
Configure a host authorization entry for the
IM and Presence FQDN
To retrieve the
CA root certificate and the OCS signed certificate, follow these procedures,
applying them to the OCS server (rather than the Access Edge server):
In the OCS Front
End Server Properties ensure the TLS listener for port 5061 on OCS is
configured. (The transport can be MTLS or TLS).
From the OCS
Front End Server Properties, select the Certificates tab, and click
Select Certificate to select the OCS
signed certificate.
Configure OCS to use FIPS (TLSv1 rather than
SSLv3), and import the CA root certificate.
Open the Local Security Settings on OCS.
In the console tree, select
Local Polices.
Select
Security Options.
Double-click
System Cryptography:Use FIPS Compliant
algorithms for encryption, hashing and signing.
Enable the security setting.
Select
OK.
Note
You may need to restart OCS for this to take effect.
Import the CA root certificate for the CA that signs the
IM and Presence certificate. Import the CA root certificate in to the trust
store on OCS using the certificate snap-in.
Configure the certificates on
IM and Presence
On
IM and Presence, upload the root certificate for the CA that signs the OCS
certificate. Note the following:
Upload the certificate as a cup-trust certificate.
Generate a CSR
for
IM and Presence so that the
IM and Presence certificate can be signed by a CA. Upload the CSR to the CA
that will sign your certificate.
When you have
retrieved the CA-signed certificate and the CA root certificate, upload the
CA-signed certificate and the root certificate to
IM and Presence. Note the following:
Upload the root certificate as a cup-trust
certificate.
Upload the C-signed
IM and Presence certificate as a cup certificate. Specify the root
certificate .pem file as the root certificate.
Add a TLS Peer
subject on
IM and Presence for the OCS server. Follow these steps
Create new TLS peer subject
to create the peer subject for the OCS server. Use the FQDN of the OCS server.
Add the TLS Peer
to the Selected TLS Peer Subjects list. Follow these steps
Add TLS peer to selected TLS peer subjects list
to add the TLS Peer to the Selected TLS Peer Subjects list. Note the following:
Make sure that the TLS_RSA_WITH_3DES_EDE_CBC_SHA
cipher is selected for the TLS Context Configuration.
Make sure that you disable empty TLS fragments.
Static route configuration for interdomain federation to Microsoft Lync within enterprise
Note
For interdomain federation with Microsoft Lync, you must configure TLS between IM and Presence Service and Microsoft Lync if there is more than one Lync front-end server.
This procedure uses the following sample configuration
parameters:
IM and Presence Service Server FQDN (routing
IM and Presence Service node): cupserverPub.sip.com
Note
Ensure the FQDN can resolve to the correct IP address.
IM and Presence Service Server IP Address (routing
IM and Presence Service node): 10.53.57.10
IM and Presence Service Server TCP port: 5060
Note
The TCP port value must match that configured under
Cisco Unified CM IM and Presence Administration > System > Application
Listeners > Default Cisco SIP Proxy TCP Listener.
IM and Presence Service Server TLS port: 5062
Note
The TLS port value must match that configured under
Cisco Unified CM IM and Presence Administration > System > Application
Listeners > Default Cisco SIP Proxy TLS Listener - Peer Auth.
You must create a static route to the
IM and Presence Service routing node only. It is not
necessary to create static routes to subscriber nodes, nor any intercluster
peer nodes even if your
IM and Presence Service deployment has multiple
clusters.
Sign into a computer where Lync Server Management Shell
is installed. You must sign in as a member of the RTCUniversalServerAdmins
group or a role-based access control (RBAC) role to which you have assigned the
New-CsStaticRoute cmdlet.
Select
Start > All
Programs > Microsoft Lync Server
2010 > Lync Server Management
Shell.
For TLS, enter the following command:
$tlsRoute = New-CsStaticRoute -TLSRoute
-Destination <FQDN of IM and Presence
routing node> -Port <listening port of
IM and Presence routing node>
-usedefaultcertificate $true -MatchUri
<destination domain>
To match child domains of a domain you can specify a
wildcard value in the MatchUri parameter, for example, *.sip.com. That value
matches any domain that ends with the suffix sip.com.
If you set -usedefaultcertificate to false, you must
specify the TLSCertIssuer and TLSCertSerialNumber parameters. These parameters
indicate the name of the certification authority (CA) that issue the
certificate used in the static route and the serial number of the TLS
certificate, respectively. See the Lync Server Management Shell for more
information about these parameters.
For TCP, enter the following command:
$tcpRoute = New-CsStaticRoute
-TCPRoute -Destination <IP address or FQDN of
IM and Presence routing node>
-Port <SIP listening port of
IM and Presence routing node>
-MatchUri <destination domain>
You must create a trusted application server pool for all
IM and Presence Service nodes, including the routing
IM and Presence Service node.
Enter the following command to obtain the Site ID:
get-cssite
For TLS, enter the following command:
New-CsTrustedApplicationPool -Identity
<FQDN of IM and Presence node>
[-Registrar <Service ID or FQDN of the next hop>]
-Site <Site ID for the site where you want to
create the trusted application pool>
TreatAsAuthenticated $true -ThrottleAsServer $true
New-CsTrustedApplicationPool -Identity
<IP address of IM and Presence node>
[-Registrar <Service ID or FQDN of the next hop>]
-Site <Site ID for the site where you want to
create the trusted application pool>
TreatAsAuthenticated $true -ThrottleAsServer $true
You must add application servers to the created pool for
all
IM and Presence Service nodes, including the routing
IM and Presence Service node.
For TLS, enter the following command:
New-CsTrustedApplication -ApplicationID
<application name> -TrustedApplicationPoolFqdn
<FQDN of IM and Presence node>
-Port <SIP listening port of IM and Presence
node>
New-CsTrustedApplication -ApplicationID
<application name> -TrustedApplicationPoolFqdn
<IP Address of IM and Presence node>
-Port <listening port of IM and Presence
node> -EnableTcp
Verify the new system configuration by entering the Get
command from Step 1 again.
The parameters that you use to configure the Lync
server listen port are as follows:
Set-CsRegistrar - internal
command that sets the Lync server port.
registrar: - FQDN of the Lync
Server
-SipServerTcpPort - SIP
listening port of the Lync server. The default value is typically 5060.
Enable the topology
Before you enable the topology, ensure that you have
completed the following:
Define a TCP/TLS
route for the routing
IM and Presence Service node.
Persist the new
static route for the routing
IM and Presence Service node.
Create a trusted
application server pool for all
IM and Presence Service nodes.
Add application
servers to the created pool for all
IM and Presence Service nodes.
Enter the following command to implement the changes you
have made to the topology:
Enable-CsTopology
Define Gateway IP Address
Note
This step applies only to TCP.
Sign into the computer where Topology Builder is
installed. You must sign in as a member of the Domain Admins group and the
RTCUniversalServerAdmins group.
Select
Start > All
Programs > Microsoft Lync Server
2010 > Lync Server Topology
Builder
Select the option to download an existing topology.
Expand the
Trusted applications servers node.
Right-click the trusted application pool that you
created and select
Edit Properties.
Uncheck
Enable replication of configuration data to
this pool.
Select
Limit service usage to selected IP
addresses and ensure that it is set to
Use all configured IP addresses.
In the Primary IP address field, enter the IP address of
the SIP gateway.
To update the topology in the Central Management store,
in the console tree, select
Lync Server 2010 and from the
Actions pane, select
Publish.