nextcloud / user_external

👥 External user authentication methods like IMAP, SMB and FTP
https://apps.nextcloud.com/apps/user_external
108 stars 64 forks source link

Internal server error imap #99

Closed wabj closed 5 years ago

wabj commented 5 years ago

Hello,

I'm trying to use IMAP authentication but when I add the code to the config and then reload I get an Internal Server Error and no logs.

I've followed the manual and am running the latest version.

Please help!

violoncelloCH commented 5 years ago

Hi @wabj could you please fill in the issue tehplate? (there is a reason we have those; otherwise it's quite impossible to reproduce your issue without any information about your setup)

wabj commented 5 years ago

Apologies

Steps to reproduce

  1. Enable External User Support
  2. Edit Config with imap code
  3. Reload Nextcloud home page
  4. Internal Server Error page
  5. remove imap code, able to login as local user

My config code with private info redacted

<?php
$CONFIG = array (
  'instanceid' => 'redacted',
  'passwordsalt' => 'redacted',
  'secret' => 'redacted',
  'trusted_domains' => 
  array (
    0 => 'redacted',
  ),
  'datadirectory' => 'redacted',
  'dbtype' => 'mysql',
  'version' => '16.0.3.0',
  'overwrite.cli.url' => 'redacted',
  'htaccess.RewriteBase' => '/',
  'dbname' => 'redacted',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'redacted',
  'dbpassword' => 'redacted',
  'installed' => true,
);
'user_backends' => array(
    array(
        'class' => 'OC_User_IMAP',
        'arguments' => array(
            'outlook.office365.com', 993, ssl, 'redacted', true, false
        ),
    ),
),
wabj commented 5 years ago

Sorted it. I had the code in the wrong place!

violoncelloCH commented 5 years ago

cool that you figured out yourself! yes, it needs to be inside the main $CONFIG array paranthesis...

wabj commented 5 years ago

So silly of me!

One thing you might be able to help with. Is there anyway that the users email address is populated in their profile using the login details from IMAP authentication?

Sent from my iPhone.

On 9 Aug 2019, at 08:57, violoncello.chhttp://violoncello.ch notifications@github.com<mailto:notifications@github.com> wrote:

cool that you figured out yourself! yes, it needs to be inside the main $CONFIG array paranthesis...

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/user_external/issues/99?email_source=notifications&email_token=ACPC3PG22P6CLP77TR63RKTQDUPPFA5CNFSM4IKOFCS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD355OMY#issuecomment-519821107, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACPC3PBT5C7NIGIGZ5LO6UDQDUPPFANCNFSM4IKOFCSQ.

violoncelloCH commented 5 years ago

this is not yet implemented... see #12