From ef0f9c5298db8856a0015c74d0c3bd2f11ce363f Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 18 Feb 2022 17:31:02 +0100 Subject: [PATCH] Fixup cn attribute for ldap to be according to spec Bring back b54c4bb399a06ead76690040bfea15f84d2b1886 --- src/ldap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ldap.js b/src/ldap.js index 5aaca7eb2..0fa4540d1 100644 --- a/src/ldap.js +++ b/src/ldap.js @@ -172,7 +172,7 @@ async function userSearch(req, res, next) { attributes: { objectclass: ['user', 'inetorgperson', 'person', 'organizationalperson', 'top' ], objectcategory: 'person', - cn: user.id, + cn: displayName, uid: user.id, entryuuid: user.id, // to support OpenLDAP clients mail: user.email,