add openldap compat

apps like firefly-iii seem to require these fields when using the
openldap driver
This commit is contained in:
Girish Ramakrishnan
2020-01-05 15:14:44 -08:00
parent 837c8b85c2
commit 602b335c0e
+2 -1
View File
@@ -143,10 +143,11 @@ function userSearch(req, res, next) {
var obj = {
dn: dn.toString(),
attributes: {
objectclass: ['user'],
objectclass: ['user', 'inetorgperson', 'person' ],
objectcategory: 'person',
cn: entry.id,
uid: entry.id,
entryuuid: entry.id, // to support OpenLDAP clients
mail: entry.email,
mailAlternateAddress: entry.fallbackEmail,
displayname: displayName,