How to Import User Data
ID: Q199362
|
The information in this article applies to:
-
Microsoft Site Server version 3.0
SUMMARY
The article describes sample steps to import user data from Personalization and Membership to an Analysis database.
MORE INFORMATION
This configuration assumes a complete installation of Site Server with SQL Server selected for the Analysis database.
Set up the Membership Instance:
- In the MMC, under P&M, right-click the server name, select New, and choose Membership Server Instance.
- Click Next.
- Select Custom Configuration and click Next.
- Select AUO and LDAP only, and then click Next.
- Create a new Membership Directory and click Next.
- Use Membership Authentication and click Next.
- Set the Membership Directory name to "UA Test" and the administrator's password to "password," and then click Next.
- Select a SQL Server database and click Next.
- Enter the server name. The database name is "SSMembership," the username is "sa," and the password is blank. Click Next.
- Select "All Unassigned" for IP address and port 1003. Click Next.
- Click Finish.
- Right-click on Membership Server #2, select Rename, and enter "UA Test."
Configure the Users:- In the MMC, right-click on MDM and select Properties.
- Enter "localhost" and port 1003, and then click OK.
- Select Logon Anonymously and click OK.
- Expand the MDM. Under ou=Admin,cn=Schema, ensure that cn=userComment and cn=userPassword both exist.
- Under ou=Admin,ou=ExportConfig,ou=Users, double-click cn=Default.
- Click Add Value and enter "userComment" and "userPassword," and then click OK.
- Right-click ou=Members, select New, and then choose User.
- Click Next.
- Enter "testuser1" for the name and click Next.
- Click Add Attribute and add the following:
Email Address (mail) "testuser1@domain.com"
First Name (givenName) "Test1"
Last Name (sn) "User1"
user-comment (userComment) "Test User 1 Comment"
user-password (userPassword) "testuser1pass"
- Click Next.
- Click Add, double-click Public in the left column, and then click OK.
- Click Finish.
- Right-click ou=Members, select New, and choose User.
- Click Next.
- Enter "testuser2" for the name and click Next.
- Click Add Attribute and add the following:
Email Address (mail) " testuser2@domain.com"
First Name (givenName) "Test2"
Last Name (sn) "User2"
user-comment (userComment) "Test User 2 Comment"
user-password (userPassword) "testuser2pass"
- Click Next.
- Click Add, double-click Public in the left column, click OK.
- Click Finish.
Create the Web Site:- In Windows Explorer, go to \Inetpub, and create a folder called "UA Test."
- Create a file under "UA Test" called Default.htm:
<html>
<head>
<title>Welcome To IIS 4.0!</title>
</head>
<body>
Test default page.
</body>
</html>
- Create a file under "UA Test" called Test.htm:
<html>
<head>
<title>Welcome To IIS 4.0!</title>
</head>
<body>
Test non-default page.
</body>
</html>
- Create a file under "UA Test" called GetCookie.asp:
<%@ LANGUAGE="VBScript" %>
<% Response.Buffer = True %>
<HTML>
<HEAD>
<TITLE>Recover Personalization Settings</TITLE>
</HEAD>
<BODY>
<B>Recover Personalization Settings</B>
<BR><BR>
<%
On Error Resume Next
if Request("REMOTE_USER") = "" Then
Response.Write "You have not been authenticated by the system.<br>"
Response.Write "Please contact your administrator."
Else
Set UserObjects =
Server.CreateObject("Membership.UserObjects")
Set vusr = Server.CreateObject("Membership.verifusr")
vusr.IssueCookie "SITESERVER", "GUID=" & UserObjects.Get("GUID")
vusr.IssueCookie "MEMUSER", UserObjects.Get("cn")
Response.Write "Personalization settings have been recovered.<br>"
End if
%>
<p><a href="default.htm">Home Page</a><br>
</BODY>
</HTML>
- Close Windows Explorer.
- In the MMC, under IIS, right-click the computer name, select New, and choose Web Site.
- Enter "UA Test" for Web Site Description and click Next.
- Leave IP at "All Unassigned," change Port to "8010," and click Next.
- Click Browse, select \Inetpub\UA Test, and click OK.
- Click to uncheck "Allow anonymous access to this web site" and click Next.
- Click Finish.
- Right-click the "UA Test" Web site, select Task, and choose Membership Server Mapping.
- Select "UA Test" and click OK.
- Right-click the "UA Test" Web site and select Properties.
- Click Properties under Logging, and note where the log files are being stored (W3SVC3\exyymmdd.log).
- Click Cancel.
- Click the Membership Authentication tab.
- Click Other Password Authentication, check only DPA, and then click Apply.
- Click OK.
- Right-click the "UA Test" Web site and click Start.
Generate the Log Files:- On a separate computer that has not hit this server before (or delete all cookies for this server), start Internet Explorer.
- Type in http://<servername>:8010/GetCookie.asp and then press Enter.
- Enter "testuser1" for Member ID, "testuser1pass" for Password, and then click OK. You should see:
Recover Personalization Settings / Personalization
settings have been recovered. / Home Page
- Type in http://<servername>:8010 and press Enter. You should see:
Test default page
- Type in http://<servername>:8010/test.htm and press Enter. You should see:
Test non-default page
- Close Internet Explorer.
- Repeat steps 1 through 10 on an additional computer, substituting Member ID, "testuser2" and Password "testuser2pass" on step 4.
Create the Database:- Run the Database Setup Wizard.
- Click Next.
- Click Update an Existing Database and click Next.
- Set Server to the servername, the Database to "SSAnalysis," login as "sa," and password as blank. Click Connect.
- Click OK.
- Click OK.
- Click Finish.
- Click OK.
- Click OK.
Import the Log Files:- Start Usage Import.
- Click OK.
- Select Auto Detect and click OK.
- Change IP Port to 8010 and Local Time Zone to GMT 00:00 and click OK.
- Enter a period (.) for Home Page URL.
- Click the Inferences tab and uncheck "Multiple users use the same username."
- Click OK.
- Click Tools and choose Options.
- Ensure that "Use cookies for inferences" is checked.
- Exit and restart Usage Import.
- In the Import Manager window, click Browse, select winnt\system32\LogFiles\w3svc3\exyymmdd.log and click Open.
- Click Start Import.
- Click OK.
- Click Close.
- Close Usage Import.
Import the P&M Data:- Start Custom Import.
- Click Get External Data.
- Click User Data.
- Enter "<servername>:8010" for Server Name, "administrator" for User name, and "password" for Password.
- Ensure that "Get user records modified on or after (date)" is unchecked.
- Click Import.
- Click OK.
- Close Custom Import.
Create a Report:- Start Report Writer.
- Select New Report Definition and click OK.
- Right-click Report Definition and select New Calculation.
- Right-click Row Dimensions and select New Dimension.
- Select Dimensions, choose Users, choose Username, and then click OK.
- Right-click Measures and select New measure.
- Select Measures, choose Visits, and then choose Number of visits.
- Right-click Measures and select New measure.
- Select Dimensions, select Users, select Cookie, and then choose User-comment.
- Change Calculate Using to Maximum.
- Click OK.
- Ensure Presentations is set to Table.
- Select File and choose Run Report.
- Enter "Test" for File name and click OK.
The generated report will show all users who entered the site along with the user-comment and user-password attributes.
Additional query words:
Keywords :
Version : winnt:3.0
Platform : winnt
Issue type : kbhowto
Last Reviewed: March 26, 1999