| | |
| | | import org.opends.server.protocols.jmx.Credential; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.ErrorLogCategory; |
| | | import org.opends.server.types.ErrorLogSeverity; |
| | | import org.opends.server.types.InvokableMethod; |
| | | import org.opends.server.types.RawModification; |
| | | import org.opends.server.types.ResultCode; |
| | | import org.opends.server.types.SearchScope; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugCaught; |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugEnabled; |
| | |
| | | import static org.opends.server.config.ConfigConstants.OPTION_PENDING_VALUES; |
| | | import org.opends.server.protocols.jmx.JmxClientConnection; |
| | | import org.opends.server.protocols.asn1.ASN1OctetString; |
| | | import org.opends.server.protocols.ldap.LDAPException; |
| | | import org.opends.server.protocols.ldap.LDAPFilter; |
| | | import org.opends.server.protocols.ldap.LDAPModification; |
| | | import org.opends.server.protocols.ldap.LDAPAttribute ; |
| | | import org.opends.server.protocols.internal.InternalSearchOperation ; |
| | | import org.opends.server.core.ModifyOperation ; |
| | | import org.opends.server.types.LDAPException; |
| | | import org.opends.server.types.ModificationType; |
| | | |
| | | |
| | |
| | | int msgID = MSGID_CONFIG_JMX_CANNOT_GET_ATTRIBUTE; |
| | | String message = getMessage(msgID, String.valueOf(attributeName), |
| | | String.valueOf(configEntryDN), |
| | | stackTraceToSingleLineString(e)); |
| | | getExceptionMessage(e)); |
| | | throw new AttributeNotFoundException(message); |
| | | } |
| | | |
| | |
| | | ModificationType.REPLACE, getLdapAttributeFromJmx( |
| | | attribute, |
| | | newConfigEntry)); |
| | | ArrayList<LDAPModification> ldapModList = new ArrayList<LDAPModification>(); |
| | | ArrayList<RawModification> ldapModList = new ArrayList<RawModification>(); |
| | | ldapModList.add(ldapModification); |
| | | |
| | | // |
| | |
| | | |
| | | // |
| | | // prepare the ldap modify |
| | | ArrayList<LDAPModification> ldapModList = new ArrayList<LDAPModification>(); |
| | | ArrayList<RawModification> ldapModList = new ArrayList<RawModification>(); |
| | | for (Object o : attributes) |
| | | { |
| | | Attribute attribute = (Attribute) o; |