cd05354aaff7deb44d46718ad8ffa5d1b65b4539
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.
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
Languages
PHP
95.4%
Makefile
4.6%