I was wondering how you could authenticate users by Active Directory. I don't want a login page, but in the web.config file I would like to use the <authentication> and <identity> tags.

I have it set to:
<authentication mode="Windows" />

<identity impersonate="true" userName="myUserName" password="myPassword" />