Files
opencloud/docs/users.md
Artur Neumann 903cd2860a fix user related documentation (#138)
* fix docs: ldap is the default REVA_USERS_DRIVER

* fix docs: update LDAP defaults
2020-04-21 10:13:08 +02:00

1.5 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-reva edit/master/docs users.md

Demo driver

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

einstein:relativity
marie:radioactivty
richard:superfluidity

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

export REVA_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 REVA_USERS_DRIVER=json
export REVA_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 REVA_LDAP_HOSTNAME=localhost
export REVA_LDAP_PORT=9126
export REVA_LDAP_BASE_DN='dc=example,dc=org'
export REVA_LDAP_USERFILTER='(&(objectclass=posixAccount)(cn=%s))'
export REVA_LDAP_GROUPFILTER='(&(objectclass=posixGroup)(cn=%s))'
export REVA_LDAP_BIND_DN='cn=reva,ou=sysusers,dc=example,dc=org'
export REVA_LDAP_BIND_PASSWORD=reva
export REVA_LDAP_SCHEMA_UID=uid
export REVA_LDAP_SCHEMA_MAIL=mail
export REVA_LDAP_SCHEMA_DISPLAYNAME=sn
export REVA_LDAP_SCHEMA_CN=cn

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