The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using Web Disk as a network drive

Discussion in 'General Discussion' started by jpswade, Jun 8, 2012.

  1. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've setup a WebDAV "Web Disk" as follows:

    docs@example.com which maps to /public_html/docs

    (Non SSL Port) Internet or Network Address: http://example.com:2077
    (SSL Port) Internet or Network Address: https://example.com:2078

    What I am trying to do is programmatically map this to a network drive at network logon using a batch script.

    This is what I've tried:

    This results in:

    I am running Windows Vista (yes I know), but the rest of the network is Windows XP for the time being.

    Can anyone advise how this can be done?
     
    #1 jpswade, Jun 8, 2012
    Last edited: Jun 8, 2012
  2. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I created a folder called "main" and tried this:

    It never prompted me for a user/password as I've seen here: Using the WebDAV Redirector : WebDAV for IIS 7.0 : Publishing Content to Web Sites : The Official Microsoft IIS Site

    I tried again and then got this error:

    Where can I find the error logs on the server for this?
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    200
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  4. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'm sure I tried this. I've reinstalled it again just in case, and rebooted. Still no change.

    It's annoying because KB907306 doesn't appear in the general "Programs and Features" nor in the "installed updates" section.

    All this aside, I've tried it on an XP machine and Windows Server 2003, with no success.

    Is this supposed to work or is this just a bug in windows or cPanel's configurations?

    Thanks.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    200
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm not able to assist you with your script, I was hoping that patch helped you. I do understand that there are problems with Windows 7 and WebDisk, and by this post by cPanelNick, it sounds like WebDisk is due for upgrades in the future.
     
  6. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    What is most odd is that before I could download and run the supplied "example.co.uk Secure WebDisk.vbs" file and it would add the webdisk as a Web Folder, but now I just get:

    When I hit yes, I get:

    I know it's not a firewall issue because when I put Smartways Welcome Page or https://example.co.uk:2078/ into Google Chrome I get prompted for a login. Once I login I can view the files.

    I don't understand the behaviour. I can't see anything client side in eventvwr and I can't find anything server side.

    As you can see this is pretty useless because there's no timestamps and even though I've tried to access it today, there's been no update or change to the file since the 8th:

    I feel like I'm overlooking something.
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    I think the NET USE command should be more like:

    Code:
    net use \\example.com@2078 /User:me@example.com Password
    
     
  8. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Kenneth, sure, if you're doing SSL, but let's try that out...

    I tried it once more for good measure:

    The third time was like the first error, forth and every time after that was the same and the second error, apart from the eighth time, that was like the first error again.

    Is this a server side issue or a client side issue? I can't seem to find any logs that give any indication as to where the issue lies...

    :confused:
     
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    200
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  10. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Interesting.

    I've just tried it on a Windows XP Pro machine at another location and it worked, connected without a hitch, at least by using the supplied vbs anyway. I did not get around to trying the command line.

    It's definitely not working on Vista at this location, so I'll try it on XP.

    It's got to be either a problem in Vista or a cpHulk/firewall issue.

    Side note, but also interesting:

    "Want to see a preview of the upcoming WebDAV/Webdisk changes? Join @cPanel Developer Phil and CEO Nick http://ow.ly/byNO7"

    - https://twitter.com/cPanel/status/213225534321197056
     
  11. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I was able to connect to the WebDisk using the VBS from the XP machine here.

    However I don't appear to be able to map the network drive.

    I read some details here: Mapping WebDAV folder as a network drive letter | Network | Smallvoid.com

    Meanwhile on the Vista machine here I am still having problems.

    As per the note here: Web Disk for Windows Vista Users

    I've downloaded and installed Webfldrs-KB907306-ENU.exe, then downloaded the "example.co.uk Secure WebDisk.vbs" for Windows Vista.

    Which brings it back to here: #6.
     
  12. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    I don't think you'll ever get that commandline to work. WebDav is not windows file sharing. "net use" is expecting you to be trying to map a network drive of a windows machine [or a Samba share] over the normal windows network ports / channels. There are no such windows networking ports/services listening on a cPanel server unless you happen to have Samba installed and configured. And of course, thankfully that isn't something supported specifically by cPanel.

    Mike

    ADDENDUM: Apparently I'm wrong. I guess that as long as you have the webdav redirector installed [already is on Vista/7] or the WebFolders stuff installed on XP, then you can. That's what acts as the shim between the normal windows file sharing and access to a webdav server.
     
    #12 mtindor, Jun 15, 2012
    Last edited: Jun 15, 2012
  13. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    On Vista: It won't work either way. Using command line nor downloading the VBS. The only way it would work was by following the instructions.

    On XP: How do I know that the WebDAV mini-redirector is installed? I can access the Web Disk, but I can't seem to map it as a drive.

    Unfortunately the WebDAV/Webdisk Webinar clashed with the England v Sweden Euro 2012 match, any highlights?
     
    #13 jpswade, Jun 18, 2012
    Last edited: Jun 18, 2012
  14. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I had a brainwave and remembered the "proxy subdomains" are enabled (ie: webdisk.example.co.uk).

    Whatever I seem to do with this seems to result the same away:
    Even like this:

    Note, as a side note, as we discovered earlier, if you exclude a subfolder on XP, you get the following error:

    Having server side logs would be useful at this point.
     
  15. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    You can enable debug logging for cpdavd. It requires logging in as root via SSH.

    edit /usr/local/cpanel/libexec/cpdavd
    change "debug => 0" to "debug => 1"
    save the file
    restart cpdavd

    These changes will be undone the next time cPanel & WHM updates.
     
  16. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I was able to switch on debugging, now I can see that the requests.

    Though at this time they do not offer any direction.
     
    #16 jpswade, Jun 18, 2012
    Last edited: Jun 18, 2012
  17. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    [Deleted message]
     
    #17 jpswade, Jun 18, 2012
    Last edited: Jun 18, 2012
  18. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've so far managed to conclude that by running the supplied "Secure WebDisk XP.vbs" file "as is" on Windows XP, you force it to use the older "Microsoft Data Access Internet Publishing Provider DAV 1.1", but this doesn't work as intended, it's not as fully featured as it's more modern counterpart.

    We want it to use "Microsoft-WebDAV-MiniRedir/5.1.2600" because this is newer and will work correctly, but for some reason unbeknown to me, cpdavd appears to return 207 Multi-Status response which is not understood by the client and prompts for a username/password again.
     
  19. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    As per the above, this is the "fix" for apache:

    LuluWARE

    However, I understand we're not using apache, we're using cpdavd/cpsrvd, so this can't be applied here, but the logic can.

    The /usr/local/cpanel/libexec/cpdavd file seems like a good place to start.
     
    #19 jpswade, Jun 19, 2012
    Last edited: Jun 19, 2012
  20. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    We will be updating this feature in 11.34 in order to provide a much more seemless experience on windows vista+

    Screen Shot 2012-06-19 at 8.03.11 AM.png
    Screen Shot 2012-06-19 at 8.03.19 AM.png
    Screen Shot 2012-06-19 at 8.03.23 AM.png
    Screen Shot 2012-06-19 at 8.05.20 AM.png
     
Loading...

Share This Page