When trying to access a directory on a UNC path with windows authentication enabled I get a 401.3 error. I've checked that the users have rights to the files. The files are in DFS.
I've checked the Failed request tracing and the account is authenticating.
Whether I'm using NetworkService, Application Pool Identity, or a domain account with with rights to the files doesn't seem to make any difference.
Firstly you need to use one account which can access the files on DFS. I am surely you know this, just remind.
Now I assume this account is redmond\hcaldwell. what you need to do is to configure the application pool identity with redmond\hcaldwell as the tutorial below mentioned:
Notice: this domain account redmond\hcaldwell should exist on your server. And you don't use the built-in account but custom account to set the redmond\hcaldwell account as you application pool identity. To determine what identity your web application are
using please copy the code below to use:
Thanks for all the feedback. The problems was caused by a double hop authentication issue. I'm now running the application pool with a domain account and have resolved the issue.
hcaldwell
63 Posts
Cannot access files on DFS with Windows Authentication
Apr 27, 2012 02:02 PM|LINK
When trying to access a directory on a UNC path with windows authentication enabled I get a 401.3 error. I've checked that the users have rights to the files. The files are in DFS.
I've checked the Failed request tracing and the account is authenticating.
45. -AUTH_SUCCEEDED
<div style="DISPLAY: block" id=section_detail_45_details class=hidden>But when IIS attempts to access the file:
61. -FILE_CACHE_ACCESS_START
<div style="DISPLAY: block" id=section_detail_61_details class=hidden>Any ideas why the access to the file is failng?
Thanks,
Hugh
DFS Share UNC
jeff@zina.co...
3379 Posts
MVP
Moderator
Re: Cannot access files on DFS with Windows Authentication
Apr 27, 2012 05:14 PM|LINK
Does the app pool account have access?
Jeff
hcaldwell
63 Posts
Re: Cannot access files on DFS with Windows Authentication
Apr 27, 2012 05:40 PM|LINK
Yes.
Whether I'm using NetworkService, Application Pool Identity, or a domain account with with rights to the files doesn't seem to make any difference.
I currently have teh application pool set to a domain account and tested that I could open the files with that account.
Mamba Dai - ...
651 Posts
Microsoft
Re: Cannot access files on DFS with Windows Authentication
May 03, 2012 10:27 AM|LINK
Hi,
Firstly you need to use one account which can access the files on DFS. I am surely you know this, just remind.
Now I assume this account is redmond\hcaldwell. what you need to do is to configure the application pool identity with redmond\hcaldwell as the tutorial below mentioned:
http://learn.iis.net/page.aspx/624/application-pool-identities/
Notice: this domain account redmond\hcaldwell should exist on your server. And you don't use the built-in account but custom account to set the redmond\hcaldwell account as you application pool identity. To determine what identity your web application are using please copy the code below to use:
System.Security.Principal.WindowsIdentity.GetCurrent().Name
Feedback to us
Develop and promote your apps in Windows Store
Tasmey
69 Posts
Re: Cannot access files on DFS with Windows Authentication
May 21, 2012 06:31 AM|LINK
hcaldwell
63 Posts
Re: Cannot access files on DFS with Windows Authentication
May 21, 2012 01:55 PM|LINK
Thanks for all the feedback. The problems was caused by a double hop authentication issue. I'm now running the application pool with a domain account and have resolved the issue.