Go to file
Christian Weiske cd05354aaf user_external: Check if extensions are enabled before using them
This patch checks if the relevant functionality is actually available
before using it for authentication:

1. check if function imap_open() exists before using it
2. check if smbclient executable exists during smb auth
3. check if ftp/ftps stream wrappers are registered before
   using them for auth

This fixes a crash (white page) that happens when using IMAP authentication
and the IMAP extension is not installed.
2014-01-17 21:31:39 +01:00
2013-07-10 19:24:49 +03:00
2013-01-24 16:50:51 +01:00
2013-12-27 18:44:20 +01:00

External user authentication

Authenticate user login against FTP, IMAP or SMB.

Configuration

IMAP

Add the following to your config.php:

'user_backends' => array(
    array(
        'class' => 'OC_User_IMAP',
        'arguments' => array(
            '{127.0.0.1:143/imap/readonly}',
        ),
    ),
),

This connects to the IMAP server on localhost.

Read the imap_open PHP manual page to learn more about the allowed parameters.

Description
External user authentication methods like IMAP, SMB and FTP for Nextcloud
Readme 668 KiB
Languages
PHP 95.4%
Makefile 4.6%