diff --git a/src/ldap.js b/src/ldap.js index f417bdc22..d4b5cf2f3 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: displayName, + cn: user.id, uid: user.id, entryuuid: user.id, // to support OpenLDAP clients mail: user.email,