SAML and LDAP-Mapping

Nextcloud version (eg, 13.0.12):
Operating system and version (eg, Ubuntu 16.04):
Apache or nginx version (eg, Apache 2.4):
PHP version (eg, 7.0):

The issue you are facing:
Missing option for mapping existing LDP-user with data to saml

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Create user-account via LDAP-Log-In
  2. Create some data
  3. Enable user_saml-app
  4. Configure user_saml and test it
  5. Log-In using saml --> new account for the same user

The output of your Nextcloud log in Admin > Logging:


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

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'trusted_domains' =>
  array (

  ),
  'datadirectory' => '',
  'overwritewebroot' => '',
  'dbtype' => 'mysql',
  'version' => '13.0.12.1',
  'dbname' => '',
  'dbhost' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'defaultapp' => 'files',
  'theme' => '',
  'tempdirectory' => '',
  'maintenance' => false,
  'forcessl' => true,
  'mail_from_address' => '',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => '',
  'ldapIgnoreNamingRules' => false,
  'ldapUserCleanupInterval' => 4800,
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtphost' => '',
  'mail_smtpport' => '25',
  'session_lifetime' => 7200,
  'loglevel' => 3,
  'logtimezone' => 'Europe/',
  'enable_previews' => true,
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'trashbin_retention_obligation' => '60, auto',
  'activity_expire_days' => 30,
  'secret' => '',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'overwriteprotocol' => 'https',
  'filelocking.enabled' => true,
  'default_language' => '',
  'singleuser' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'overwrite.cli.url' => '',
);

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


Hello everybody,

we have an existing LDAP-System and now installed the app user_saml. We can log-in with saml but it creates a new account and the existing user data are not mapped. We are searching for days, in OC and NC-Forums solving this mapping-problem but without success. The manuals are not explicitely enough. The problem is familiar to the issue here, but we don’t want to change the core:

Can anybody help? Thanks.
Sincerely
Seal