Fix for issue 2249 (attributes are in pending mode after a setup with secure args)
The fix consists on simply not setting pending values. Since the code we are running only works with the server offline this approach is safe.
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2008 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.tools; |
| | | import org.opends.messages.Message; |
| | |
| | | BooleanConfigAttribute enablePortAttr = |
| | | new BooleanConfigAttribute(ATTR_CONNECTION_HANDLER_ENABLED, |
| | | INFO_LDAPS_CONNHANDLER_DESCRIPTION_ENABLE.get(), |
| | | true, true, true); |
| | | true, true); |
| | | configEntry.putConfigAttribute(enablePortAttr); |
| | | } |
| | | catch (Exception e) |
| | |
| | | BooleanConfigAttribute enablePortAttr = |
| | | new BooleanConfigAttribute(ATTR_CONNECTION_HANDLER_ENABLED, |
| | | INFO_JMX_CONNHANDLER_DESCRIPTION_ENABLE.get(), |
| | | true, true, true); |
| | | true, true); |
| | | configEntry.putConfigAttribute(enablePortAttr); |
| | | } |
| | | catch (Exception e) |
| | |
| | | BooleanConfigAttribute startTLS = |
| | | new BooleanConfigAttribute(ATTR_ALLOW_STARTTLS, |
| | | INFO_LDAP_CONNHANDLER_DESCRIPTION_ALLOW_STARTTLS.get(), |
| | | true, true, true); |
| | | true, true); |
| | | configEntry.putConfigAttribute(startTLS); |
| | | } |
| | | catch (Exception e) |
| | |
| | | BooleanConfigAttribute enableAttr = |
| | | new BooleanConfigAttribute(ATTR_KEYMANAGER_ENABLED, |
| | | INFO_CONFIG_KEYMANAGER_DESCRIPTION_ENABLED.get(), |
| | | true, true, true); |
| | | true, true); |
| | | configEntry.putConfigAttribute(enableAttr); |
| | | } |
| | | catch (Exception e) |
| | |
| | | BooleanConfigAttribute enableAttr = |
| | | new BooleanConfigAttribute(ATTR_TRUSTMANAGER_ENABLED, |
| | | ERR_CONFIG_TRUSTMANAGER_DESCRIPTION_ENABLED.get(), |
| | | true, true, true); |
| | | true, true); |
| | | configEntry.putConfigAttribute(enableAttr); |
| | | } |
| | | catch (Exception e) |