The IIS 7 web policy agent now supports IIS 7 basic authentication and password replay. You must use the appropriate software versions.
-
For Microsoft Office integration, you must use Microsoft Office 2007 SP2 or later.
-
For Microsoft SharePoint integration, you must use Microsoft SharePoint Server 2007 SP2 or later.
You must also apply workarounds as described for the following Microsoft issues.
- Microsoft Support Issue: 841215
-
Link: http://support.microsoft.com/kb/841215
Description: Error message when you try to connect to a Windows SharePoint document library: "System error 5 has occurred"
Summary: Enable Basic Authentication on the client computer.
- Microsoft Support Issue: 870853
-
Link: http://support.microsoft.com/kb/870853
Description: Office 2003 and 2007 Office documents open read-only in Internet Explorer
Summary: Add registry keys as described in Microsoft's support document.
- Microsoft Support Issue: 928692
-
Link: http://support.microsoft.com/kb/928692
Description: Error message when you open a Web site by using Basic authentication in Expression Web on a computer that is running Windows Vista: "The folder name is not valid"
Summary: Edit the registry as described in Microsoft's support document.
- Microsoft Support Issue: 932118
-
Link: http://support.microsoft.com/kb/932118
Description: Persistent cookies are not shared between Internet Explorer and Office applications
Summary: Add the web site the list of trusted sites.
- Microsoft Support Issue: 943280
-
Link: http://support.microsoft.com/kb/943280
Description: Prompt for Credentials When Accessing FQDN Sites From a Windows Vista or Windows 7 Computer
Summary: Edit the registry as described in Microsoft's support document.
- Microsoft Support Issue: 968851
-
Link: http://support.microsoft.com/kb/968851
Description: SharePoint Server 2007 Cumulative Update Server Hotfix Package (MOSS server-package): April 30, 2009
Summary: Apply the fix from Microsoft if you use SharePoint.
- Microsoft Support Issue: 2123563
-
Link: http://support.microsoft.com/kb/2123563
Description: You cannot open Office file types directly from a server that supports only Basic authentication over a non-SSL connection
Summary: Enable SSL encryption on the web server.
Procedure 5.5. To Configure IIS 7 Basic Authentication & Password Replay Support
Follow these steps.
-
Generate and store an encryption key.
-
Generate the key using
com.sun.identity.common.DESGenKeyusing the .jars where you deployed OpenAM, as in the following example.$ cd /path/to/tomcat/webapps/openam/WEB-INF/lib $ java -cp openam-core-.jar:openam-shared-.jar com.sun.identity.common.DESGenKey Key ==> sxVoaDRAN0o=
-
Store the key in the agent configuration on the property in the OpenAM console under Access Control >
realm-name> Agents > Web >agent-name> Advanced > Microsoft IIS Server > Replay Password Key (property name:com.sun.identity.agents.config.replaypasswd.key), and then Save your work. -
Store the key in the server configuration in the OpenAM console under Configuration > Servers and Sites >
server-name> Advanced > Add... to add the propertycom.sun.am.replaypasswd.keywith the key you generated as the value, and then Save your work.
-
-
In the OpenAM console under Access Control >
realm-name> Authentication > All Core Settings... > Authentication Post Processing Classes, add the classcom.sun.identity.authentication.spi.ReplayPasswd, and then Save your work. -
If you require Windows logon, or you need to use basic authentication with SharePoint or OWA, then you must configure Active Directory as a user date store, and you must configure the IIS 7 policy agent profile User ID Parameter and User ID Parameter Type so that the policy agent requests OpenAM to provide the appropriate account information from Active Directory in its policy response.
Skip this step if you do not use SharePoint or OWA and no Windows logon is required.
Make sure OpenAM data store is configured to use Active Directory as the user data store.
In the OpenAM console under Access Control >
realm-name> Agents > Web >agent-name> OpenAM Services > Policy Client Service, set User ID Parameter and User ID Parameter Type, and then Save your work. For example if the real username for Windows domain logon in Active Directory is stored on thesamaccountnameattribute, then set the User ID Parameter tosamaccountname, and the User ID Parameter Type toLDAP.Setting the User ID Parameter Type to
LDAPcauses the policy agent to request that OpenAM get the value of the User ID Parameter attribute from the data store, in this case Active Directory. Given that information, the policy agent can set the HTTP headersremote_user,auth_user, orlogon_useranduser_passwordwith Active Directory attribute values suitable for Windows logon, setting the remote user, and so forth. -
To set the encrypted password in the AUTH_PASSWORD header, in the OpenAM console under Access Control >
realm-name> Agents > Web >agent-name> Advanced > Custom Properties, addcom.sun.identity.agents.config.iis.password.header=true. -
To have the agent perform Windows logon (for user token impersonation), in the OpenAM console under Access Control >
realm-name> Agents > Web >agent-name> Advanced > Custom Properties, addcom.sun.identity.agents.config.iis.logonuser=true. -
In the OpenAM console under Access Control >
realm-name> Agents > Web >agent-name> Advanced > Microsoft IIS Server, set Authentication Type to basic, and then Save your work. -
To use the agent with SharePoint or Microsoft Office, configure OpenAM to support the
iPlanetDirectoryProas a persistent cookie.In the OpenAM console under Access Control >
realm-name> Authentication > All Core Settings... > Persistent Cookie Mode, select Enabled, and then Save your work.

