users: cannot edit groups with external ldap group sync

This commit is contained in:
Girish Ramakrishnan
2024-01-20 00:11:10 +01:00
parent 9ef29343b3
commit a1fd5bb996
2 changed files with 13 additions and 4 deletions

View File

@@ -21,8 +21,9 @@ const apps = require('./apps.js'),
branding = require('./branding.js'),
constants = require('./constants.js'),
debug = require('debug')('box:dashboard'),
eventlog = require('./eventlog.js'),
dns = require('./dns.js'),
externalLdap = require('./externalldap.js'),
eventlog = require('./eventlog.js'),
Location = require('./location.js'),
mailServer = require('./mailserver.js'),
platform = require('./platform.js'),
@@ -56,6 +57,8 @@ async function clearLocation() {
async function getConfig() {
const ubuntuVersion = await system.getUbuntuVersion();
const profileConfig = await users.getProfileConfig();
const externalLdapConfig = await externalLdap.getConfig();
const { fqdn:adminFqdn, domain:adminDomain } = await getLocation();
// be picky about what we send out here since this is sent for 'normal' users as well
@@ -74,6 +77,7 @@ async function getConfig() {
features: appstore.getFeatures(),
profileLocked: profileConfig.lockUserProfiles,
mandatory2FA: profileConfig.mandatory2FA,
ldapGroupsSynced: externalLdapConfig.syncGroups
};
}