public class

DynamicsCRMOnpremiseConnector

extends BaseDynamicsCRMConnector
java.lang.Object
   ↳ org.mule.module.dynamicscrmonpremise.BaseDynamicsCRMConnector
     ↳ org.mule.module.dynamicscrmonpremise.DynamicsCRMOnpremiseConnector
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Microsoft Dynamics CRM 2011 Onpremise version

This connector allow the integration with MS Dynamics CRM 2011 Onpremise version.

The service of MS Dynamics CRM provide a few operations that are extensible for all the entities (default and custom) created. A list of the default entities can be found in the MSDN documentation link: "http://msdn.microsoft.com/en-us/library/bb959317.aspx

The connector uses Kerberos/SPNEGO with Active Directory for Authentication.

If you are going to use this connector be sure to have your environment well configured. This requires a CRM Onpremise 2011 Server (Windows 2008 Server x64) running in a Active Directory Domain with a SPN configured over HTTP/... Also the DNS configuration for the CRM server and the Kerberos/AD server.

Debug purposes:

---------------

To add debug in Kerberos/SPNEGO flow add this parameters in the VM params:

-Dsun.security.krb5.debug=true

-Dsun.security.spnego.debug=true

Login Config File

-----------------

Create a new file with the next configuration in your server:

********************************************************************************************

Kerberos {

com.sun.security.auth.module.Krb5LoginModule required debug=true;

};

********************************************************************************************

i.e. In this case, Kerberos is the only module configured, and it will be the param to be used in loginConfigModule=Kerberos

Kerberos Config File

--------------------

Create a new file with the next configuration in your server:

********************************************************************************************

[libdefaults]

default_realm = <YOUR_REALM>

default_tkt_enctypes = rc4-hmac aes128-cts des3-cbc-sha1 des-cbc-md5 des-cbc-crc

default_tgs_enctypes = rc4-hmac aes128-cts des3-cbc-sha1 des-cbc-md5 des-cbc-crc

permitted_enctypes = rc4-hmac aes128-cts des3-cbc-sha1 des-cbc-md5 des-cbc-crc

[realms]

<YOUR_REALM> = {

kdc = <Kerberos_location>

default_domain = <YOUR_REALM>

}

[domain_realm]

.<your_realm> = <YOUR_REALM>

<your_realm> = <YOUR_REALM>

********************************************************************************************

Please note the upper and lower case.

Summary

Fields
private String keyIdentifier Session identifier
protected final Log logger
private IOrganizationService serviceProxy
[Expand]
Inherited Fields
From class org.mule.module.dynamicscrmonpremise.BaseDynamicsCRMConnector
Public Constructors
DynamicsCRMOnpremiseConnector()
Public Methods
synchronized void connect(String username, String password, String organizationServiceUrl, String loginConfigPath, String kerberosConfigPath, String loginConfigModule, String spn)
synchronized void disconnect()
String getFileSystemUri()
boolean isConnected()
[Expand]
Inherited Methods
From class org.mule.module.dynamicscrmonpremise.BaseDynamicsCRMConnector
From class java.lang.Object

Fields

private String keyIdentifier

Session identifier

protected final Log logger

private IOrganizationService serviceProxy

Public Constructors

public DynamicsCRMOnpremiseConnector ()

Public Methods

public synchronized void connect (String username, String password, String organizationServiceUrl, String loginConfigPath, String kerberosConfigPath, String loginConfigModule, String spn)

Parameters
username Username
password Password
organizationServiceUrl The path to the MS Dynamics Configuration scv
loginConfigPath The path where the LoginConfig file is
kerberosConfigPath The path where the Kerberos config file is
loginConfigModule The LoginModule configuration to use (this is defined inside of LoginConfig file)
spn The Service Provider Name of the Dynamics Server in OnPremise mode (this can be found in the organizationServiceUrl, under \)
Throws
ConnectionException

public synchronized void disconnect ()

Throws
IOException

public String getFileSystemUri ()

public boolean isConnected ()