| | |
| | | import org.opends.server.admin.std.server.GlobalCfg; |
| | | import org.opends.server.admin.std.server.RootCfg; |
| | | import org.opends.server.admin.server.ServerManagementContext; |
| | | import org.opends.server.api.IdentityMapper; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.types.AcceptRejectWarn; |
| | | import org.opends.server.types.ConfigChangeResult; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.InitializationException; |
| | | import org.opends.server.types.Privilege; |
| | | import org.opends.server.types.ResultCode; |
| | |
| | | DirectoryServer.setCheckSchema(globalConfig.isCheckSchema()); |
| | | |
| | | DirectoryServer.setDefaultPasswordPolicyDN( |
| | | globalConfig.getDefaultPasswordPolicy()); |
| | | globalConfig.getDefaultPasswordPolicyDN()); |
| | | |
| | | DirectoryServer.setAddMissingRDNAttributes( |
| | | globalConfig.isAddMissingRDNAttributes()); |
| | |
| | | { |
| | | boolean configAcceptable = true; |
| | | |
| | | // Make sure that the default password policy DN is valid. |
| | | DN policyDN = configuration.getDefaultPasswordPolicy(); |
| | | PasswordPolicy policy = DirectoryServer.getPasswordPolicy(policyDN); |
| | | if (policy == null) |
| | | { |
| | | Message message = ERR_CONFIG_CORE_NO_SUCH_PWPOLICY.get( |
| | | String.valueOf(policyDN)); |
| | | unacceptableReasons.add(message); |
| | | |
| | | configAcceptable = false; |
| | | } |
| | | |
| | | // Make sure that the proxied auth identity mapper is valid. |
| | | DN mapperDN = configuration.getProxiedAuthorizationIdentityMapperDN(); |
| | | IdentityMapper mapper = DirectoryServer.getIdentityMapper(mapperDN); |
| | | if (mapper == null) |
| | | { |
| | | Message message = ERR_CONFIG_CORE_NO_PROXY_MAPPER_FOR_DN.get( |
| | | String.valueOf(mapperDN), |
| | | String.valueOf(configuration.dn())); |
| | | unacceptableReasons.add(message); |
| | | |
| | | configAcceptable = false; |
| | | } |
| | | |
| | | Set<String> smtpServers = configuration.getSMTPServer(); |
| | | if (smtpServers != null) |
| | | { |