Files
ocis/extensions/storage/users.md
T
Pascal Wengerter 39b9003a1b commit f28ee8ac6e
Merge: 32674c2e 81c57ee7
Author: Pascal Wengerter <pwengerter@owncloud.com>
Date:   Mon Apr 19 15:11:34 2021 +0100

    Merge pull request #1932 from owncloud/19042021_fix-broken-docs-links

    [docs-only] Fix a bunch of broken links within the docs
2021-04-19 14:13:43 +00:00

1.6 KiB

title, date, weight, geekdocRepo, geekdocEditPath, geekdocFilePath
title date weight geekdocRepo geekdocEditPath geekdocFilePath
Users 2020-01-16T00:00:00+00:00 35 https://github.com/owncloud/ocis edit/master/docs/extensions/storage users.md

Demo driver

This is a simple user driver for testing. It contains three users:

einstein:relativity
marie:radioactivity
richard:superfluidity

In order to use the demo driver you need to export the relevant environment variable:

export STORAGE_USERS_DRIVER=demo

JSON driver

In order to switch from the ldap driver to JSON based users you need to export the relevant environment variables:

export STORAGE_USERS_DRIVER=json
export STORAGE_USERS_JSON=/path/to/users.json

For the format of the users.json have a look at the reva examples

LDAP driver

This is the default user driver.

If the below defaults don't match your environment change them accordingly:

export STORAGE_LDAP_HOSTNAME=localhost
export STORAGE_LDAP_PORT=9126
export STORAGE_LDAP_BASE_DN='dc=example,dc=org'
export STORAGE_LDAP_USERFILTER='(&(objectclass=posixAccount)(cn=%s))'
export STORAGE_LDAP_GROUPFILTER='(&(objectclass=posixGroup)(cn=%s))'
export STORAGE_LDAP_BIND_DN='cn=reva,ou=sysusers,dc=example,dc=org'
export STORAGE_LDAP_BIND_PASSWORD=reva
export STORAGE_LDAP_SCHEMA_UID=uid
export STORAGE_LDAP_SCHEMA_MAIL=mail
export STORAGE_LDAP_SCHEMA_DISPLAYNAME=sn
export STORAGE_LDAP_SCHEMA_CN=cn

Then restart the bin/storage users and bin/storage auth-basic services for the changes to take effect.