Solved

Use IIS 6 WebDAV to connect to home directories?

Posted on 2004-10-27
1,283 Views
Last Modified: 2012-08-13
I am setting up a lab WebDAV server using IIS 6.  I am able to access our DFS shares using the user's credentials, using the new "connect to share as authenticated user" feature.  Does anyone know of a way to allow users to view their home directories WITHOUT creating a viewable "Users" share?  For instance, our user directories reside on E:\Shares\Users\_username_.  Some people would share the "Users" subdirectory.  We set up individual shares directly to the users' folders.  The share names would be the User name followed by a "$" sign.  The share "Smith" would be mapped to "E:\Shares\Users\Smith$", and "Johnson" would be mapped to "E:\Shares\Users\Johnson$".  I realize that I will probably have to share the Users folder to get this to work, and remove the directory listing permission from the Users folder itself, to prevent getting a listing of all of the user folders.  It would be great if there were some sort of script or filter which would automatically route requests from http://webdavserver/myhome/ to the appropriate share or directory.

Have any of you worked up a similar solution?
0
Question by:NashvilleGuitarPicker
    6 Comments
     
    LVL 37

    Accepted Solution

    by:
    Hi,

    yes, ISAPI can help you with this.  If you have a visual studio, follow the create isapi wizard and read up on onUrlMap() function.

    using that method, you can write your web code to point the user to some generic location (such as  http://webdavserver/myhome/) and translate that url in the filter into anything you want to.

    Cheers.
    0
     
    LVL 5

    Author Comment

    by:NashvilleGuitarPicker
    Hmmm, I was hoping for something in VB, since my Windows C experience is lacking.  It does not appear that this is an option in VB 6.  Perhaps VB.NET lets me do things like this.  I did some more thinking, and at the very least, I should be able to write an ASP page that redirects to another page, forinstance,

    http://webdavserver/myhome/

    might redirect user Smith to

     http://webdavserver/users/smith$/ (or whatever the proper encoding of $ is).

    This would still require sharing the Users folder, but the more I think about it, the more "logical" this would be, since it would use definite paths.  This would let an administrator jump to other users' folders if neccessary.

    Thanks for the pointers on ISAPI, though.  Does anyone have other solutions?  I will leave this one open for a little while to reel in some more ideas, and then assign points as appropriate.
    0
     
    LVL 37

    Expert Comment

    by:meverest
    Hello,

    you can write isapi using VB too.

    Cheers.
    0
     
    LVL 5

    Author Comment

    by:NashvilleGuitarPicker
    Thanks.

    When I was searching, I found many articles stating that you couldn't write ISAPI in VB.  Maybe it was for particular types of ISAPI filters.  I will have to look some more to find some VB/ISAPI resources.  I will leave this question open a little bit longer, and then dish out the points.
    0
     
    LVL 37

    Expert Comment

    by:meverest
    >>  I found many articles stating that you couldn't write ISAPI in VB.

    you did?  Maybe I am mistaken.  I write only C++, so I wouldn't know for sure....

    Cheers.
    0
     
    LVL 5

    Author Comment

    by:NashvilleGuitarPicker
    I am closing htis question out.  Thanks for the pointers.  If anyone else has something to add, feel free.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Shellfire Box VPN + Lifetime Subscription

    The Shellfire Box easily connects all of your devices, even those that don't offer the possibility to establish a safe vpn connection. Access blocked content and surf safely, no matter where in the world you are located.

    Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
    Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
    Want to pick and choose which updates you receive? Feel free to check out this quick video on how to manage your email notifications.
    This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

    856 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now