Files
nextcloud-docs/admin_manual/configuration/custom_user_backend.rst
j-ed f45ab86650 Update admin_manual/configuration/custom_user_backend.rst
improved example code to exactly match the required syntax.
2013-02-14 19:21:50 +01:00

86 lines
1.8 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:
.. code-block:: php
<?php
"user_backends" => array (
0 => array (
"class" => ...,
"arguments" => array (
0 => ...
),
),
),
Currently the “External user support” (user_external) app provides the following user backends:
IMAP
----
Provides authentication against IMAP servers
- **Class:** OC_User_IMAP
- **Arguments:** a mailbox string as defined `in the PHP documention <http://www.php.net/manual/en/function.imap-open.php>`_
- **Example:**
.. code-block:: php
<?php
"user_backends" => array (
0 => array (
"class" => "OC_User_IMAP",
"arguments" => array (
0 => '{imap.gmail.com:993/imap/ssl}'
),
),
),
SMB
---
Provides authentication against Samba servers
- **Class:** OC_User_SMB
- **Arguments:** the samba server to authenticate against
- **Example:**
.. code-block:: php
<?php
"user_backends" => array (
0 => array (
"class" => "OC_User_SMB",
"arguments" => array (
0 => 'localhost'
),
),
),
FTP
~~~
Provides authentication against FTP servers
- **Class:** OC_User_FTP
- **Arguments:** the FTP server to authenticate against
- **Example:**
.. code-block:: php
<?php
"user_backends" => array (
0 => array (
"class" => "OC_User_FTP",
"arguments" => array (
0 => 'localhost'
),
),
),