summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-04-05 10:28:23 +0200
committerGitHub <noreply@github.com>2023-04-05 10:28:23 +0200
commitbd0f374cfdf81a4f3e6d0a78b9947137a5697846 (patch)
treeea61d514638e28b711ab166d0cee8d5cb20b045c
parent8f550398c4c882eed00f09d8e40b074183b8aa93 (diff)
parent51705da7a42b5a1a1028f6b4ced375ebf76a6d76 (diff)
downloadnextcloud-server-bd0f374cfdf81a4f3e6d0a78b9947137a5697846.tar.gz
nextcloud-server-bd0f374cfdf81a4f3e6d0a78b9947137a5697846.zip
Merge pull request #37575 from nextcloud/fix/user_ldap-log-suffix-names
Log a warning when a user or group is mapped with a suffix
-rw-r--r--apps/user_ldap/lib/Access.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index 1cc0c62ff1d..d3510e7a398 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -589,6 +589,15 @@ class Access extends LDAPUtility {
$altName = $this->createAltInternalOwnCloudName($intName, $isUser);
if (is_string($altName)) {
if ($this->mapAndAnnounceIfApplicable($mapper, $fdn, $altName, $uuid, $isUser)) {
+ $this->logger->warning(
+ 'Mapped {fdn} as {altName} because of a name collision on {intName}.',
+ [
+ 'fdn' => $fdn,
+ 'altName' => $altName,
+ 'intName' => $intName,
+ 'app' => 'user_ldap',
+ ]
+ );
$newlyMapped = true;
return $altName;
}