use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_14531 method doUpgrade.
@Override
void doUpgrade() throws ServiceException {
Config config = prov.getConfig();
String value = "zimbraSync:(&(|(displayName=*)(cn=*)(sn=*)(gn=*)(mail=*)(zimbraMailDeliveryAddress=*)(zimbraMailAlias=*))(|(objectclass=zimbraAccount)(objectclass=zimbraDistributionList))(!(zimbraHideInGal=TRUE))(!(zimbraIsSystemResource=TRUE)))";
Map<String, Object> attr = new HashMap<String, Object>();
attr.put("+" + Provisioning.A_zimbraGalLdapFilterDef, value);
printer.println("Adding zimbraSync filter to global config " + Provisioning.A_zimbraGalLdapFilterDef);
prov.modifyAttrs(config, attr);
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_27075 method doGlobalConfig.
private void doGlobalConfig(ZLdapContext zlc) throws ServiceException {
Config config = prov.getConfig();
doEntry(zlc, config, "global config", AttributeClass.globalConfig);
doBug79208(config);
doBug83551(config);
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class RenameDomain method updateGlobalConfigSettings.
// TODO: should modify FlushCache to take more than one entry types, so that we
// can also flsuh the global config cache in the same request when we flush accounts.
private void updateGlobalConfigSettings(String curDefaultDomainName) {
try {
Config config = mProv.getConfig();
HashMap<String, Object> attrMap = new HashMap<String, Object>();
updateSystemAccount(config, Provisioning.A_zimbraNotebookAccount, attrMap);
updateSystemAccount(config, Provisioning.A_zimbraSpamIsSpamAccount, attrMap);
updateSystemAccount(config, Provisioning.A_zimbraSpamIsNotSpamAccount, attrMap);
updateSystemAccount(config, Provisioning.A_zimbraAmavisQuarantineAccount, attrMap);
String newDomainName = getNewDomain(curDefaultDomainName);
if (curDefaultDomainName != null && newDomainName != null)
attrMap.put(Provisioning.A_zimbraDefaultDomainName, newDomainName);
mProv.modifyAttrs(config, attrMap);
flushCacheOnAllServers(CacheEntryType.config);
} catch (ServiceException e) {
// just log it an continue
warn("failed to update system accounts on global config", e);
}
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_33814 method doGlobalConfig.
private void doGlobalConfig(ZLdapContext zlc) throws ServiceException {
Config config = prov.getConfig();
doEntry(zlc, config, "global config", AttributeClass.globalConfig);
}
use of com.zimbra.cs.account.Config in project zm-mailbox by Zimbra.
the class BUG_43779 method doUpgrade.
@Override
void doUpgrade() throws ServiceException {
Config config = prov.getConfig();
String[] value = { "zimbraGroupAutoComplete:(&(|(displayName=%s*)(cn=%s*)(sn=%s*)(gn=%s*)(mail=%s*)(zimbraMailDeliveryAddress=%s*)(zimbraMailAlias=%s*))(objectclass=zimbraDistributionList))", "zimbraGroupSync:(&(|(displayName=*%s*)(cn=*%s*)(sn=*%s*)(gn=*%s*)(mail=*%s*)(zimbraMailDeliveryAddress=*%s*)(zimbraMailAlias=*%s*))(objectclass=zimbraDistributionList))", "zimbraGroups:(&(|(displayName=*%s*)(cn=*%s*)(sn=*%s*)(gn=*%s*)(mail=*%s*)(zimbraMailDeliveryAddress=*%s*)(zimbraMailAlias=*%s*))(objectclass=zimbraDistributionList))" };
Map<String, Object> attr = new HashMap<String, Object>();
attr.put("+" + Provisioning.A_zimbraGalLdapFilterDef, value);
printer.println("Adding zimbraGroupAutoComplete, zimbraGroupSync, and zimbraGroups filters to global config " + Provisioning.A_zimbraGalLdapFilterDef);
prov.modifyAttrs(config, attr);
}
Aggregations