# ownCloud 7 Server Administration Manual

# Univention Corporate Server

Subscribers to the ownCloud Enterprise edition can also integrate with UCS.

## Pre configuration

ownCloud makes use of the UCR, the Univention Configuration Registry. The values are read during installation, most of them can be changed later, too. Changes done directly via ownCloud are not taken over to UCR. We think we found sane defaults, nevertheless you might have your own requirements. The installation script will listen to the UCR keys listed below. If want to override any default setting, simply add the key in question to the UCR and assign your required value.

Key | Default | Description | Introduced
--- | --- | --- | ---
owncloud/directory/data | /var/lib/owncloud | Specifies where the file storage will be placed | 2012.0.1
owncloud/db/name | owncloud | Name of the MySQL database. ownCloud will create an own user for it. | 2012.0.1
owncloud/user/quota | (empty) | The default quota, when a user is being added. Assign values in human readable strings, e.g. “2 GB”. Unlimited if empty. | 2012.0.1
owncloud/user/enabled | 0 | Whether a new user is allowed to use ownCloud by default. | 2012.0.1
owncloud/group/enabled | 0 | Whether a new group is allowed to be used in ownCloud by default. | 2012.4.0.4
owncloud/ldap/base/users | cn=users,$ldap_base | The users-subtree in the LDAP directory. If left blank it will fall back to the LDAP base. | 2012.4.0.4
owncloud/ldap/base/groups | cn=groups,$ldap_base | The groups-subtree in the LDAP directory. If left blank it will fall back to the LDAP base. | 2012.4.0.4
owncloud/ldap/groupMemberAssoc | uniqueMember | The LDAP attribute showing the group-member relationship. Possible values: uniqueMember, memberUid and member | 2012.4.0.4
owncloud/ldap/tls | 1 | Whether to talk to the LDAP server via TLS. | 2012.0.1
owncloud/ldap/disableMainServer | 0 | Deactivates the (first) LDAP Configuration | 5.0.9
owncloud/ldap/cacheTTL | 600 | Lifetime of the ownCloud LDAP Cache in seconds | 5.0.9
owncloud/ldap/UUIDAttribute | (empty) | Attribute that provides a unique value for each user and group entry. Empty value for autodetection. | 5.0.9

owncloud/ldap/loginFilter

(&(|(&(objectClass=posixAccount) (objectClass=shadowAccount)) (objectClass=univentionMail) (objectClass=sambaSamAccount) (objectClass=simpleSecurityObject) (&(objectClass=person) (objectClass=organizationalPerson) (objectClass=inetOrgPerson))) (!(uidNumber=0)) (!(uid=*$)) (&(uid=%uid) (ownCloudEnabled=1)))

The LDAP filter that shall be used when a user tries to log in.

2012.0.1

owncloud/ldap/userlistFilter

(&(|(&(objectClass=posixAccount) (objectClass=shadowAccount)) (objectClass=univentionMail) (objectClass=sambaSamAccount) (objectClass=simpleSecurityObject) (&(objectClass=person) (objectClass=organizationalPerson) (objectClass=inetOrgPerson))) (!(uidNumber=0))(!(uid=*$)) (&(ownCloudEnabled=1)))

The LDAP filter that shall be used when the user list is being retrieved (e.g. for sharing)

2012.0.1

owncloud/ldap/groupFilter | (&(objectClass=posixGroup) (ownCloudEnabled=1)) | The LDAP filter that shall be used when the group list is being retrieved (e.g. for sharing) | 2012.4.0.4
owncloud/ldap/internalNameAttribute | uid | Attribute that should be used to create the user’s owncloud internal name | 5.0.9
owncloud/ldap/displayName | uid | The LDAP attribute that should be displayed as name in ownCloud | 2012.0.1
owncloud/ldap/user/searchAttributes | uid,givenName,sn,description,employeeNumber,mailPrimaryAddress | Attributes taken into consideration when searching for users (comma separated) | 5.0.9
owncloud/ldap/user/quotaAttribute | ownCloudQuota | Name of the quota attribute. The default attribute is provided by owncloud-schema. | 5.0.9
owncloud/ldap/user/homeAttribute | (empty) | Attribute that should be used to create the user’s owncloud internal home folder | 5.0.9
owncloud/ldap/group/displayName | cn | The LDAP attribute that should be used as groupname in ownCloud | 2012.4.0.4
owncloud/ldap/group/searchAttributes | cn,description, mailPrimaryAddress | Attributes taken into consideration when searching for groups (comma separated) | 5.0.9
owncloud/join/users/update | yes | Whether ownCloud LDAP schema should be applied to existing users | 2012.0.1
owncloud/group/enableDomainUsers | 1 | Whether the group “Domain Users” shall be enabled for ownCloud on install | 2012.4.0.4

owncloud/join/users/filter

(&(|(&(objectClass=posixAccount) (objectClass=shadowAccount)) (objectClass=univentionMail) (objectClass=sambaSamAccount) (objectClass=simpleSecurityObject) (&(objectClass=person) (objectClass=organizationalPerson) (objectClass=inetOrgPerson))) (!(uidNumber=0)) (!(|(uid=*$) (uid=owncloudsystemuser) (uid=join-backup) (uid=join-slave))) (!(objectClass=ownCloudUser)))

Filters, on which LDAP users the ownCloud schema should be applied to. The default excludes system users and existing ownCloudUsers.

2012.0.1

owncloud/join/groups/filter | (empty) | Filters which LDAP groups will be en/disabled for ownCloud when running the script /usr/share/owncloud/update-groups.sh | 2012.4.0.4

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. The recommended method is by using the UCS App Center.

### UCS App Center

Open the Univention Management Console and choose the App Center module. You will see a variety of available applications, including ownCloud. You can install and upgrade ownCloud from the App Center.

## Postconfiguration (optional)

There is only one local admin user “owncloudadmin”, you can find the password in /etc/owncloudadmin.secret. Use this account, if you want to change basic ownCloud settings.

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 the PHP limits for file transfer are also specified.

## Using ownCloud

If you decided to enable every user by default to use ownCloud, simply open up http://myserver.com/owncloud/ and log in with your LDAP credentials and enjoy.

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.

Updating users can also be done by the script `/usr/share/owncloud/update-users.sh` . It takes the following UCR variables as parameters: owncloud/user/enabled for enabling or disabling, owncloud/user/quota as the Quota value and owncloud/join/users/filter as LDAP filter to select the users to update.

### Groups

Groups can be enabled and disabled via UCM as shown in the screen shot below.

Another way to enable or disable groups is to use the script `/usr/share/owncloud/update-groups.sh`. Currently, it takes an argument which can be 1=enable groups or 0=disable groups. The filter applied is taken from the UCR variable owncloud/join/groups/filter. If it is empty, a message will be displayed.