use of com.zimbra.cs.account.ldap.entry.LdapConfig in project zm-mailbox by Zimbra.
the class LdapProvisioning method getConfig.
@Override
public synchronized Config getConfig() throws ServiceException {
if (cachedGlobalConfig == null) {
String configDn = mDIT.configDN();
try {
ZAttributes attrs = helper.getAttributes(LdapUsage.GET_GLOBALCONFIG, configDn);
LdapConfig config = new LdapConfig(configDn, attrs, this);
if (useCache) {
cachedGlobalConfig = config;
} else {
return config;
}
} catch (ServiceException e) {
throw ServiceException.FAILURE("unable to get config", e);
}
}
return cachedGlobalConfig;
}
Aggregations