•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,479 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,756 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1008 | Replies: 0
![]() |
•
•
Join Date: Dec 2004
Posts: 37
Reputation:
Rep Power: 4
Solved Threads: 0
I posted this question in the Webmasters Lounge, then I saw the sticky about not posting technical questions there, so I'm re-posting it here.
It doesn't necessarily have to be PHP, but that's what the rest of the site is coded in.
I'm using IIS on Windows 2k3 R2.
What I'm wanting to do is create a folder called /accounts/ on the server that requires Integrated Windows Authentication. I can do that, no problem.
Then from there I want subfolders, but I only want it to show the subfolders that user is authorized to view.
For example, say I have a user named test and test2. Then I have a folder setup like this:
/accounts/
/accounts/test/
/accounts/test2/
Now when I go to the /accounts/ folder from a browser it will prompt me to login. If I login with the test user, I only want it to show the test folder and hide all other folders. If I login with the test2 user it would show the test2 folder and hide all other folders.
So maybe I could have an index.php script in the accounts folder that contains the redirect information.
Is this possible, and if so, how would I do this? I've tried all different kinds of permissions, but everything seems to either hide everything or show everything. If I login at test and click on the test2 folder it won't give me access, which is fine, but I would rather have it not show the entire test2 folder.
Is there any kind of variable that is passed during the login that I could use as a redirect?
For example, if I setup the Home Directory for the test user to /accounts/test/, is there anyway to pull that directory with PHP (or another scripting language) and set it to redirect to their home directory?
Thanks for any help.
It doesn't necessarily have to be PHP, but that's what the rest of the site is coded in.
I'm using IIS on Windows 2k3 R2.
What I'm wanting to do is create a folder called /accounts/ on the server that requires Integrated Windows Authentication. I can do that, no problem.
Then from there I want subfolders, but I only want it to show the subfolders that user is authorized to view.
For example, say I have a user named test and test2. Then I have a folder setup like this:
/accounts/
/accounts/test/
/accounts/test2/
Now when I go to the /accounts/ folder from a browser it will prompt me to login. If I login with the test user, I only want it to show the test folder and hide all other folders. If I login with the test2 user it would show the test2 folder and hide all other folders.
So maybe I could have an index.php script in the accounts folder that contains the redirect information.
Is this possible, and if so, how would I do this? I've tried all different kinds of permissions, but everything seems to either hide everything or show everything. If I login at test and click on the test2 folder it won't give me access, which is fine, but I would rather have it not show the entire test2 folder.
Is there any kind of variable that is passed during the login that I could use as a redirect?
For example, if I setup the Home Directory for the test user to /accounts/test/, is there anyway to pull that directory with PHP (or another scripting language) and set it to redirect to their home directory?
Thanks for any help.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- PHP / IIS / Integrated login w/ home directories (PHP)
- redirect doesn't redirect without refresh (PHP)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Entering a session without the browser login. (PHP)
Other Threads in the PHP Forum
- Previous Thread: Help this code is killing me
- Next Thread: I know nothing and need help please


Linear Mode