Fix import of contacts

This commit is contained in:
Sven Feyerabend
2021-05-26 17:07:30 +02:00
parent 256c887d8f
commit 19d3b30c93
4 changed files with 8 additions and 5 deletions

View File

@@ -100,7 +100,7 @@ module.exports = ContactsController = {
// get user data
try {
// if you need an client.bind do it here.
const {searchEntries,searchReferences,} = await client.search(ldap_base, {scope: 'sub',filter: process.env.LDAP_USER_FILTER ,});
const {searchEntries,searchReferences,} = await client.search(ldap_base, {scope: 'sub',filter: process.env.LDAP_CONTACT_FILTER ,});
await searchEntries;
for (var i = 0; i < searchEntries.length; i++) {
var entry = new Map()