Talk:Mod dav

From SME Server
Revision as of 16:35, 30 May 2009 by Mmccarn (talk | contribs)
Jump to navigationJump to search

30 May 2009

Windows Web Folders Client

Changes to 95Addmod_dav2ibays

--- ../95Addmod_dav2ibays       2009-05-30 08:37:53.000000000 -0400
+++ 95Addmod_dav2ibays  2009-05-30 11:32:12.000000000 -0400
@@ -24,10 +24,11 @@
                 $OUT .= "    IndexOptions FancyIndexing IconsAreLinks\n\n";
                 if ($properties{'Group'})
                 {
-                    $OUT .= "    AuthName \"$key\"\n";
+                    $OUT .= "    AuthName ".$properties{'Name'}."\n";
                     $OUT .= "    AuthType Basic\n";
                     $OUT .= "    AuthExternal pwauth\n\n";
-                    # Save groupname and find it in the group list
+                    $OUT .= "    <LimitExcept GET POST PROPFIND OPTIONS CONNECT>\n\n";
+                     # Save groupname and find it in the group list
                     $iBayGroup = $properties{'Group'};
                     foreach my $group ($adb->groups)
                     {
@@ -42,8 +43,8 @@
                             {
                                 # need to break user list on commas then output each one...
                                 my @values = split(',',$groupprops{'Members'});
-                                $OUT .= "    # Replace ibay name with any valid group member to validate\n";
-                                $OUT .= "    Require user ";
+                                $OUT .= "        # Replace ibay name with any valid group member to validate\n";
+                                $OUT .= "        Require user ";
                                 foreach my $val (@values) {
                                     $OUT .= $val . " ";
                                 }
@@ -59,10 +60,7 @@
                     }
                 }
                 # Ensure only valid users get to do stuff...
-                $OUT .= "    <Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>\n\n";
-                $OUT .= "        Allow from all\n";
-                $OUT .= "        Require valid-user\n\n";
-                $OUT .= "    </Limit>\n\n";
+                $OUT .= "    </LimitExcept>\n\n";
                 $OUT .= "</Directory>\n";
             }
         }

Older Notes

I was about to add the following to the article, but there seem to be some problems w/ the ibay support. (I'm putting this here so I don't lose my work).

Problems:

  1. the current ibay script does not set any "AuthName", so the ibays fail if you enable WebDav
  2. The group auth logic doesn't seem to work - it is based on the groups listed in 'db accounts' as groups - so there doesn't seem to be an easy way to authenticate using the ibay username and password (you have to create an empty group, then assign the ibay to that group using server-manager, which doesn't feel very intuitive to me...)

DAV Enabled Ibays

smeserver-mod_dav now provides dav-enabled i-bays (at least as of smeserver-mod_dav-0.1-15.el4.sme).

You can enable

Command Apache Directive Effect notes
db accounts setprop ibayname ModDav enabled [DAV On] Enable DAV for ibayname. If the ModDav property does not exist, or if it has any value other than "enabled", DAV is not enabled for this ibay.
db accounts setprop ibayname ModDav-FileETag "some values" [FileETag] Controls the FileEtag directive for ibayname. Read more at http://httpd.apache.org/docs/2.2/mod/core.html#fileetag
db accounts setprop ibayname Group groupname [Require-user] Authentication If groupname exists (in the accounts database) and has members, add all current members of the specified group as authorized users.
If groupname has no members (which is the case if you select the ibayname as the group name), set ibayname as the only authorized user.
If this keyword does not exist, then any local SME user can access ibayname using their own username and password.

Mmccarn 13:40, 16 September 2008 (UTC)


Text removed from the article:

This contrib can be found in the SME Dev repository. To install this contrib get shell access as root user and issue the following command:

yum install smeserver-mod_dav --enablerepo=smedev

Mmccarn 08:05, 20 November 2007 (MST)