Koozali.org: home of the SME Server

Open a WebDAV folder directly from html code, SOLUTION!

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« on: August 05, 2006, 12:01:18 PM »
I've followed the excact steps discribed here:

http://no.longer.valid/phpwiki/index.php/How%20to%20install%20mod_dav%20on%20SME%207.x

but afterwards, when i browse http://server/data or http://server/storage
(these are the ibays i've created) i keep getting the message:

Information Bay
This information bay has not yet been customized.



This is the html file in the html folder. Removing this file gives me:

Information Bay
This information bay has not yet been customized.


Please tell me what i'm doing wrong...  :-? orwhich part I'm missing here...  :roll:

Offline JonB

  • *
  • 351
  • +0/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #1 on: August 05, 2006, 01:47:00 PM »
Quote
Please tell me what i'm doing wrong...  orwhich part I'm missing here...


Try refreshing your browser cache. ctrl - f5 in IE.

Jon
...

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #2 on: August 05, 2006, 02:50:52 PM »
no change, even tried it on other computers in the workgoup and all the same results:

Information Bay
This information bay has not yet been customized.


By the way, what is the way to open the webdav dir? just use the url to point to the directory?

e.g. http://server/data/ ? in that case it opens the html folder in the data folder containing the index.html..

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #3 on: August 05, 2006, 02:58:16 PM »
Quote from: "nitsua"
no change, even tried it on other computers in the workgoup and all the same results:

Information Bay
This information bay has not yet been customized.


By the way, what is the way to open the webdav dir? just use the url to point to the directory?

e.g. http://server/data/ ? in that case it opens the html folder in the data folder containing the index.html..
Delete the index.html file in the html forlder of the ibay.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #4 on: August 05, 2006, 03:02:52 PM »
that will bring me this message:

You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.

--------------------------------------------------------------------------------

If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the  home page.

You can click  Search to look for information on the Internet.

HTTP Error 403 - Forbidden
Internet Explorer  


And other workstations will bring up this message:

FORBIDDEN

You don't have permission to access /data/ on this server

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #5 on: August 05, 2006, 03:07:41 PM »
Quote from: "nitsua"
that will bring me this message:

You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.

--------------------------------------------------------------------------------

If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the  home page.

You can click  Search to look for information on the Internet.

HTTP Error 403 - Forbidden
Internet Explorer  
I hav e never been a big fan of installing software in an ibay. I am in favour of creating a custom template in the httpd.conf section to make a seperate section where you can fully configure the share, this is also the adviced route for developing applications if I a=understood everythin correctly.

Did you foll0ow the howto to the letter? Also the sction which states what the access settings should be?
Quote
User access via file sharing or user ftp write=group, read=group
Public access via web or anonymous ftp entire internet, no password required
Execution of dynamic content disabled
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #6 on: August 09, 2006, 02:54:36 PM »
I've followed the exact procedure to install mod_dav, including

Quote
User access via file sharing or user ftp write=group, read=group
Public access via web or anonymous ftp entire internet, no password required
Execution of dynamic content disabled


and still when I browse http://server/data/ I get the message "You are not authorized to view this page".

Are there other permissions I need to check before I can use the webdav ibay? and is this the way to get acess to a webdav folder?

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #7 on: August 09, 2006, 03:29:35 PM »
How you can access a WebDAV share:
Windows XP users can create a connection in My Network Places to either https://yoursite.org/webshare or http://yoursite.org/webshare

Apple OS X 10.4.2 users can connect using “Go”, “Connect to Server”, then entering https://yoursite.org/webshare.

Apple OS X 10.0 through 10.4.1 must download the “Goliath” WebDAV client from http://www.webdav.org/goliath/installs/Goliath1_0_.dmg.gz

iCal can be pointed directly at the webdav share as described at the bottom of the original webdav howto: http://no.longer.valid/phpwiki/index.php/How%20to%20install%20mod_dav

Listing the directory in a browser depends on the "Indexes" directive in httpd.conf; I don't know the default value of this setting for most Ibays.

More Notes
The SME 7 WebDAV "How-To" provides unsecured (public) access to your WebDAV share.  If you want secured access you'll need to customize httpd.conf.  This post http://forums.contribs.org/index.php?topic=32078.msg135245#msg135245 describes the changes necessary in SME 6.0.1; step 3 on controlling webdav directory access rights should work on SME 7.  Alternatively, you could learn how to use ".htaccess" to secure each folder.

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #8 on: August 09, 2006, 04:04:19 PM »
it's strange, I've followed all the steps described in the How-to, wich should lead me to unsecured webaccess of my ibay.. unfortunately, it just doesn't work.. thing is, I'm a nood at linux, so I've now idea where to start or what to check.. Maybe this webdav is a little out of my league.. hehe still thnx for the replying!!

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #9 on: August 11, 2006, 02:37:51 PM »
I've given it another try and this is where i get stuck:

I finished the how-to on how to set up mod-dav for sme7.x.
I now have a ibay called "data" which is supposed to work as a web-dav folder. Inside the data folder there are the usual ibay folders cgi-bin, files and html.

I can connect to the ibay by putting a index.html file in the html folder. By pointing my webbrowser to http://server/data will give me this website.

But when i remove this index.html file, I cannot list the webdir anymore. I get the message:

Forbidden
You don't have permission to access /data/ on this server.

So my conclusion is that there's something wrong with the listing if the directory (the "Indexes" directive in httpd.conf) discribed by mmccarn two posts above this one.. Is this the correct conclusion and could someone provide me the info on how to correct this?

kind regards!

[edit] if i set Execution of dynamic content (CGI, PHP, SSI) to enabled, i will see the context of the html folder, but not in webdav style, just like a dir. listing. [/edit]

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #10 on: August 11, 2006, 04:02:32 PM »
I forgot to mention that the "Indexes" directive requires "Execution of dynamic content"...

Now, to use it in "webdav" mode -

Windows XP:
  - "My Network Places"
  - select "Add a network place"
  - "Next"
  - "Choose another network location"
  - "http://server/data"

You'll be prompted for a username and password - leave blank if you're using open access; use the ibay name and password if you're using normal "password" security in the ibay; use whatever username and password you've enabled if you're using custom templates or .htaccess

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #11 on: August 11, 2006, 04:32:14 PM »
GREAT! that is working now!
but how can i access this folder by only using internet explorer then? what i mean is:

i want users to browse to www.myserverdomain.nl/data and then type in there username and pass and browse the webdav folder.
so basically without setting up the folder through "my network places" and map the network drive..

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #12 on: August 11, 2006, 04:37:53 PM »
All you can do with Internet Explorer is browse & download - the same functionality you saw after turning on executable content.

There are some "document management" packages you can load up on a SME box that give let users download or checkout documents, upload changes, maintain multiple versions of documents, etc, etc - I've played with several but never actually used any...

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #13 on: August 11, 2006, 04:40:27 PM »
If you want them to have to enter their own username and password, you'll also have to setup some custom template fragments.  See the link I posted earlier under "More Notes" on Aug 9.

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #14 on: August 11, 2006, 05:05:45 PM »
hmmm. what I want is easy access to my webdav folder using internet explorer.. Maybe i should drop the user authentication, but at this point i just do not know how to enter the webdav folder without first mapping it to a network drive.

The reason is because:

when people are at work, on university etc there is no way to map a network drive. because of that, i just want people to be able to put their work from home (behind SME) into the ibay, travel to uni/work, browse www.mysmeserver.nl/data and have access to their files..

I think i'm not very clear in discribing what i really want, but maybe this should explain it better....

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #15 on: August 11, 2006, 05:50:08 PM »
Internet Explorer (v6, anyway) only offers read-only access to webdav shares.

To get read-write access you must have some other client software.

If the Windows "Web Folders" capability is being blocked by system admins, perhaps you can find another webdav client that is not being blocked.

Here's a link to a java-only webdav client: http://sourceforge.net/projects/skunkdav/  I know nothing about java, but perhaps you could create a link on your server that allows users to download and run the client, thereby allowing them to access their webdav folder...

If I were a system admin who was blocking "web folders" in Windows XP, I'd also be blocking executable downloads, though, so this may not help...

If your users can install software on their work systems, you could turn on "shell" access on the SME box, then give them all "WinSCP" to allow easy access to their personal ibay on the SME server.  I think WinSCP includes a folder synchronization mode...

Novell's "iFolder" project looks interesting to me - if you can load software it allows you to setup local folders that automatically synchronize to your server; if you can't load any software locally it includes an ASP interface that allows browsing, downloading, and uploading of info that will then automatically synchronize to the systems on which you have installed the client (if any)...

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #16 on: August 11, 2006, 06:06:06 PM »
hmm. that doesn't sound nice ;)..

but how is this then made:


It's my university webfolder which is the exact same system i want to make. The reason for me to make the same system is because there's a quota of 200M on this folder.

Access to my webfolder is by a link, which after clicking on it, prompts a user/pass screen. When i've entered it, it opens a webdav like window in Internet explorer which allows me to cut/paste/copy/overwrite etc.

Is this really not possible with SME and apache?

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #17 on: August 11, 2006, 07:21:38 PM »
Blackboard uses Xythos Web File Server http://www.xythos.com/home/xythos/news/xythos_news_2002-09-17b.html

I can't find any unambiguous statement to this effect, but the link in your post must be running a javascript, java, or asp program of some sort that is the "webdav" client I mentioned.

Gotta go now; I'll look some more later!

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #18 on: August 11, 2006, 11:01:01 PM »
thnx mmccarn,

I really appreciate your help! I'm now looking for all kinds of client side webdav scripts, but cannot find one as simple and easy as the one displayed in my screenshot.

I did find this page, click, with some overview of webdav clients. Infortunately, most of the opensource devellopments dont provide screenshots..

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #19 on: August 11, 2006, 11:02:00 PM »
thnx mmccarn,I really appreciate your help!

Mean while I'm looking for all kinds of client side webdav scripts, but cannot find one as simple and easy as the one displayed in my screenshot.
I did find this page, click, with some overview of webdav clients. Infortunately, most of the opensource devellopments dont provide screenshots..

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #20 on: August 14, 2006, 08:16:57 PM »
mmccarn, did you find any more information?
I think that the websharing functionability of ISS is exactly what we're looking for... This is ms though..  :evil:

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #21 on: August 16, 2006, 03:17:12 PM »
i assume, mmccarn, that you didn't find any other solution.. Is there maybe someone else who could help me out here? 1000 thnx!

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #22 on: August 20, 2006, 09:57:56 PM »
AIGHT! got it ;)

And remarkably easy:

To open a webdav folder directly from html code, use the following:

Code: [Select]
<html>

<head>
<title>Web Folder Sample Site</title>
 <STYLE>
 a {behavior: url(#default#AnchorClick);}
 </STYLE>
</head>

<body>
<a href="http://www.google.com/">Link to Google</a> (Normal Link)
<br />
<a href="" folder="http://localhost/data/">Data Folder</a> (Web Folder Link)
</body>

</html>


Source:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors/reference/behaviors/anchor.asp
and
http://www.aspheute.com/artikel/20030203.htm (german)
and
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors/overview/WebFolder.asp

Still thnx for all the replies, and btw. this solution is IE only!

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #23 on: August 21, 2006, 03:11:30 PM »
Fabulous!

Sorry I disappeared, but glad you worked it out!