Академический Документы
Профессиональный Документы
Культура Документы
Release 4.5
CONTENTS
Introduction
1.1 Target audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 Structure of this document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installation
2.1 Manual Installation . . . . . . . . . .
2.2 Linux Distributions . . . . . . . . . .
2.3 Other Web Servers . . . . . . . . . .
2.4 Mac OS X . . . . . . . . . . . . . .
2.5 Windows 7 and Windows Server 2008
2.6 Univention Corporate Server . . . . .
2.7 Appliances . . . . . . . . . . . . . .
1
1
1
.
.
.
.
.
.
.
3
3
5
7
9
10
15
20
Updating ownCloud
3.1 Update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21
21
21
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
23
23
24
27
27
28
28
28
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
29
29
30
30
30
31
31
33
33
33
34
35
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
ii
37
CHAPTER
ONE
INTRODUCTION
This is the administrators manual for ownCloud, a flexible, open source file sync and share solution. It comprises of
the ownCloud server, as well as client applications for Microsoft Windows, Mac OS X and Linux (Desktop Client)
and mobile clients for the Android and Apple iOS operating system.
Chapter 1. Introduction
CHAPTER
TWO
INSTALLATION
This chapter will introduce you to the installation of ownCloud in different scenarios.
If you want to just try ownCloud in a virtual machine without any configuration, skip ahead to the appliance section,
where you will find ready-to-use images.
2.1.1 Prerequisites
To run ownCloud, your webserver must have the following installed:
php5 (>= 5.3)
php5-gd
php-xml-parser
php5-intl
And as optional dependencies:
php5-sqlite (>= 3)
php5-mysql
smbclient
curl
libcurl3
php5-curl
You have to install at least one of php5-sqlite or php5-mysql, depending on which of the two database systems you
want to use.
smbclient is only used if you want to mount SMB shares to your ownCloud. The curl packages are needed for some
apps (e.g. http user authentication)
Commands for Ubuntu and Debian (run as root):
Todo
Document other distributions.
You dont need any WebDAV support of your webserver (i.e. apaches mod_webdav) to access your ownCloud data via
WebDAV, ownCloud has a WebDAV server built in. In fact, you should make sure that any built-in WebDAV module of
your webserver is disabled (at least for the ownCloud directory), as it can interfere with ownClouds built-in WebDAV
support.
Replace www-data:www-data with the user and group of the owner of your webserver.
Note: The data/ directory will only be created after setup has run (see below) and is not present by default in the
tarballs.
Chapter 2. Installation
2.2.1 Archlinux
There are two AUR packages for ownCloud:
stable version
development version
2.2.2 openSUSE
Note: ready-to-use SLES and openSUSE RPM packages are available in the openSUSE Build Service ownCloud
repository.
1. Copy ownCloud to Apaches server directory : /srv/www/htdocs
2. Give the web server the necessary permissions: sudo chown -R wwwrun owncloud
If you do not use sudo then you have to become root and execute: chown -R wwwrun owncloud
in the directory.
(If youre using mysql, you have to set the database character set to something else then utf~8, for example
latin1 otherwise some keys will be to long for mysql)
3. Open the folder in a browser and complete the setup wizard
If have followed the steps above and want to try it out, run this command in a terminal to start Apache if its not already
running:
1. sudo /etc/init.d/apache2 start
2. Go to http://servername/owncloud and walk through the setup.
2.2.3 Fedora
Note: ready-to-use RPM packages are available in the openSUSE Build Service ownCloud repository.
Make sure SELinux is disabled or else the installation process will fail with the following message: Config file
(config/config.php) is not writable for the webserver.
Configure Apache:
2.2. Linux Distributions
1. If you already have a website running from Document Root but would still like to install OwnCloud you can use
a Name-based virtual host entry and subdomain.
2. Edit your DNS record following this example: point owncloud.foo.com > ip.ip.ip.ip
Todo
2.2.5 Gentoo
Basically
do
everything
like
for
a
standard
web
server
(see
above).
permissions:
chown -R apache:apache owncloudAllow
.htaccess,
/etc/apache2/vhosts.d/00_default_vhost.conf and make sure this is in
Change
modify
<Directory /var/www/localhost/htdocs/owncloud>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Chapter 2. Installation
2.2.6 PCLinuxOS
Follow the Tutorial ownCloud, installation and setup on the PCLinuxOS web site.
# enforce https
# owncloud (ssl/tls)
server {
listen 443 ssl;
ssl_certificate /etc/nginx/certs/server.crt;
ssl_certificate_key /etc/nginx/certs/server.key;
server_name owncloud.example.org;
root /path/to/owncloud;
index index.php;
client_max_body_size 1000M; # set maximum upload size
# deny direct access
location ~ ^/(data|config|\.ht|db_structure\.xml|README) {
deny all;
}
# default try order
location / {
try_files $uri $uri/ @webdav;
}
# owncloud WebDAV
location @webdav {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_pass 127.0.0.1:9000; # or use php-fpm with: "unix:/var/run/php-fpm/php-fpm.sock;"
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Note: You can use Owncloud without SSL/TLS support, but we strongly encourage you not to do that:
Remove the server block containing the redirect
Change listen 443 ssl to listen 80;
Remove ssl_certificate and ssl_certificate_key.
Remove fastcgi_params HTTPS on;
Note: If you want to effectively increase maximum upload size you will also have to modify your php-fpm
configuration (usually at /etc/php5/fpm/php.ini) and increase upload_max_filesize and
post_max_size values. Youll need to restart php5-fpm and nginx services in order these changes to be applied.
Chapter 2. Installation
<server owncloud.myserver.com/>
port = 80
listen = 0.0.0.0
docroot = /var/www/owncloud/src
allowed_scripts = php
php_handler = <cgi, /usr/local/bin/php-cgi>
errormod_404 = yaws_404_to_index_php
access_log = false
dir_listings = false
<redirect>
/data == /
</redirect>
</server>
The apache .htaccess file that comes with ownCloud is configured to redirect requests to nonexistent pages. To
emulate that behaviour, you need a custom error handler for yaws. See this github gist for further instructions on how
to create and compile that error handler.
2.4 Mac OS X
Todo
This section of the manual needs to be revised.
This relies on MAMP, which provides the required environment.
1. Install MAMP and run it.
2. Go to Preferences ? Apache and set Document Root to /Users/<YOUR USER NAME>/Sites, so your
Sites directory will be used as Apache root.
3. Download ownCloud
4. Move it to ~/Sites and extract it: tar xfpj owncloud-4.5.tar.bz2
5. Now you can set it up by going to http://localhost:8888/owncloud
2.4. Mac OS X
10
Chapter 2. Installation
11
This should open the standard IIS 7 splash page, which is just a static image that says your web server is running.
Assuming you were able to get the splash page, it is safe to say your web server is now up and running.
Windows Server 2008
1. Go to Start > Control Panel > Programs.
2. Under Programs and Features, there is link titled Turn Windows Features on and Off. Click on it.
3. This will bring up the Server Manager.
4. In the server manager, Click on Roles, and then click Add Roles.
5. Use the Add Roles Wizard to add the web server role.
6. Make sure that, at a minimum, the same boxes are checked in this wizard that are checked in the Windows 7
Section. For example, make sure that the CGI box is checked under Application Development Features, and that
WebDAV Publishing is turned off. With Remote Desktop Sharing turned on, the detailed role service list looks
like the figure Role Services.
7. Restart IIS by going to the IIS manager (Start > IIS Manager).
8. Select your website, and on the far right side is a section titled Manage Server. Make sure that the service is
started, or click Start to start the services selected.
9. Once this is complete, you should be able to go to a web browser and type localhost. This should open the
standard IIS 7 splash page, which is just a static image that says your web server is running.Assuming you were
able to get the splash page, it is safe to say your web server is now up and running. The next part of this how
to installs PHP on the server.
Chapter 2. Installation
13
4. Select a standard configuration, as this will be the only version of MySQL on this machine.
5. Select to install as a windows service, and Check the Launch the MySQL Server Automatically button.
6. Select the modify security settings box on the next page, and enter a password you will remember. You will
need this password when you configure ownCloud.
7. Uncheck enable root access from remote machines for security reasons.
8. Click execute, and wait while the instance is created and launched.
9. Click Finish when this is all complete.
Take particular note of your MySQL password, as the user name root and the password you select will be necessary
alter on in the ownCloud installation. As an aside, this link is an excellent resource for questions on how to configure
your MySQL instance, and also to configure PHP to work with MySQL. This, however, is not strictly necessary as
much of this is handled when you download ownCloud.
More information in this topic can be found in a tutorial on the IIS web site.
14
Chapter 2. Installation
2.5.5 Configuring ownCloud, PHP and IIS for Large File Uploads
Before going too nuts on ownCloud, it is important to do a couple of configuration changes to make this a useful
service for you. You will probably want to increase the max upload size, for example. The default upload is set
to 2MB, which is too small for even most MP3 files.
To do that, simply go into your PHP.ini file, which can be found in your C:\Program Files (x86)\PHP
folder. In here, you will find a PHP.ini file. Open this in a text editor, and look for a few key attributes to change:
upload_max_filesize change this to something good, like 1G, and you will get to upload much larger
files.
post_max_size also change this size, and make it larger than the max upload size you chose, like 1G.
There are other changes you can make, such as the timeout duration for uploads, but for now you should be all set in
the PHP.ini file.
Now you have to go back to IIS manager and make one last change to enable file uploads on the web server larger than
30MB.
1. Go to the start menu, and type iis manager.
2. Open IIS Manager Select the website you want enable to accept large file uploads.
3. In the main window in the middle double click on the icon Request filtering.
4. Once the window is opened you will see a bunch of tabs across the top of the far right,
Select Edit Feature Settings and modify the Maximum allowed content length (bytes)
5. In here, you can change this to up to 4.1 GB.
Note: This entry is in BYTES, not KB.
You should now have ownCloud configured and ready for use.
2.6.1 Prerequisites
The ownCloud integration relies on the MySQL database. Since PostresSQL is more in a experimental state and
SQLite is not very well suited for multi-user installations, MySQL is the only way first of all. As of UCS 3.0 MySQL
is not part of the maintained repository. Hence you you should install it first and probably deactivate the unmaintained
repository eventually:
# ucr set repository/online/unmaintained="yes"
# univention-install mysql-server
# ucr set repository/online/unmaintained="no"
Note: If MySQL is already installed and/or a password for the user root is set, please make sure it is saved in
/etc/mysql.secret, otherwise you will experience problems.
15
In case you want to install ownCloud from the repository, it is already enough to enable the unmaintained repository
for MySQL. You can skip the rest of this section and read on at Pre configuration. ownCloud has further dependencies,
which all belong to the maintained repository. Install them as well:
# univention-install php5-mysql php5-ldap php5-gd
The package manager is going to remove libgd2-noxpm, which is not a problem and nothing to worry about.
Pre configuration
ownCloud makes use of the UCR, the Univention Configuration Registry. At the moment, the values are being read
during installation only. So you might want to change them here, but you can do it later from within ownCloud. For
a later version we plan to provide an own ownCloud module for the UMC (Univention Management Console). We
think we found sane defaults, nevertheless you might have your own requirements. The installation script will listen
to those UCR keys:In case you want to override any default setting, simply add the key in question to the UCR and
assign your required value.
Key
owncloud/directory/data
Default
/var/lib/owncloud
owncloud/db/name
owncloud
owncloud/user/quota
(empty)
owncloud/user/enabled
owncloud/group/enabled
owncloud/ldap/base/users
cn=users,$ldap_base
owncloud/ldap/base/groups
cn=groups,$ldap_base
owncloud/ldap/groupMemberAssoc
uniqueMember
owncloud/ldap/tls
16
Description
Introduced
Specifies where the file storage will 2012.0.1
be placed
Name of the MySQL database. 2012.0.1
ownCloud will create an own user
for it.
The default quota, when a user is 2012.0.1
being added. Assign values in human readable strings, e.g. 2 GB.
Unlimited if empty.
Wether a new user is allowed to use 2012.0.1
ownCloud by default.
Wether a new group is allowed to be 2012.4.0.4
used in ownCloud by default.
The users-subtree in the LDAP di- 2012.4.0.4
rectory. If left blank it will fall back
to the LDAP base.
The groups-subtree in the LDAP di- 2012.4.0.4
rectory. If left blank it will fall back
to the LDAP base.
The LDAP attribute showing the 2012.4.0.4
group-member relationship. Possible values: uniqueMember, memberUid and member
Whether to talk to the LDAP server 2012.0.1
via TLS.
Continued on next page
Chapter 2. Installation
Key
owncloud/ldap/loginFilter
owncloud/ldap/userlistFilter
owncloud/ldap/groupFilter
owncloud/ldap/displayName
owncloud/ldap/group/displayName
owncloud/join/users/update
owncloud/group/enableDomainUsers
owncloud/join/users/filter
17
Key
owncloud/join/groups/filter
If you want to override the default settings, simply create the key in question in the UCR and assign your required
value, for example ucr set owncloud/user/enabled=1 or via UMC:
Installation
Now, we are ready to install ownCloud. This can be either done through the ownCloud UCS repository or by downloading the packages.
Repository
To include the ownCloud UCS repository, you need to configure it using the UCR. To do so, just use the following
command:
ucr set update/secure_apt="no" \
repository/online/component/owncloud/description="ownCloud" \
repository/online/component/owncloud/server=download.owncloud.com \
repository/online/component/owncloud/prefix=ucs \
repository/online/component/owncloud/defaultpackages=owncloud \
repository/online/component/owncloud/version=current \
repository/online/component/owncloud=enabled
18
Chapter 2. Installation
Introduced
2012.4.0.4
# univention-install owncloud
If you want to make use of commercially unsupported packages, install the unsupported package:
# univention-install owncloud-unsupported
Manually by download
Download the integration packages (from our website or with wget as below) and install them from within your
download folder (note: the package owncloud-unsupported is optional):
#
#
#
#
wget
wget
wget
dpkg
http://download.owncloud.com/download/ucs/owncloud_2012.0.1-0_all.deb
http://download.owncloud.com/download/ucs/owncloud-schema_2012.0.3-0_all.deb
http://download.owncloud.com/download/ucs/owncloud-unsupported_2012.0.3-0_all.deb
-i owncloud*.deb
ownCloud will be configured to fully work with LDAP. There is only one local admin user owncloudadmin, you can
find his password in /etc/owncloudadmin.secret. Use this account, if you want to change basic ownCloud
settings.
Postconfiguration (optional)
In the installation process a virtual host is set up (Apache is required therefore). If you want to modify the settings, edit
/etc/apache2/sites-available/owncloud and restart the web server. You might want to do it to enable
HTTPS connections.Besides that, you can edit the .htaccess-File in /var/www/owncloud/. In the latter
file there are also the PHP limits for file transfer specified.
Using ownCloud
If you decided to enable every user by default to use ownCloud,
http://myserver.com/owncloud/ and log in with your LDAP credentials and enjoy.
simply
open
up
If you did not, go to the UMC and enable the users who shall have access (see picture below). Then, login at
http://myserver.com/owncloud/ with your LDAP credentials.
19
Groups 2012.4.0.4
Since ownCloud Enterprise 2012.4.0.4 group support is enabled. Groups, that are activated for ownCloud usage, can
be used to share files to instead of single users, for example. It is also important to note, that users can only share
within groups where they belong to. Groups can be enabled and disabled via UCM as shown in the screen shot below.
2.7 Appliances
If you are looking for virtual machine images, check the Software Appliances section. The Hardware Appliances
section is of interest for people seeking to run ownCloud on appliance hardware (i.e. NAS filers, routers, etc.).
20
Chapter 2. Installation
CHAPTER
THREE
UPDATING OWNCLOUD
3.1 Update
Update is to bring an ownCloud instance to its latest point release, e.g. ownCloud 4.0.6 4.0.7.To update an ownCloud installation manually, follow those steps:
1. Do a backup.
2. Unpack the release tarball in the owncloud directory, i.e. copy all new files into the ownCloud installation.
3. Make sure that the file permissions are correct.
4. With the next page request the update procedures will run.
5. If you installed ownCloud from a repository, your package management should take care of it.
3.2 Upgrade
Upgrade is to bring an ownCloud instance to a new major release, e.g. ownCloud 4.0.7 4.5.0. Always do backups
anyway.
To upgrade ownCloud, follow those steps:
1. Make sure that you ran the latest point release of the major ownCloud version, e.g. 4.0.7 in the 4.0 series. If not,
update to that version first (see above).
2. Do a backup.
3. Deactivate all third party applications.
4. Delete everything from your ownCloud installation directory, except data and config.
5. Unpack the release tarball in the owncloud directory (or copy the files thereto).
6. Make sure that the file permissions are correct.
7. With the next page request the update procedures will run.
8. If you had 3rd party applications, check if they provide versions compatible with the new release.
If so, install and enable them, update procedures will run if needed. 9. If you installed ownCloud from a repository,
your package management should take care of it. Probably you will need to look for compatible third party applications
yourself. Always do backups anyway.
21
22
CHAPTER
FOUR
23
24
25
Group Member association: The attribute that is used to indicate group memberships, i.e. the attribute used by
LDAP groups to refer to their users.
Example: uniquemember
Use TLS: Wether to use TLS encrypted connection to the LDAP server. In case you use SSL connections (via the
ldaps scheme) do not check it, it will fail.
Example: [ ]
Case insensitive LDAP server (Windows): Wether the LDAP server is running on a Windows Host
Example: [ ]
Turn off SSL certificate validation: Turns of check of valid SSL certificates. Use it if needed for testing, only!
Example: [ ]
User Display Name Field: The attribute that should be used as ownCloud user name. ownCloud allows a limited set
of characters (a-zA-Z0-9.-_@), every other character will be replaced in ownCloud. Once a user name is
assigned, it will not be changed, i.e. changing this value will only have effect to new LDAP users. The default,
uid, does not exist in AD, switch to cn, for example, otherwise you will not see any users.
Example: displayName
Group Display Name Field: The attribute that should be used as ownCloud group name. ownCloud allows a limited
set of characters (a-zA-Z0-9.-_@), every other character will be replaced in ownCloud. Once a group name is
assigned, it will not be changed, i.e. changing this value will only have effect to new LDAP groups.
Example: cn
Quota Attribute: ownCloud can read an LDAP attribute and set the user quota there from. Specify the attribute here,
otherwise keep it empty.
Example: ownCloudQuota
formerly Quota Field in ownCloud 4.0
Quota Default: Override ownCloud default quota for LDAP users who do not have a quota set in the attribute given
above.
Example: 15 GB
Email Attribute: ownCloud can read an LDAP attribute and set the user email there from. Specify the attribute here,
otherwise keep it empty.
Example: email
Cache Time-To-Live: We introduced a cache to avoid unnecessary LDAP traffic, for example lookups check whether
the users exists on every page request or WebDAV interaction. It is also supposed to speed up the Admin
User page or list of users to share with, once it is populated. Changing this setting empties the Cache. The time
is given in seconds.
Example (10 min): 600
User Home Folder Naming Rule: By default, the ownCloud creates the user directory, where all files and meta data
are kept, according to the ownCloud user name. You may want to override this setting and name it after an
attributes value. The attribute given can also return an absolute path, e.g. /mnt/storage43/alice .
Leave it empty for default behaviour.
Example: cn
26
27
4.7 Caching
For performance reasons a cache has been introduced to ownCloud. He we store all users and groups, group memberships or internal userExists-requests. Since ownCloud is written in PHP and each and every page request (also
done by Ajax) loads ownCloud and would execute one or more LDAP queries again, you do want to have some of
those queries cached and save those requests and traffic. It is highly recommended to have the cache filled for a small
amount of time, which comes also very handy when using the sync client, as it is yet another request for PHP.
28
CHAPTER
FIVE
5.1 Example
<?php
return array(
group=>array(
admin=>array(
/$user/files/Admin_Stuff=>array(
class=>OC_Filestorage_Local,
options=>array(...)
),
),
),
user=>array(
all=>array(
/$user/files/Pictures=>array(
class=>OC_Filestorage_DAV,
options=>array(...)
),
),
someuser=>array(
/someuser/files/Music=>array(
class=>OC_Filestorage_FTP,
29
options=>array(...)
),
),
)
);
5.1.1 Backends:
Note: You must ensure that the web server has sufficient permissions on the folder.
5.3 FTP
The FTP backend mounts a folder on a remote FTP server into the virtual filesystem and is part of the External storage
support app, the class to be used is OC_Filestorage_FTP and takes the following options:
host: the hostname of the ftp server.
user:the username used to login on the ftp server
password: the passwordt to login on the ftp server
secure: whether to use ftps:// to connect to the ftp server instead of ftp:// (optional, defaults to false)
root: the folder inside the ftp server to mount (optional, defaults to /)
array( class=>OC_Filestorage_FTP,
options=>array (
host=>ftp.myhost.com,
user=>johndoe,
password=> secret,
root=>/Videos)
)
5.4 WebDAV
The WebDAV backend mounts a folder on a remote WebDAV server into the virtual filesystem and is part of the
External storage support app, the class to be used is OC_Filestorage_DAVand takes the following options:
host: the hostname of the webdav server.
user: the username used to login on the webdav server
30
5.6 SMB
The SMB backend mounts a folder on a remote Samba server, a NAS appliance or a Windows machine into the virtual
file system. It is part of the External storage support app, the class to be used is OC_Filestorage_SMB and takes
the following options:
host: the host name of the samba server.
user: the user name used to login on the samba server
password: the password to login on the samba server
share: the share on the samba server to mount
root: the folder inside the samba share to mount (optional, defaults to /)
Note: The SMB backend requires smbclient to be installed on the server.
31
array( class=>OC_Filestorage_SMB,
options=>array (
host=>myhost.com,
user=>johndoe,
password=> secret,
share=>/test,
/Pictures )
)
32
CHAPTER
SIX
Currently the External user support (user_external) app supports the provides the following user backends:
6.1 IMAP
Provides authentication against IMAP servers
Class:OC_User_IMAP
Arguments:a mailbox string as defined here
Example:
user_backends=>array(
array(
class=>OC_User_IMAP,
arguments=>array({imap.gmail.com:993/imap/ssl}INBOX)
)
)
6.2 SMB
Provides authentication against Samba servers
Class:OC_User_SMB
Arguments:the samba server to authenticate against
Example:
33
user_backends=>array(
array(
class=>OC_User_SMP,
arguments=>array(localhost)
)
)
6.3 FTP
Provides authentication against FTP servers
Class:OC_User_FTP
Arguments:the FTP server to authenticate against
Example:
user_backends=>array(
array(
class=>OC_User_FTP,
arguments=>array(localhost)
)
)
34
CHAPTER
SEVEN
35
36
CHAPTER
EIGHT
37