We have an intranet site running on Win 2003 and IIS 6 and mainly created in classic asp. The site was originally set up with Integrated Windows Authentication turned off on all folders.
We are starting to use user details a lot more, picked up from their Windows username. Our current solution is to have a dedicated folder on the site to hold forms that need this and set the permissions on that folder only. Something else we have done is set
up a process to send the users to that folder on first access to the site, grab their details into a session variable to use across the site, this then kicks them back to the page they were originally requesting. This latter option has it's drawbacks as when
the session expires users are finding form data is lost while they are redirected off to start a new session
What we really want to do (aside from set IWA across the site which will be problematic due to the size of the site) is to just put an include file in the folder with IWA on it which grabs the user details. This include will then be called from any folder on
the site and it will be able to display the user details. I have seen this working on one our sites before but have not been able to get it to work even though the IIS settings looked the same
Can anyone help with getting the right settings for this include option or suggest alternatives? I have managed to get this running on our staging environment by updating the security setup in Windows on the folder holding the includes - when I do the same
on production it doesn't work. I was wondering if there was a set of settings I should be using - I can provide specifics if required
I have managed to get this running on our staging environment by updating the security setup in Windows on the folder holding the includes - when I do the same on production it doesn't work.
Is there any error message returned?
My guess the problem on production is client doesn't pass credential automatically.
Marked as answer by Leo Tang - MSFT on Sep 29, 2011 07:58 AM
howtorowacat
1 Post
Help/Advice Needed - Authentication using include files and IWA
Sep 21, 2011 05:48 PM|LINK
We have an intranet site running on Win 2003 and IIS 6 and mainly created in classic asp. The site was originally set up with Integrated Windows Authentication turned off on all folders.
We are starting to use user details a lot more, picked up from their Windows username. Our current solution is to have a dedicated folder on the site to hold forms that need this and set the permissions on that folder only. Something else we have done is set up a process to send the users to that folder on first access to the site, grab their details into a session variable to use across the site, this then kicks them back to the page they were originally requesting. This latter option has it's drawbacks as when the session expires users are finding form data is lost while they are redirected off to start a new session
What we really want to do (aside from set IWA across the site which will be problematic due to the size of the site) is to just put an include file in the folder with IWA on it which grabs the user details. This include will then be called from any folder on the site and it will be able to display the user details. I have seen this working on one our sites before but have not been able to get it to work even though the IIS settings looked the same
Can anyone help with getting the right settings for this include option or suggest alternatives? I have managed to get this running on our staging environment by updating the security setup in Windows on the folder holding the includes - when I do the same on production it doesn't work. I was wondering if there was a set of settings I should be using - I can provide specifics if required
Thanks
Clare
London
345 Posts
Re: Help/Advice Needed - Authentication using include files and IWA
Sep 26, 2011 02:12 AM|LINK
Hi,
Is there any error message returned?
My guess the problem on production is client doesn't pass credential automatically.