M
morten.ostergaard
Hello,
I'm developing a small file browsing service in ASP.NET and have some
problems. What I have done is this:
- An ASP.NET site configured with Windows authentication in Web.config
and in IIS
- Configured to use impersonation (actually only for the aspx pages
that does the file browsing service, but also tried it for the whole
site).
- Uses the file browsing services in System.IO
It works fine browsing files on the local machine - both through the
local file paths and UNC paths, and it seems to be using the
impersonated user for access rights. But as soon as I want to browse
files on other machines, it doesn't seem to delegate the user. I can
browse shares on other servers that are set with rights for "Everyone",
but not shares that the impersonated user has access to.
I have learned from posts on this newsgroup that both the user that is
being impersonated (the person that accesses the site) and the servers
involved should be configured to allow delegation, and I have done
that. The machine running IIS is a member server of a domain and the
server I'm trying to show shares from are the AD. The AD was already
set to "trust computer for delegation" in AD Users&Computers and I've
configured the other computer to do the same. The user is set to
"Account is trusted for delegation" - that is the user that accesses
the ASP.NET page. The ASPNET account is on the member server and it
doesn't have any setting for delegation. Btw. I'm running Windows 2000
on the servers and XP on the client.
Any ideas anyone? Are there othere places where delegation should be
switched on? And do I need to do reboots to get the changes in effect?
I have tried to reboot IIS...
Best regards - and happy new year!
Morten Ostergaard Nielsen
I'm developing a small file browsing service in ASP.NET and have some
problems. What I have done is this:
- An ASP.NET site configured with Windows authentication in Web.config
and in IIS
- Configured to use impersonation (actually only for the aspx pages
that does the file browsing service, but also tried it for the whole
site).
- Uses the file browsing services in System.IO
It works fine browsing files on the local machine - both through the
local file paths and UNC paths, and it seems to be using the
impersonated user for access rights. But as soon as I want to browse
files on other machines, it doesn't seem to delegate the user. I can
browse shares on other servers that are set with rights for "Everyone",
but not shares that the impersonated user has access to.
I have learned from posts on this newsgroup that both the user that is
being impersonated (the person that accesses the site) and the servers
involved should be configured to allow delegation, and I have done
that. The machine running IIS is a member server of a domain and the
server I'm trying to show shares from are the AD. The AD was already
set to "trust computer for delegation" in AD Users&Computers and I've
configured the other computer to do the same. The user is set to
"Account is trusted for delegation" - that is the user that accesses
the ASP.NET page. The ASPNET account is on the member server and it
doesn't have any setting for delegation. Btw. I'm running Windows 2000
on the servers and XP on the client.
Any ideas anyone? Are there othere places where delegation should be
switched on? And do I need to do reboots to get the changes in effect?
I have tried to reboot IIS...
Best regards - and happy new year!
Morten Ostergaard Nielsen