Select the product you need help with
A call to the AuthzInitializeContextFromSid API function fails during the delivery of an e-mail subscription in SQL Server Reporting ServicesArticle ID: 842423 - View products that this article applies to. On This PageSUMMARYThis article discusses the cause and some possible resolutions for a problem that may occur in Microsoft SQL Server 2000 Reporting Services, in Microsoft SQL Server 2005 Reporting Services, or in Microsoft SQL Server 2008 Reporting Services when you try to create and to process an e-mail subscription by using a domain user account. The problem occurs when an AuthzInitializeContextFromSid API function call in the Authz.dll file does not succeed.
Note This problem does not occur in Windows Server 2008. The resolutions that are discussed in this article are as follows:
INTRODUCTIONThis article discusses a problem that is associated with the AuthzInitializeContextFromSid API function call that occurs during the delivery of an e-mail subscription. This article also discusses some possible resolutions for the problem.
MORE INFORMATIONWhile delivering an e-mail for an e-mail subscription, the Reporting Services program may call the AuthzInitializeContextFromSid API function that is defined in the Authz.dll file. The Reporting Services program may call the AuthzInitializeContextFromSid API function if one of the following conditions is true:
If the function call fails, you may have to configure the settings on the domain of the computer that is running Reporting Services to resolve the problem. The Reporting Services program calls the AuthzInitializeContextFromSid API function to verify whether the user account that was used to create the subscription still has the correct permissions to view the report. This verification is not required when the e-mail contains only a link, a URL, to the report because Reporting Services performs user permissions verification when the user tries to access the report by using the URL. The AuthzInitializeContextFromSid API function call reads the tokenGroupsGlobalAndUniversal (TGGAU) attribute of the security identification number (SID) that is specified in the AuthzInitializeContextFromSid API function call to determine Windows group membership information for the current user. Reporting Services calls the AuthzInitializeContextFromSid API function by using the security context of the service logon account of the Reporting Services Windows service. Therefore, the user account that you use to run the Reporting Services Windows service must have sufficient permissions to read the TGGAU attribute on the user account that is used to create and to process the e-mail subscriptions. If the computer is not configured correctly to access and to run the AuthzInitializeContextFromSid API function call in the Authz.dll file, you may receive an error message. Additionally, an error message may be written to the Reporting Services log file. To determine what error occurred, follow these steps:
To resolve this problem, use one of the following methods. You can use Method 1 if the following conditions are true:
Method 1
Method 2Configure the Reporting Services Windows service to run under a domain user account.Note An error message may be written to the Reporting Services trace log when you try to change the user account that is used to run the Reporting Services Windows service. For more information about the error message, click the following article number to view the article in the Microsoft Knowledge Base: 842421
(http://support.microsoft.com/kb/842421/
)
You receive an error message in the Reporting Services trace log when you restart the Report Server service after you change the user account that is used to run the Report Server service
Method 3Configure the settings on the domain of the computer that is running Reporting Services. To do this, use one of the following methods.Grant the read permission on all the user accounts and on all the groups in the domainYou may be able to resolve the problem by granting read permissions for the user account that you use to run the Reporting Services Windows service to read the TGGAU attribute on all the user accounts and all the groups in the domain. To do this, use the information in one of the following sections, depending on the operating system you are using.For a Microsoft Windows 2000 domainIf the domain is in a pre-Windows 2000 compatibility access mode, the EVERYONE group has read permission on the TGGAU attribute for all the user account accounts and all the groups. Therefore, the user account that you use to run the Reporting Services Windows service has access to the TGGAU attribute on the user account that Reporting Services uses to create the e-mail subscription.If the domain is not in a pre-Windows 2000 compatibility access mode, also known as Native mode, you must grant read permission for the user account that is used to run the Reporting Services Windows service so that it can read the TGGAU attribute on the user account that Reporting Services uses to create the subscription. You can create a domain local group that simulates the pre-Windows 2000 compatibility group, add the user account that you use to run the Reporting Services Windows service to this group, and then grant read permissions for the group on all the user accounts. To do this, follow these steps: Note You must have administrator permissions on the domain to follow these steps.
For a Microsoft Windows Server 2003 domainIf the domain is at a Windows 2000 functional level, the EVERYONE group has read permissions to the TGGAU attribute of all user accounts and groups. Therefore, the Reporting Service service account has the correct permissions to the user account that created the e-mail subscription.If the domain is at a Windows Server 2003 functional level, the Windows Authorization Access Group (WAA group) has read permissions to the TGGAU attribute of all user accounts and groups. Therefore, if you add the Reporting Services service account to the WAA group, the Reporting Services service account has read permissions to the TGGAU attribute of the user accounts that can create e-mail subscriptions. To add the Reporting Services service account to the WAA group, follow these steps:
Grant read permissions to a specific user account or group that can create a Reporting Services subscriptionYou may not want to grant read permissions to the TGGAU attribute of all user accounts and groups. Instead, you may want to grant read permissions to the TGGAU attribute of a specific user account or group.Notes
MORE INFORMATIONHow to configure the domain settings on the computerThe configuration of the domain depends on the operation mode of the Microsoft Windows domain. Additionally, you must turn on the advanced features on the Windows domain. To find the domain operation mode on the domain controller, and to turn on the advanced features, follow these steps:
331951
(http://support.microsoft.com/kb/331951/
)
Some applications and APIs require access to authorization information on account objects
Properties |


Back to the top








