Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 29.0.5): 29.0.7
Operating system and version (eg, Ubuntu 24.04): AlmaLinux release 8.10 (Cerulean Leopard)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.37
PHP version (eg, 8.3): 8.1.30
The issue you are facing:
When I connect through ENTRA SAML, it create a new user with mail address as home but there is already a profile with UID as home.
Is it possible to map existing users?
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Login with LDAP, it create a user if it not already exists
- Logout then Login with SAML auth and it will create a new user
The output of your Nextcloud log in Admin > Logging:
No error
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'xx',
'passwordsalt' => 'xx',
'secret' => 'xx',
'trusted_domains' =>
array (
0 => 'xx',
1 => 'xx',
),
'trusted_proxies' =>
array (
0 => 'xx',
),
'datadirectory' => '/DATA',
'dbtype' => 'mysql',
'version' => '29.0.7.1',
'overwrite.cli.url' => 'xx',
'dbname' => 'xx',
'dbhost' => 'xx',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'x',
'installed' => true,
'mail_from_address' => 'xx',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'xx',
'mail_smtphost' => 'xx',
'mail_smtpport' => '25',
'logfile' => '/var/log/nextcloud.log',
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/run/redis/redis.sock',
'port' => 0,
'timeout' => 0,
),
'filelocking.enabled' => true,
'default_phone_region' => 'FR',
'defaultapp' => 'files',
'default_language' => 'en',
'force_language' => 'en',
'knowledgebaseenabled' => false,
'session_lifetime' => 3600,
'enable_previews' => false,
'maintenance' => false,
'ldapUserCleanupInterval' => 32,
'loglevel' => 1,
'maintenance_window_start' => 1,
);
The output of your Apache/nginx/system log in /var/log/____
:
No apache error
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
no error