Commit ac933eda authored by vogelor's avatar vogelor

The server-side of the webdav - support

parent 4994815b
......@@ -127,6 +127,10 @@ apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apac
a2enmod suexec rewrite ssl actions include
# If you want to use webdav then run the following to enable the Apache webdav modules:
a2enmod dav_fs a2enmod dav auth_digest
# restart apache before continuing
/etc/init.d/apache2 restart
......
......@@ -95,6 +95,10 @@ apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apac
a2enmod suexec rewrite ssl actions include
# If you want webdav then run the following to enable the Apache webdav modules:
a2enmod dav_fs a2enmod dav auth_digest
# restart apache before continuing
/etc/init.d/apache2 restart
......
......@@ -10,6 +10,11 @@ apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2
a2enmod suexec rewrite ssl actions include
# If you want webdav then run the following to enable the Apache webdav modules:
a2enmod dav_fs a2enmod dav auth_digest
apt-get install pure-ftpd-common pure-ftpd-mysql quota quotatool
vi /etc/default/pure-ftpd-common
......
......@@ -122,6 +122,10 @@ apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2
a2enmod suexec rewrite ssl actions include
# If you want webdav then run the following to enable the Apache webdav modules:
a2enmod dav_fs a2enmod dav auth_digest
# restart apache before continuing
/etc/init.d/apache2 restart
......
......@@ -96,8 +96,7 @@ $form["tabs"]['webdav'] = array (
),
'password' => array (
'datatype' => 'VARCHAR',
'formtype' => 'PASSWORD',
'encryption' => 'CRYPT',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'width' => '30',
......
......@@ -162,6 +162,13 @@
AssignUserId <tmpl_var name='system_user'> <tmpl_var name='system_group'>
</IfModule>
<IfModule dav>
# DO NOT REMOVE THE COMMENTS!
# IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
# WEBDAV BEGIN
# WEBDAV END
</IfModule>
<tmpl_var name='apache_directives'>
</VirtualHost>
......@@ -339,6 +346,13 @@
AssignUserId <tmpl_var name='system_user'> <tmpl_var name='system_group'>
</IfModule>
<IfModule dav>
# DO NOT REMOVE THE COMMENTS!
# IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
# WEBDAV BEGIN
# WEBDAV END
</IfModule>
<tmpl_var name='apache_directives'>
</VirtualHost>
</IfModule>
......
......@@ -40,7 +40,10 @@ class web_module {
'ftp_user_delete',
'shell_user_insert',
'shell_user_update',
'shell_user_delete');
'shell_user_delete',
'webdav_user_insert',
'webdav_user_update',
'webdav_user_delete');
//* This function is called during ispconfig installation to determine
// if a symlink shall be created for this plugin.
......@@ -82,6 +85,7 @@ class web_module {
$app->modules->registerTableHook('web_domain','web_module','process');
$app->modules->registerTableHook('ftp_user','web_module','process');
$app->modules->registerTableHook('shell_user','web_module','process');
$app->modules->registerTableHook('webdav_user','web_module','process');
// Register service
$app->services->registerService('httpd','web_module','restartHttpd');
......@@ -112,6 +116,11 @@ class web_module {
if($action == 'u') $app->plugins->raiseEvent('shell_user_update',$data);
if($action == 'd') $app->plugins->raiseEvent('shell_user_delete',$data);
break;
case 'webdav_user':
if($action == 'i') $app->plugins->raiseEvent('webdav_user_insert',$data);
if($action == 'u') $app->plugins->raiseEvent('webdav_user_update',$data);
if($action == 'd') $app->plugins->raiseEvent('webdav_user_delete',$data);
break;
} // end switch
} // end function
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment