mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 18:26:42 +07:00
77 lines
1.4 KiB
ReStructuredText
77 lines
1.4 KiB
ReStructuredText
Custom User Backend Configuration
|
|
=================================
|
|
|
|
Starting with ownCloud 4.5 is possible to configure additional user backends
|
|
in ownCloud's configuration file (config/config.php) using the following
|
|
syntax:
|
|
|
|
::
|
|
|
|
'user_backends'=>array(
|
|
array(
|
|
'class'=>...,
|
|
'arguments'=>array(...)
|
|
)
|
|
)
|
|
|
|
Currently the “External user support” (user_external) app supports the
|
|
provides the following user backends:
|
|
|
|
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')
|
|
)
|
|
)
|
|
|
|
|
|
|
|
SMB
|
|
~~~
|
|
|
|
Provides authentication against Samba servers
|
|
|
|
- **Class:**\ OC_User_SMB
|
|
- **Arguments:**\ the samba server to authenticate against
|
|
- **Example:**
|
|
|
|
::
|
|
|
|
'user_backends'=>array(
|
|
array(
|
|
'class'=>'OC_User_SMP',
|
|
'arguments'=>array('localhost')
|
|
)
|
|
)
|
|
|
|
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')
|
|
)
|
|
)
|
|
|
|
.. _here: http://www.php.net/manual/en/function.imap-open.php
|