Authenticate user login against FTP, IMAP or SMB.
Passwords are not stored locally; authentication always happens against the remote server.
It stores users and their display name in its own database table
users_external
.
When modifying the user_backends
configuration, you need to
update the database table's backend
field, or your users will lose
their configured display name.
If something does not work, check the log file at owncloud/data/owncloud.log
.
Authenticate ownCloud users against a FTP server.
You only need to supply the FTP host name or IP.
The second - optional - parameter determines if SSL should be used or not.
Add the following to config.php
:
'user_backends' => array(
array(
'class' => 'OC_User_FTP',
'arguments' => array('127.0.0.1'),
),
),
To enable SSL connections via ftps
, append a second parameter true
:
'user_backends' => array(
array(
'class' => 'OC_User_FTP',
'arguments' => array('127.0.0.1', true),
),
),
PHP automatically contains basic FTP support.
For SSL-secured FTP connections via ftps, the PHP openssl extension needs to be activated.
Authenticate ownCloud users against an IMAP server. IMAP user and password need to be given for the ownCloud login
Add the following to your config.php
:
'user_backends' => array(
array(
'class' => 'OC_User_IMAP',
'arguments' => array(
'{127.0.0.1:143/imap/readonly}', 'example.com'
),
),
),
This connects to the IMAP server on IP 127.0.0.1
, in readonly mode.
If a domain name (e.g. example.com) is specified, then this makes sure that
only users from this domain will be allowed to login. After successfull
login the domain part will be striped and the rest used as username in
ownCloud. e.g. '[email protected]' will be 'username' in ownCloud.
Read the imap_open PHP manual page to learn more about the allowed parameters.
The PHP IMAP extension has to be activated.
Utilizes the smbclient
executable to authenticate against a windows
network machine via SMB.
The only supported parameter is the hostname of the remote machine.
Add the following to your config.php
:
'user_backends' => array(
array(
'class' => 'OC_User_SMB',
'arguments' => array('127.0.0.1'),
),
),
The smbclient
executable needs to be installed and accessible within $PATH
.
Authenticate users by a WebDAV call. You can use any WebDAV server, ownCloud server or other web server to authenticate. It should return http 200 for right credentials and http 401 for wrong ones.
Attention: This app is not compatible with the LDAP user and group backend. This app is not the WebDAV interface of ownCloud, if you don't understand what it does then do not enable it.
The only supported parameter is the URL of the web server.
Add the following to your config.php
:
'user_backends' => array(
array(
'class' => '\OCA\User_External\WebDAVAuth',
'arguments' => array('https://example.com/webdav'),
),
),