How to Enable Active Directory, AuthFilter and Windows Authentication for the Retail Solution Site
The following example is provided only to describe the process; it does not describe an actual profile that you should use. You need to design your profile definitions based on your business requirements.
The following example is based on the assumption that you have installed and configured Active Directory domain controllers for your Commerce Server 2000 site.
NOTE: If you do not have the domain controller installed on the same computer as Commerce Server, refer to the "Troubleshooting" section in this article.
Create a User Profile Definition That Stores Data in a SQL Server Database and in an Active Directory Database
NOTE: In the online product documentation go to the section entitled "Enabling AuthFilter for the Supplier Solution Site", which is located in the following location:
Commerce Server 2000\Administering Commerce Server\Managing the CS Authentication Resource\Enabling AuthFilter for the Supplier Solution Site
You need to refer to this documentation to complete some of the following steps.
- Use the Commerce Server Site Packager deployment tool to perform a custom unpack of the Retail solution site. While you are using the tool, use the default configurations except on Select Resources, where you need to remove the Profiles Resource.
- Use Commerce Server Site Packager to perform a custom unpack of the Supplier Active Directory solution site. Use the default configurations of the deployment tool except in the following areas:
- On the Unpack Method page, select Add resources in the package to an existing site.
- On the Select Site page, select the Retail site unpack in the previous step.
- On the Select Resources page, add only the Profiles resource from the list of available resources. You can also specify a new database name for the Profiles tables. If you do not modify this, you receive the following warning message:
Some databases you have specified already exist....want to continue?
Click Confirm to continue. - On the Profiling System page, type the domain name, the user name, the password, and the parent URL. You can use the default for the parent URL, or you can modify it according to the Organization Unit (or Units) that you need.
- On the Profiling System page, type the following:
- domain name
- user name
- password
- parent URL
NOTE: You can use the default for the parent URL, or you can modify it based on the Organization Units (OUs) that you need.
- In Computer Management, click Commerce Server Manager, click Commerce Sites, click Applications, right-click the Retail application, and then click Properties.
- On the General tab, in the Authentication filter box, select Windows Authentication, and then click OK.
- In Computer Management, Click click Internet Information Services, right-click the Retail site directory, and then click Properties.
- On the Directory Security tab, under the Anonymous access and authentication control section, click Edit.
- In the Authentication Methods dialog box, enable only Basic authentication. Click Edit, and then specify the domain name in the Basic Authentication Domain dialog box.
- In Computer Management, click Internet Information Services, right-click Retail site directory, and then click Properties.
- On the Directory Security tab, under Anonymous access and authentication control, click Edit.
- In the Authentication Methods dialog box, enable only Anonymous access on the directory.
NOTE: If you are using a Web farm, or if you require a proxy account support, please refer to the "Troubleshooting" section in this article. - Go to the "Enabling AuthFilter for the Supplier Solution Site" section that is mentioned in the note prior to step 1. In the "Enabling AuthFilter for the Supplier Solution Site" section:
- Step 10 has the required code that you need to update the GetUserInfo method in the Std_access_lib.asp page, which is located in the \Retail\Include folder.
- Step 11 has the required code that you need to update the PrepareLoginSection method in the Menu.asp page, which is located in the \Retail\Template folder.
- Use Business Desk to create a new user for the Retail site.
- Go to the URL, http://computername/Retail, and then type the credentials on the Login.asp page.
- To allow users to register themselves, you need to create your own registration page.
TROUBLESHOOTING