Welcome to our website

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ed ut perspiciatis unde omnis iste.

Dienstag, 25. Oktober 2011

Update Rollup 5 for Microsoft Dynamics CRM 2011

The Microsoft Dynamics CRM Sustained Engineering (SE) team released Microsoft Dynamics CRM 2011 Update Rollup 5 on Tuesday, October 25, 2011.
The links below point to important information about Update Rollup 5:
Release Channel Schedule
The resources available at these links will be active according to the following Release Channel Schedule:
  • CRM Online Datacenter: October 18 to October 25, 2011
  • Microsoft Download Center: October 25, 2011
  • Microsoft Update: November 8, 2011
General Details about Update Rollup 5
  • Update Rollup 5 cannot be uninstalled.
  • Client packages installed manually by downloading the packages and running install will require administrative privileges. If the client packages are installed via the Windows Update (Microsoft Update) system, they will not require administrative privileges.
  • For help with installation, please see the Installation Information section in KB2567454.
Dates for Future Update Rollups
Update Rollup 6 is to be delivered on its predefined schedule, 16 weeks after Update Rollup 4, which puts the delivery in January 2012.
Support for Update Rollup 5
For support on Update Rollup 5, please contact Microsoft Product Support.
Note: In special cases, charges ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Support web site at: http://support.microsoft.com/default.aspx?scid=fh;[LN];CNTACTMS.
Cheers,

Samstag, 15. Oktober 2011

Microsoft Dynamics CRM 2011 Implementation Guide /

This guide contains comprehensive information about how to plan, install, and maintain Microsoft Dynamics CRM 2011 and the deployment of Dynamics CRM 2011 with ADFS 2.0. To click the most recent version, see the TechNet link below. Here you have the links for downloading the Microsoft Dynamics CRM 2011 and Claims-based Authentication.doc , Microsoft Dynamics CRM 2011 Implementation Guide.


Quick details

Version:5.0Date Published:9/14/2011

Files in this download

The links in this section correspond to files available for this download. Download the files appropriate for you.
File NameSize
Microsoft Dynamics CRM 2011 and Claims-based Authentication.doc718 KBDownload
Microsoft_Dynamics_CRM_2011_IG.zip759 KBDownload
MicrosoftDynamicsCRM2011WindowsLogo.doc113 KBDownload
PlanningTools.zip982 KBDownload
A

Donnerstag, 13. Oktober 2011

Configuring service principal names (SPNs)

Deployment

Configuring service principal names (SPNs)

A service principal name, also known as an SPN, is a name that uniquely identifies an instance of a service. For proper Kerberos authentication to take place, the SPN must be set properly. SPNs are Active Directory attributes, but are not exposed in the standard Active Directory snap-ins.
Ensuring that the correct SPNs are set becomes important when applications such as Microsoft Dynamics CRM, Microsoft SQL Server Reporting Services, and Microsoft SQL Server are split onto multiple servers. When these applications are split across servers, the users' credentials must be passed from one server to another. This process, known as Kerberos delegation, allows a service to impersonate your credentials to another server. For example, when a user runs a Microsoft SQL Server Reporting Services report in Microsoft Dynamics CRM 3.0, or in Microsoft Dynamics CRM 4.0 without the Microsoft Dynamics CRM Connector for Microsoft SQL Server Reporting Services, the authentication occurs in Microsoft Dynamics CRM and then the request is sent to the Microsoft SQL Server Reporting Services server. The Microsoft Dynamics CRM server impersonates the user and the request to Microsoft SQL Server Reporting Services will look as if it came directly from the user.
If SPNs are not set correctly, authentication will be dropped at the Microsoft Dynamics CRM server and the request to Microsoft SQL Server Reporting Services will come from NT Authority\Anonymous Logon. This will result in a 401 authentication error.
On This Page

Working with SPNs

SPN format
The format of an SPN is service_class/host:port/service name. Port number and service name are optional elements of the SPN. It is most common to see a port or service name used with SQL Server SPNs. You typically define either the SQL Server port used, the service name of the database instance, or the SQL Server named instance name. In some scenarios, port and service name are also needed for Internet Information Services (IIS) applications. You only need to define the port for IIS when the Web application or service is not listening on the standard HTTP ports of 80 (http) or 443 (https). So when using default ports you will not need to use the service name element for IIS.
Default SPNs
By default, SPNs with the HOST service class are set under all computer accounts. There will be an SPN present for both the NetBIOS and Fully Qualified Domain Name (FQDN). Format of the HOST SPN will be HOST/ComputerName and HOST/ComputerName.FQDN.
When SQL Server is installed it asks for the account that will run the SQL Service. An SPN will automatically get registered under this account with the format MSSQLSvc\ComputerName:port. If you change the service account used by SQL Server after the installation, you may end up with duplicate unless the account being used has permissions on the SQL Server computer account to remove the original MSSQLSvc that was created on the computer account during installation.
When SQL Server is installed it asks for the account that will run the SQL Service. An SPN will automatically get registered under this account with the format MSSQLSvc\ComputerName:port. If you change the service account used by SQL Server after the installation, you may end up with duplicate SPNs unless the account being used has permissions on the SQL Server computer account to remove the original MSSQLSvc SPN that was created on the computer account during installation.
Additional SPNs
Additional SPNs will need to be set in different scenarios. Any time an IIS application pool is running as a service account, additional SPNs are needed. For example, you run an application pool as a domain user instead of Network Service. When running an application pool as a domain account you will add an SPN under that account using the HTTP service class. Note that if the site is an SSL Web site you still only use the HTTP service class, for example, HTTP/ComputerName and HTTP/ComputerName.FQDN.
The other scenario that requires additional SPNs is when an alias/host header is created for a Web site. This will need an SPN with the HTTP service class created under the account running the application pool except that the host header will be used instead of the computer name, for example, HTTP/HostHeader and HTTP/HostHeader.FQDN.
If the account running the SQL Service is changed after the installation, the MSSQLSvc SPN needs to be moved to the new account that is running the service. It is common for users to install SQL Server and use Local System for the Service. This causes the MSSQLSvc/ComputerName:Port to be registered under the computer where SQL Server was installed. At a later time, if a user wants to run the SQL Service as a domain user, the MSSQLSvc SPN must be removed from the computer account and registered under the user account.
Setting an SPN
SPNs can be set from any domain server that has Windows Support Tools installed.
Note
If you are running Windows Server 2003, you will need to install Windows Support Tools. If you are running a Windows Server 2008 domain controller,Windows Support Tools are installed by default. For more information, see Windows Support Tools.
ADSI Edit and the setSPN tool are the most common ways of setting SPNs:
  • ADSI Edit is an LDAP editor that allows you to manage objects and attributes in Active Directory. ADSI Edit allows you to browse through the objects much like Active Directory Users and Computers. To change the SPN in ADSI Edit, first browse to the user or computer object and open its properties. Find the Service Principal Name property in the list and choose Edit. Here it is easy to add, edit, or delete the SPN for this object.
  • setSPN is a command-line tool that allows you to read, modify, and delete the SPN for an Active Directory object. It is important to understand that the setSPN tool does actions against a specific account and cannot query for an SPN throughout your domain or forest unless you are using the Windows Server 2008 version of the tool.
    The following table shows the typical uses of setSPN.
    Task
    Command
    Examples
    List SPNs
    setspn –l objectname
    setspn –l microsoft\CrmAdmin
    setspn –l CrmAppServer
    Add SPNs
    setspn –a service\name objectname
    setspn –a HTTP/crm microsoft\CrmAdmin
    setspn –a HTTP/crm CrmAppServer
    Remove SPNs
    setspn –d service\name objectname
    setspn –d HTTP/crm microsoft\CrmAdmin
    setspn –d HTTP/crm CrmAppServer
Important
SPNs must be unique. When moving or adding SPNs it is important that a duplicate is not created.
Before you add any SPN entries in Active Directory, it is a good idea to make sure that the SPN is not currently being used by any other accounts within the Active Directory forest. This can be accomplished with several different tools:
  • You could use LIDFDE to search for the SPN within all domains of the forest.
  • You could use LDP to search for the SPN within all domains of the forest.
  • You could use querySPN.vbs.
The best method is to use querySPN.vbs. With this tool, if you target a Global Catalog it can search through the entire domain tree. If you have multiple domain trees in the forest or you have multiple forests, you will need to specify each domain tree root individually and search this way.
The resolution section of the following Microsoft Knowledge Base article explains how to use these tools to work with SPNs: Microsoft Knowledge Base Article 321044: Event ID 11 in the System Log.

Scenarios specific to Microsoft Dynamics CRM

Here are some scenarios where additional SPNs need to be added, or existing SPNs must be moved to a different object in Active Directory. For each scenario, the configuration details are listed. Additional consideration must be taken when other sites are hosted on the servers and other applications are using the same instance of SQL Server.
Important
Be sure to note any changes in case the changes need to be reversed.
Scenario 1: Host header added to site
The host header CRM on port 80 was added to the Microsoft Dynamics CRM Web site. The Microsoft Dynamics CRM Web site is on the server CRMAppServer.contoso.com and the application pool for this Web site is running under Network Service. Because the application pool is running under a computer account, Network Service, this is the location the SPN must be registered.
The following SPNs need to be added to the CRMAppServer.contoso.com object:
HTTP/CRM
HTTP/CRM.contoso.com
To add the SPNs:
  1. First check to ensure that the SPNs aren't already in use.
    Type the following in a Command Prompt window:
    queryspn.vbs http:/crm*
  2. If none are found the result will display "No SPNs found!"
    If no SPNs are found you can add the new SPNs. Type:
    setspn -a HTTP/crm CRMAppServer
    setspn -a HTTP/crm.contoso.com CRMAppServer
There are a few catches when using Kerberos for authentication. We recommend that you do not use a CNAME record in DNS. Instead, use an A-record or Host record in DNS. If you chose to use a CNAME and your application pool is not configured to use Network Service you will need to deploy an Internet Explorer fix and deploy a registry change (if Internet Explorer 6), or just deploy a registry change (if Internet Explorer 7 or higher) in order to properly authenticate using Kerberos. For more information, see:
Scenario 2: Change Microsoft Dynamics CRM application pool to run as domain user
The Microsoft Dynamics CRM Web site is on the server CRMAppServer.contoso.com. The host header CRM was previously implemented on the Web site. The application pool for the Microsoft Dynamics CRM Web site is currently running under Network Service. The company would like the application pool to run under the domain user CRMService. When changing the account running an application pool, SPNs for the server name and any host headers need to be registered under the new account using the HTTP service class. No duplicates can be created, so some existing SPNs must be removed.
  • Determine the SPNs that are registered under the current application pool account. The current account is Network Service, which is the local computer object, CRMAppServer.contoso.com. SPNs can be found with ADSI Edit or setSPN. Listed here are the expected SPNs under this object that would be related to IIS. There may be additional SPNs added to the object depending on the installed services.
    HOST/CRMAppServer
    HOST/CRMAppServer.contoso.com
    HTTP/CRM
    HTTP/CRM.contoso.com
  • There are SPNs with two different service classes registered, the default Host SPNs and the HTTP SPNs for the host header. The current HTTP SPNs will need to be removed so they can be added under the new service account. The HOST SPNs do not get removed because these will not cause duplicates due to the unique service class. The following SPNs can be removed using ADSI Edit or setSPN.
    HTTP/CRM
    HTTP/CRM.contoso.com
    Type the following in a Command Prompt window:
    setspn -d HTTP/crm CRMAppServer
    setspn -d HTTP/crm.contoso.com CRMAppServer
  • The following SPNs need to be added to the contoso\CRMService object. These are the SPNs for the servername and the host header. Additional SPNs will need to be created if other host headers are used.
    HTTP/CRMAppServer
    HTTP/CRMAppServer.contoso.com
    HTTP/CRM
    HTTP/CRM.contoso.com
    To add the SPNs:
    1. First check to ensure that the SPNs aren't already in use.
      Type the following in a Command Prompt window:
      queryspn.vbs http/crm*
    2. If none are found the result will display "No SPNs found!"
      If no SPNs are found you can add the new SPNs. Type:
      setspn -a HTTP/CRMAppServer contoso\crmservice
    3. Repeat this for the remaining SPNs.
Scenario 3: Change the Microsoft Dynamics CRM application pool to run as domain user when other application pools run under separate domain user accounts
The Microsoft Dynamics CRM Web site is on the server CRMAppServer.contoso.com and running under port 5555. The host header CRM was previously implemented on the Web site on port 80. Microsoft Dynamics CRM is accessed with http://CRMAppServer:5555 and http://CRM. The application pool for the Microsoft Dynamics CRM Web site is currently running under Network Service. The company would like the application pool to run under the domain user CRMService.
The server also hosts an intranet site and its application pool runs under the domain user IntranetService. The intranet site is running under port 80. This site also has a host header of intranet on port 80. This site is accessed with http://CRMAppServer and http://Intranet.
Before you can change the account, there are a number of settings you need to get in place to qualify the account for CRMAppPool usage. For more details about other prerequisites needed for a future CRMAppPool account, see Microsoft Knowledge Base Article 932476: Error message in the Workflow Monitor when you use a callout to programmatically run a workflow rule that sends an e-mail message in Microsoft Dynamics CRM 3.0: "0X800404cc".
When changing the account running an application pool, SPNs for the server name and any host headers need to be registered under the new account using the HTTP service class. No duplicates can be created so some existing SPNs must be removed. The problem here is that we have two sites that are running under different accounts and are accessed with the same host name. Adding the HTTP/CRMAppServer SPNs to the CRMService account would create duplicates. We are unable to remove these from the IntranetService because it will cause authentication to fail on that site. This is a scenario where the port is needed in the SPN to uniquely identify the site.
  • Determine the SPNs that are registered under the current application pool account. The current account is network service, which is the local computer object, CRMAppServer.contoso.com. SPNs can be found with ADSI Edit or setSPN. Here are the expected SPNs that would be related to IIS. There may be additional SPNs added to the object depending on the installed services.
    OBJECT: CRMAppServer.contoso.com
    HOST/CRMAppServer
    HOST/CRMAppServer.contoso.com
    HTTP/CRM
    HTTP/CRM.contoso.com
    OBJECT: contoso\IntranetService
    HTTP/CRMAppServer
    HTTP/CRMAppServer.contoso.com
    HTTP/Intranet
    HTTP/Intranet.contoso.com
  • There are SPNs with two different service classes registered under CRMAppServer.contoso.com, the default Host SPNs and the HTTP SPNs for the host header. The current HTTP SPNs for the Microsoft Dynamics CRM host header will need to be removed so they can be added under the new service account. These SPNs can be removed using ADSI Edit or setSPN.
    HTTP/CRM HTTP/CRM.contoso.com
  • The following SPNs need to be added to the contoso\CRMService object. These are the SPNs for the server name and the host header. Notice that the port number is appended to the SPNs to prevent duplicate SPNs. Additional SPNs will need to be created if other host headers are used.
    HTTP/CRMAppServer:5555
    HTTP/CRMAppServer.cont:5555
    HTTP/CRM
    HTTP/CRM.contoso.com
    To add the SPNs:
    1. First check to ensure that the SPNs aren't already in use.
      Type the following in a Command Prompt window:
      queryspn.vbs http/crm*
      If none are found the result will display "No SPNs found!"I
    2. If no SPNs are found you can add the new SPNs. Type:
      setspn -a HTTP/CRMAppServer contoso\crmservice
    3. Repeat this for the remaining SPNs.
When using a non-default port (the default being 80 or 443), Internet Explorer 6 will require a hotfix and a registry change to properly use the Kerberos authentication protocol. The fix is included in Internet Explorer 7, however, it will have to be activated using the same registry keys as Internet Explorer 6. For more information, see Microsoft Knowledge Base Article 908209: Internet Explorer 6 cannot use the Kerberos authentication protocol to connect to a Web site that uses a non-standard port in Windows XP and in Windows Server 2003

Additional information

For more detailed information about how Kerberos authentication works, see http://blogs.technet.com/askds/archive/2008/03/06/kerberos-for-the-busy-admin.aspx
For more information about how to troubleshoot SPN specific issues, read the following blog posts:

Related Links

Import CRM 2011 Organization including Restore of CRM 2011 Database Step by Step

Download the Sample Organization

The sample CRM Organization backup file (AdxstudioPortals_MSCRM-4-x-xxxx.zip) can be downloaded here

Restore the Sample Organization Database

  • Extract the AdxstudioPortals_MSCRM.bak backup file from the AdxstudioPortals_MSCRM-4-x-xxxx.zip archive
  • Open “Microsoft SQL Server Management Studio”
  • Connect to your SQL Server
  • In “Object Explorer”, expand your Server
  • Right-Click on “Databases”
  • Click ‘Restore Database…”
The "Restore Database" dialog will be displayed.
  • Enter “AdxstudioPortals_MSCRM” in the “To database:” field.
  • Select “From device:”
  • Click the button labeled “…”
The “Specify Backup” dialog will be displayed
  • Click “Add”
The “Locate Backup File” dialog will be displayed
  • Navigate to the location you extracted the backup and select the AdxstudioPortals_MSCRM.bak file.
  • Click “OK”
  • Click “OK”
  • Click the “Restore” checkbox
  • Click “OK”
When restore has completed
  • Click “OK”
The sample demo organization database is now ready to be imported using CRM Deployment Manager.

Import the Sample Organization

  • Open “Microsoft Dynamics CRM Deployment Manager”  (C:\Program Files\Microsoft Dynamics CRM\Tools\Microsoft.Crm.DeploymentManger.exe)
  • Click “Organizations”
  • Click “Import Organization…”
The “Import Organization Wizard” dialog is displayed
  • Specify “SQL Server”
  • Select “AdxstudioPortals_MSCRM” from the “Organization database” dropdown.
  • Click “Next”
  • Enter “AdxstudioPortals” into the “Display name” and “Unique Database Name” fields
  • Click “Next”
  • Specify a “Report Server URL” or use the default provided
  • Click “Next”
  • Select “Automatically Map Users (recommended)"
  • Click “Next”
  • Click “Next”
  • Click “Next”
  • Click “Import”
  • Click “Finish”
The sample demo organization AdxstudioPortals is now available to be used.
The demo AdxstudioPortals organization includes all the necessary data to demo the sample portals.
Note: The sample organization has a single Contact record with the Web Authentication Username set to "administrator" and Password set to pass@word1.  Once you have setup the website(s) you can login using these credentials.  
The final step is to setup the websites by referring to the following documentation.

Kerberos and Delegation Tips

Kerberos and Delegation Tips

Have you ever seen the following error "NT AUTHORITY/ANONYMOUS LOGON" or "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection"? Or maybe you've seen the "The request failed with HTTP status 401: Unauthorized." error accessing Microsoft CRM Reports?
Because these issues pop up from time to time with our Microsoft CRM customers, I spent some time recently researching this on the Internet and talking to various support engineers at Microsoft. The problems are usually caused by a Kerberos and/or delegation issue and they are very challenging to troubleshoot.
I am not an expert in the Kerberos/delegation topics domain, nor do I want to this post to delve into all possibilities/scenarios/etc. However, I wanted to share some of my learning to provide you a starting point when configuring or troubleshooting your own environments and save you some time when tackling this situation. Hopefully this post can save you some time and headaches!
Kerberos
In a nutshell, Kerberos is a secure ticket-based protocol for authenticating a service request. While Kerberos is not a Microsoft specific protocol, it is integral to the Active Directory security structure of Windows 2000/2003. Please see the Kerberos Explained article for a more detailed information.
Delegation & Service Principal Names (SPN)
Delegation is simply allowing another server/service to allow a Kerberos ticket to be created for another service on the originating user's behalf. This can be done at the computer level by using full delegation or with constrained delegation (Windows 2003 environment only). Constrained delegation means that the Kerberos delegation can only be executed against a limited set of services.
The Service Principal Name (SPN) is a name that uniquely identifies an instance of a service to a client within Active Directory. SPN's can not be duplicated in a given domain and must be specified for each name/alias that can be used to access the host.
Sample Scenario
Let's look at a common scenario for a web application accessing a database to retrieve information and return it to the client.


  1. A client requests a web page from a web server that retrieves some information from a SQL Server database.
  2. The web server and database server are on two separate machines in the same Windows 2000/2003 domain.
  3. The web page uses Windows authentication to connect to the database server. Note that a typical connection string might look like: server=DATABASE;database=MyCustomDatabase;Integrated Security=SSPI
  4. The client will access the web using any of the following: http://crmserver, http://crmserver.domain.local, http://crmalias
Configuration Requirements for the Sample Scenario
The scenario described above is also known as a "double hop" situation. The client's credentials will need to be passed to the web server (1st hop) and the forwarded onto the database server (2nd hop) for authentication and access. In order to properly display data from the database, we will need to ensure the following:
Client
  • Must be member of a trusted domain
  • Ensure the URL being used is part of the Internet Explorer trusted sites
  • Internet Explorer must be set to use Integrated Authentication (In IE, click Tools > Internet Options > Advanced > scroll to Security)

  • The domain user for the application must have the "Account is sensitive and cannot be delegated" option unselected in Active Directory.
Web/Database Servers
  • Both servers needs to support Kerberos (Windows 2000 and 2003 both do)
  • Both servers are a member of a trusted domain and have a valid Computer account
    Note: When a computer is attached to the domain, a computer account should be created in Active Directory and a HOST service principal name should also be added automatically.
  • The web server (1st hop server) must be trusted for delegation.
  • SQL Server allows the user's account access. (If not, you will usually get a different error about not have valid access to the database).
  • SPN's are properly setup for each name that the client will access.
Validating & Creating SPN's
Only a domain administrator will be able to view and create SPN's. There are multiple ways to manage SPN's, and I will be showing examples using the setspn.exe (Setspn.exe Download). This simple command line tool can be installed on any machine in the domain, but you will need to execute as a domain administrator.
For example, you can list all SPN's for a computer account by using the following:
setspn -l computer
In the sample scenario above, you would use the following to list all SPN's for the web server:
setspn -l crmserver
To create a new SPN for the HTTP service, you would use the following syntax:
setspn -a http/<name> <server netbios name> (if the identity is running under the computer account)
setspn -a http/<name> <domain\name> (if the identity is running under a domain account)
When creating a new SPN for our CRM web server, you will need to first determine the account running IIS by reviewing the identity of the Application Pool (IIS 6.0). If that account is local system or network service, then it is running under the computer account. You would also need to determine the name your clients will access this service.
In our sample scenario, you would need to do the following:
setspn -a http/crmserver crmserver
setspn -a http/crmserver.domain.local crmserver
setspn -a http/crmalias crmserver

Note, if your service is running under a domain account, then you will need to specify that account in your setspn -a statement:
setspn -a http/crmserver.domain.local domain\user
You will also need an SPN for the SQL service (usually this is created automatically when you install SQL Server). The usual reason this is configured incorrectly is when the account that is running SQL Server changes after installation. If you do need to create a new SPN for the SQL service, use something similar to:
setspn -a mssqlsvc/database.domain.local domain\user
See Setspn Syntax for more information on the syntax and usage of the setspn tool.
Troubleshooting Tips
  • Ensure the client's IE configuration is correct (see client configuration above), verify from where are accessing the web site(LAN, VPN, Internet) and what URL they are using.
  • In most instances I have seen, a misconfigured SPN is the issue. Determine your IIS and SQL Server service's accounts. Double check that you have a valid SPN for each service account account for the access method used (netbios, FQDN, any alias/CNAME used, etc).
    NOTE: I recommend creating an SPN for the fully qualified domain name (FQDN) if one doesn't exist. I have seen a situation where the netbios name was used to access CRM, but under the covers it gets submitted as the FQDN...in this case the user had a DNS suffix added to their network properties.
  • Try to determine if your client is accessing the web server with Kerberos instead of NTLM. I find that this is easiest to check the event viewer on the web server and look at the error thrown. In the details, it will tell you which protocol was used to authenticate. If it is Kerberos, then your problem will typically be with an SPN or delegation, and your client configuration/access is fine.
  • Check the delegation from the web server to the SQL service SPN. If you are using constrained delegation, ensure you have the correct service setup.
  • Check the time on the client versus the servers. They need to be in sync (typically within a few minutes) for a Kerberos ticket to be granted. Most machines on the domain usually get their time from the domain controller, so I haven't seen this to be the issue in most cases.
  • For the more obscure issues and more advanced users, capture the network trace from the 1st hop machine (typically the web server). This can be done with a tool like Wireshark. Filter the trace file by Kerberos and look for these common errors:
    • time_skew - There is likely a w32time error or difference between the machines
    • s_principal_unknown - Indicates an SPN error
    • access denied - Try rebooting the client and reviewing the event viewer on the domain controller for any errors. Use KerbTray on the client to see if you have any valid Kerberos tickets.
  • If all else fails, then contact Microsoft Support and use their trained engineers to help troubleshoot the root cause. Prepare to allocate some time and have someone with domain admin rights available to assist the Microsoft engineer.
Additional Notes
  • Kerberos/delegation is very important to Microsoft CRM 3.0 because of its integration with Reporting Services AND because filtered views will not return records from a connection string using SQL authentication.
  • Kerberos requires the client computer to be on a trusted domain. It will not work if you are accessing over the Internet as the domain will not be able to trust you. If you were to access the web page or report over the Internet and receive the standard challenge/response dialog, you will typically be authenticating over NTLM, and as such unable to pass a Kerberos ticket to SQL server in a double-hop scenario.
    NOTE: NTLM can be used to authenticate to SQL server if the web is on the same server (ie it doesn't need to delegate to another server).
  • You can get Kerberos to work if you connect with most VPN software, provided the computer you are using has been previously registered on a trusted domain (typically applies to a laptop situation).
    For instance, when I try the reports page through CRM at home, I get a "The request failed with HTTP status 401: Unauthorized." error. My home desktop can't access our reports through CRM even when I have established a VPN connection to the office. Our CRM architecture has reports/SQL/CRM on separate machines AND my computer is registered on my home network (which isn't trusted by my office), so I won't have a Kerberos ticket to forward to SQL Server. However, if I VPN into my office using my laptop (a member of my office domain), I can access the reports fine. I am told that not all VPN software will allow you to get a Kerberos ticket, although most I have tried seemed to work.
  • Small Business Server should not see any of these problems (even when accessing over the Internet) because all components are on the same server. Therefore, delegation is not required, and an NTLM authentication is sufficient. Likewise, if you installed CRM/SQL Server/SRS on the same server, you would also avoid this problem (although you would have other ones to address).
  • It is possible for the web server to convert an NTLM request to a Kerberos ticket by using a technique known as Protocol Transition. I am told it is quite challenging to make this work, and have included a link to an article in the Additional Resources section if you are curious/ambitious.
  • If your service account is a domain user (instead of network service or local system), then this user also needs to have its trust setup for delegation in Active Directory. If you don't see the delegation tab, then it means there is no SPN setup for that account. Setup an SPN for the account, then try user properties dialog again and you should see the tab.
  • A Kerberos hotfix does exist for cases where a client Kerberos ticket is expiring on Windows XP SP2. Unfortunately, I haven't personally seen this hotfix work in the cases where I have this situation. It is limited distribution, so contact Microsoft Support if you need it. I am told that if you have an XP SP2 machine that has an expired Kerberos ticket (use KerbTray to verify), and it is corrected by simply logging off and back in, then that hotfix should work for you.
Additional Resources
Troubleshooting Kerberos Delegation
Kerberos Explained
How to configure an ASP.NET application for a delegation scenario
Kerberos Protocol Transition and Constrained Delegation
Microsoft CRM 3.0: Additional Setup Tasks Required if Reporting Services Is Installed on Different Server
Setspn.exe Download
Setspn Syntax
Security Account Delegation for SQL Server
Kerbtray.exe Download
Wireshark

Security Account Delegation
http://msdn.microsoft.com/en-us/library/aa905162(v=sql.80).aspx

Import a Microsoft Dynamics CRM 2011 Organization

Import a Microsoft Dynamics CRM 2011 Organization
Import an organization in Microsoft Dynamics CRM 2011. The time to complete the import of the organization is dependent on multiple factors. These factors include the size of the database you are importing, the number of users, and the hardware used.
To do this, follow these steps.
  1. Open Deployment Manager
    Open Deployment Manager by clicking Start, click Programs, click Microsoft Dynamics CRM 2011, and then click Deployment Manager.
    Hh127042.58413(en-us,MSDN.10).png
  2. Import the Organization
    Right-click Organizations, and then click Import Organization.
    Note: You will receive a message if you attempt to import into a Microsoft Dynamics CRM 2011 On-Premises SKU that allows only one organization per deployment. The message notifies you that proceeding will deactivate, but not delete, the existing organization.
    Hh127042.58414(en-us,MSDN.10).png
  3. Select the SQL Server
    In the Select SQL Server window, select the Microsoft SQL Server database that you restored in the SQL Server list, and then select the organization database in the Organization database list.
    Hh127042.58415(en-us,MSDN.10).png
  4. Specify the Organization Name
    Type a Display name and a Name for the Organization in the Specify the Organization Name window.
    Note The values you type do not need to match the name that you used in Microsoft Dynamics CRM Online.
    Hh127042.58416(en-us,MSDN.10).png
  5. Specify the Reporting Services Server
    In the Specify Reporting Services Server window, type the Microsoft SQL Server Reporting Services server URL for the organization in the Report Server URL field.
    Hh127042.58417(en-us,MSDN.10).png
  6. Select the Method for Mapping Users
    Select the appropriate method for mapping users from the Microsoft Dynamics CRM Online deployment to the Microsoft Dynamics CRM 2011 on-premises deployment. Users must already exist in Active Directory for the Microsoft Dynamics CRM 2011 on-premises installation. The installation wizard does not create the users automatically. To complete the mappings, the user running the import operation must be mapped to a user in Microsoft Dynamics CRM 2011.
    Note
    There are several options available in the Import Organization Wizard. Some options are not applicable for the migration from Microsoft Dynamics CRM Online to Microsoft Dynamics CRM 2011 on-premises.
    The following list provides information about the methods available in the Import Organization Wizard. Note, these options will be presented after selecting "Select Custom Mapping Options" and clicking next:
    • Keep existing user mappings: Do not use this option when you migrate from Microsoft Dynamics CRM Online to Microsoft Dynamics CRM 2011 on-premises. If you use this option, you will receive an error message and no users will be mapped.
    • Manually map users: You can use this option to manually map users in the Microsoft Dynamics CRM Online organization database to existing users in the target Active Directory.
    • Generate a new mapping file: Select this option to create a sample XML mapping file. Then, you can exit the wizard, modify the user mapping file to select how users are imported, and then run the Wizard again. The user mapping file is created in the drive:\Program Files\Microsoft CRM\Tools folder. The file contains the following information:
    <MappingConfiguration>
    <UserMapping old=" someone@example.com " new="" />
    </MappingConfiguration>
    Note
    UserMapping old=" someone@example.com" is the placeholder for the actual Windows Live ID of the source user in the Microsoft Dynamics CRM Online organization database.
    "new" is the placeholder for the actual user in the target Active Directory. You must use the format domain\username.
    • Auto-map users: Select this option if you want to automatically map the user settings by selecting from the following options:
    • Active Directory account name: Do not use this option when you migrate from Microsoft Dynamics CRM Online to Microsoft Dynamics CRM 2011 on-premises. This option attempts to match users based on Active Directory account name.
    • Microsoft Dynamics CRM full name to Active Directory full name: You can use this option to match users based on the First Name and the Last Name attributes from the Microsoft Dynamics CRM Online organization to the First Name and the Last Name values stored in Active Directory. Microsoft recommends you use this option if the names are consistent between the Microsoft Dynamics CRM Online deployment and the target Active Directory.
    • Prefix: This option is typically used for test purposes. This option matches users in Microsoft Dynamics CRM 2011 to existing users in Active Directory with a Prefix and a Start value. The value is numerically incremented, for example User1, User2, User3.
    • Use existing map file: This option uses the mapping file created in the Generate a new mapping file option.
    Hh127042.58418(en-us,MSDN.10).png
  7. Edit the User Mappings
    In the Edit User Mappings window, the suggested mappings from the Auto-map options can be reviewed or can be overriden to specify other user accounts. In most situations, an error will be received that not all users were mapped successfully.
    Note
    The enabled/disabled state of users is not visible in this window. If the Microsoft Dynamics CRM 2011 on-premises SKU allows only 5 or fewer users, you must consider this when you complete the mapping. You must be aware of which users are enabled in Microsoft Dynamics CRM Online and only map those users. It is possible to get into a situation where you have exceeded the number of allowed users.
    The best practice to follow when you import to a limited number of licenses is to disable users in Microsoft Dynamics CRM Online prior to requesting a copy of the Microsoft Dynamics CRM Online SQL Server database. If disabled Microsoft Dynamics CRM Online users are mapped in the import, those users cannot be reverted and the process must be restarted.
    Hh127042.58419(en-us,MSDN.10).png
    If the setup user is left unmapped, you receive the following error. This user must be mapped prior to completing the import.
    Hh127042.58420(en-us,MSDN.10).png
  8. System Requirements
    In the System Requirements window, you receive the results of several environment diagnostic checks. If you receive a red alert in the System Requirements window, the issue must be resolved prior to completing the wizard. If you receive a yellow warning, you may proceed with the import.
    Due to versioning differences between Microsoft Dynamics CRM Online and Microsoft Dynamics CRM 2011 on-premises, a warning may be received. This warning is expected and will not prevent the import from completing. After you complete the steps in this document, the versioning will be in correct.
  9. Verify That You Are Ready to Install
    In the Ready to Install window, verify that the information is correct, and then click Import.
    Hh127042.58421(en-us,MSDN.10).png
  10. View the Log File
    After the import is complete, the Import Organization window appears. Click View the log file to view the log file that is created during the import. If the import is successful, click Finish.
    Note
    The log file is stored in the following directory
    <drive>:\Documents and Settings\<user>\Application Data\Microsoft\MSCRM\Logs
    Hh127042.58422(en-us,MSDN.10).png

CRM 2011 Discovery and Web Service URLs

CRM 2011 Discovery and Web Service URLs

Here is the information that you need:
For CRM Online customers:
The following URLs should be used to access the discovery service (use the appropriate URL for your location):
https://dev.crm.dynamics.com/XRMServices/2011/Discovery.svc (North America)
https://dev.crm4.dynamics.com/XRMServices/2011/Discovery.svc (EMEA)
https://dev.crm5.dynamics.com/XRMServices/2011/Discovery.svc (APAC)

The following URLs should be used to access the Organization service(SOAP endpoint):
https://{Organization Name}.api.crm.dynamics.com/XrmServices/2011/Organization.svc (North America)
https://{Organization Name}.api.crm4.dynamics.com/XrmServices/2011/Organization.svc (EMEA)
https://{Organization Name}.api.crm5.dynamics.com/XrmServices/2011/Organization.svc (APAC)
Where {Organization Name} refers to the Organization that you specify in the URL when accessing the Web application. For example, for Contoso.crm.dynamics.com, the {Organization Name} is Contoso.
The following URLs should be used to access the Organization Data service(OData REST endpoint)
https://{Organization Name}.api.crm.dynamics.com/XrmServices/2011/OrganizationData.svc (North America)
https://{Organization Name}.api.crm4.dynamics.com/XrmServices/2011/OrganizationData.svc (EMEA)
https://{Organization Name}.api.crm5.dynamics.com/XrmServices/2011/OrganizationData.svc (APAC)

For CRM On-premise
s customers:
http://{server}/XRMServices/2011/Discovery.svc for the Discovery service endpoint
http://{server}/{OrgName}/XRMServices/2011/Organization.svc for the Organization Service endpoint (SOAP)
http://{server}/{OrgName}/XRMServices/2011/OrganizationData.svc for the Organization Data Service endpoint (REST)
http://{server}/XRMDeployment/2011/Deployment.svc for the Deployment Service endpoint

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Free Samples By Mail