To set up ISA Server to log on to SQL Server:
- You must set up the SQL server with a database file for
each service that you want logged from ISA Server:
- On the SQL server, start Enterprise Manager.
- Connect to the SQL server that you want to host the
database files.
- On the Tools menu, click SQL Query Analyzer.
- On the File menu, click Open.
- Locate "ISA CD":\Isa.
- Open one of the following .sql files, which depends
upon the ISA Server service that you want to set up to log to an SQL database:
- For the Firewall service, open the Fwsrv.sql
file.
- For Packet Filtering, open the Pf.sql
file.
- For the Web Proxy service, open the W3proxy.sql
file.
NOTE: You must have a separate database for each ISA Server service on
each ISA Server.
- Add the following lines to the top of each script:
Create database <database name>
Go
Use <database name>
Go
Note The database is not required to have a specific name, you can
use whatever name that you want.
- On the Query menu, click Execute.
- Close the Query Analyzer. Your database is created.
Then, update the database (press the F5 key).
- You must set up the SQL server to accept the Open Database
Connectivity (ODBC) data connection from the ISA Server-based computer. There
are two possible logon methods for the SQL server. You can use either method if
your ISA Server is located in the same Windows 2000 domain as the SQL server,
but if your ISA Server is not located in the same Windows 2000 domain, you must
set up an SQL Server account:
- Start the SQL Enterprise Manager.
- Connect to the SQL server that you set up to host your
databases.
- Expand Microsoft SQL Servers.
- Expand SQL Server Group.
- Expand your server.
- Expand Security.
- Right-click Logins.
- Click New Login.
- In the Database list, select the database that ISA will be logging to.
- If you are located in the same domain as ISA Server,
you can click Windows Authentication. This step does not work in a Microsoft Windows NT 4.0 domain as
you cannot specify a computer account:
- Under Name, type:
domainname\isaservername$
- Click the Database Access tab.
- Click the databases that this logon method can
access (the databases that you created earlier), and then click OK.
- If you are located on a different domain than ISA
Server, you must use SQL Server Authentication:
- The Name field is not required to have a specific
name. Use a name to describe the logon method.
- Enter a password for this logon method.
- Click the Database Access tab.
- Select the databases that this logon method can
access (the databases that you created earlier), and then click OK.
- In the left pane, expand Databases,
expand the ISA Server logging database name, and then click
Tables.
- Right-click the table that will store the ISA Server
data, and then click Properties.
By default, the
table name for Firewall service logging is FirewallLog and the table name for
Web Proxy logging is WebProxyLog. - On the General tab, click
Permissions.
- For the ISA_Server_Name$ computer account or for the
SQL Server account, click to select the SELECT check box and
the INSERT check box, and then click OK two
times.
- If you ran both .sql files to generate both the
FirewallLog table and the WebProxyLog table, repeat steps m through o for the
second table.
- Stop and then start the SQL server service.
- Set up the ODBC data source on the ISA Server-based
computer:
- Under Administrative Tools, click the Data Sources (ODBC).
- Click the System DSN tab.
- Click Add.
- Click the SQL server driver.
- Click Finish.
- Name the data source with the same name that you used
for the database file.
- You can enter a description or leave it
blank.
- Enter the name of the SQL server.
- Click Next.
- There are two options for database authentication.
These options correspond to the account that you set up in step two:
- Click With Windows NT authentication using
the network login ID to use the ISA Server-based computer account for
authentication. This option can only be used in a Windows 2000
domain.
- Click With SQL Server authentication using
a login ID and password entered by the user to use an SQL account for
authentication.
- Click Next, and then use the default settings for the remainder of the
wizard requests.
- You must set up ISA Server to log on to the SQL database:
- Start the ISA Server Microsoft Management Console
(MMC).
- Expand Monitor Configuration.
- Click Logs.
- Right-click the log that you want to set up, and then
click Properties.
- On the Log tab, click Database.
- Enter the name of the data source name (DSN) that you
created.
- If you used the preceding SQL Server logon method, you
must enter the SQL logon method for the database that is under "Use This
Account". If you used Windows NT authentication, you can leave this box
blank.
- Stop and then restart the services that you just set up
to log on to the SQL server.
Note In
SQL Server, you must also change the permissions on the tables and grant
"SELECT" and "INSERT" permissions to the account that ISA Server will be using.