Nextcloud freenas integration for access through a VPN portal

Nextcloud version (eg, 18.0.2): 19.0.3
Operating system and version (eg, Ubuntu 20.04): windows 10 with nextcloud inside a docker

The issue you are facing:
I’m trying to run nextcloud as a visual browser for my freenas smb storage, and have that portal accessible only through a VPN portal my router creates for the users.
2 issues I’m currently facing:

  1. and this is the biggest issue, my users will have to get another username and password setup, instead, I want to use the username and password of freenas.
  2. when I log in with the admin account I created I can’t access the external storage smb shares that I can from the computer that’s running the docker.

Is this the first time you’ve seen this error? (Y/N):
Y
Steps to replicate it:

  1. create smb share in external storage
  2. try to access it from a trusted domain web browser
  3. try to enter the smb subfolders of the share

The output of your Nextcloud log in Admin > Logging:

Error	PHP	Undefined offset: 1 at /var/www/html/apps/files_external/lib/Lib/Storage/SMB.php#219

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

  GNU nano 3.2                                           config.php                                                     
<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'ocx2dwmq7opu',
  'passwordsalt' => 'eyus24pDSyg4HpX7nPrSnSm3JRfdv3',
  'secret' => 'Uy8eUhDTzqh34IlGv6cCPx3GwYJf4aKpQutwVaHTwskc7m1g',
  'trusted_domains' =>
  array (
    0 => 'localhost:8089',
    1 => '255.255.255.255:8089',
    2 => '10.0.0.100:8089',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'sqlite3',
  'version' => '19.0.3.1',
  'overwrite.cli.url' => 'http://localhost:8089',
  'installed' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

no one can help with this?