Configuring the RSA Authentication Agent 7.1 for Web for IIS to simplify logging and remove extraneous data
Originally Published: 2015-03-12
Article Number
Applies To
RSA Product/Service Type: Authentication Agent for Web for IIS 7.5
RSA Version/Condition: 7.1.3.128
Issue
Failed to get HTTP_COOKIE with error 183, <name>cookie_OFFICE_PERSISTENT, Get User Name from cookie api
failed, local failed - look for domain cookie and
File:rsacookieapi.cpp Line:233 # Buffer copy error occurred in SDTraceMessage while writing log
"Buffer copy error occurred in SDTraceMessage" are often related to the use of a named Microsoft cookie
which the RSA agent is unaware of - configure the Use of Domain Cookies
Alternatively, sometimes there is not enough detail in the AceClient.log, due to insufficient privileges for the various API calls when writing to the \Windows directory. To prevent this, change the location of the AceClient.log on the IIS server in the registry, to a folder with wide open permissions to everyone.
Alternatively, sometimes there is not enough detail in the AceClient.log, typically due to insufficient privileges. To prevent this, create a registry entry on the IIS server that defines a new location for the AceClient.log to a directory with open permissions to everyone. To make this change,
- Set the log file to write to an unprotected folder by creating such a directory on the server, for example RSALogs.
- Opening a registry editor and navigating to HKEY_LOCAL_MACHINE\SOFTWARE\SDTI\ACECLIENT.
- From the Edit menu, click Add Key and create a key named TraceFile, with a type of REG_SZ.
- Set the value of TraceFile to C:\RSALogs\AceClient.log.
- Reboot the server for the change to take effect.
Tasks
- Disable the RSA Token for Cross-Site Request Forgery Protection option, as documented below.
- Move any existing AceClient logs to a new directory
- Set verbose logging in web agent via the server's Control Panel > RSA Authentication Agent > Advanced tab. Choose all options for tracing level and tracing destination.
- Reproduce the problem so new logs are generated.
- Capture the new AceClient.log file.
- Send the file to RSA Customer Support to open a new case for forward the log to the support engineer assigned to the case for review.
Resolution
Every time a user logs off, a copy of their cookie is stored in cache and every time any other user presents a cookie, a cache lookup is performed. This has two effects:
- The web agent becomes very busy; and
- The verbose logs become crowded with CSRF cookie messages, making them difficult to read.
Later versions of the agent prevent Java from hijacking the RSA cookie. While this might not prevent a hacker from walking up to an unlocked console and using a browser tool to copy cookies, it may be reasonable to disable the RSA Logoff Cookie check environment variable. To do this on the Windows 2012 server running the agent,
- Open the Group Policy Management Console. Right-click the Group Policy object (GPO) that should contain the new preference item, and then click Edit.
- In the console tree under Computer Configuration or User Configuration, expand the Preferences folder, and then expand the Windows Settings folder.
- Right-click the Environment node, point to New, and select Environment Variable.
- In the New Environment Variable Properties dialog box, select an Action for Group Policy to perform.
- Create an environment variable named RSA_NO_LOGOFF_COOKIE_CHECKING and set the value to 1 to turn it off.
- Click the Common tab, configure any options, and then type your comments in the Description box.
- Click OK. The new preference item appears in the details pane.
Note that CSRF is not cross-site scripting (XSS), and is not an easy exploit to pull off, but you may want to re-enable the option after debugging the web agent issue. See articles on CSRF versus XSS for more information. The main difference being XSS exploits the trust a user has for a particular site, while CSRF exploits the trust that a site has in a user's browser.
Notes
- The Logoff URL option works only if you have not selected the Use RSA Token for Cross-Site Request Forgery Protection option, which is the source of the CSRF messages in the logs. See articles below for more information:
- The Bad Request error when attempting to logoff the RSA-protected webpage logoff would only work when the Use RSA Token for Cross-Site Request Forgery Protection is set if you used the web agent API to get the token dynamically.
- Hot fixes created after version 7.1.3 build 128 will decouple the logout/logoff function from CSRF, so that you can configure the logout URL of the <http target address>/WebID/IISWebagentIF.dll?logoff to invalidate the cookie and still keep CSRF checked.
- The registry entry of HKEY_LOCAL_MACHINE\SOFTWARE\SDTI\RSAWebAgent\Agent50CompatibleCookies set as a string value with a value of 1 may need to be set on the IIS server to use an older format of cookies. For example, using a Microsoft Internet Security and Acceleration (ISA) server that will authenticate a user with SecurID and send the resulting cookie along to web servers under its' dominion.
- If the multi-domain URLs are all hosted on the same IIS server, the Multi-Domain support option does not need to be checked. Doing so may actually cause unnecessary lookups.
- Local admin privileges may need to be assigned to accounts referenced in the app pools to see the ‘URLProcessor’ in entries the logs and for authentication based on an IIS/SHP shared secret to work.
- The log entry COPIED_COOKIE_PROTECTION_SUPPORTED is not relevant to SharePoint or other web-based site problems. This value is set by the installer, for determining which platform will support the check for copied cookies.
Related Articles
Remove Member User Groups from User Groups 24Number of Views How to manual deploy Federated Identity Manager (FIM) 2.5 / 2.6 9Number of Views How to configure private key settings for Internet Explorer on Microsoft Vista 9Number of Views How to run the RegisterUserExample Admin API example code in RSA Mobile Authentication Server 1.5 4Number of Views Deploying DLP Endpoint Enforce Agent using SCCM Fails. 171Number of Views
Trending Articles
An example of SSO using SAML and ADFS with RSA Identity Management and Governance 6.9.x RSA Authentication Manager 8.9 Release Notes (January 2026) RSA MFA Agent 2.3.6 for Microsoft Windows Installation and Administration Guide Passwordless Authentication in Windows MFA Agent for Active Directory – Quick Setup Guide RSA Authentication Manager Upgrade Process
Don't see what you're looking for?