public final class SambaPasswordPlugin extends DirectoryServerPlugin<SambaPasswordPluginCfg> implements ConfigurationChangeListener<SambaPasswordPluginCfg>
This plugin synchronizes the userPassword attribute with the Samba password attribute(s) for all entries containing the specified Samba object class.
It handles clear-text userPassword modify operations and password modify extended operations. It does not cover the case of using pre-encoded password.
Constructor and Description |
---|
SambaPasswordPlugin()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(SambaPasswordPluginCfg newConfig)
Applies the configuration changes to this change listener.
|
PluginResult.PostOperation |
doPostOperation(PostOperationExtendedOperation extendedOperation)
Performs any necessary processing that should be done after the
Directory Server has completed the core processing for an
extended operation but before the response has been sent to the
client.
|
PluginResult.PreOperation |
doPreOperation(PreOperationModifyOperation modifyOperation)
Performs any necessary processing that should be done just before
the Directory Server performs the core processing for a modify
operation.
|
void |
initializePlugin(Set<PluginType> pluginTypes,
SambaPasswordPluginCfg configuration)
Performs any initialization necessary for this plugin.
|
boolean |
isConfigurationAcceptable(SambaPasswordPluginCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Verifies if the plugin configuration is acceptable.
|
boolean |
isConfigurationChangeAcceptable(SambaPasswordPluginCfg newConfig,
List<LocalizableMessage> messages)
Indicates whether the proposed change to the configuration is
acceptable to this change listener.
|
doLDIFExport, doLDIFImport, doLDIFImportBegin, doLDIFImportEnd, doPostConnect, doPostDisconnect, doPostOperation, doPostOperation, doPostOperation, doPostOperation, doPostOperation, doPostOperation, doPostOperation, doPostOperation, doPostOperation, doPostResponse, doPostResponse, doPostResponse, doPostResponse, doPostResponse, doPostResponse, doPostResponse, doPostResponse, doPostSynchronization, doPostSynchronization, doPostSynchronization, doPostSynchronization, doPreOperation, doPreOperation, doPreOperation, doPreOperation, doPreOperation, doPreOperation, doPreOperation, doPreParse, doPreParse, doPreParse, doPreParse, doPreParse, doPreParse, doPreParse, doPreParse, doPreParse, doPreParse, doShutdown, doStartup, finalizePlugin, getPluginEntryDN, getPluginTypes, initializeInternal, invokeForInternalOperations, isConfigurationAcceptable, processIntermediateResponse, processSearchEntry, processSearchReference, processSubordinateDelete, processSubordinateModifyDN, setInvokeForInternalOperations
public SambaPasswordPlugin()
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(SambaPasswordPluginCfg newConfig)
applyConfigurationChange
in interface ConfigurationChangeListener<SambaPasswordPluginCfg>
newConfig
- The new configuration containing the changes.public PluginResult.PostOperation doPostOperation(PostOperationExtendedOperation extendedOperation)
doPostOperation
in class DirectoryServerPlugin<SambaPasswordPluginCfg>
extendedOperation
- The extended operation for which
processing has completed but no
response has yet been sent.public PluginResult.PreOperation doPreOperation(PreOperationModifyOperation modifyOperation)
doPreOperation
in class DirectoryServerPlugin<SambaPasswordPluginCfg>
modifyOperation
- The modify operation to be processed.public void initializePlugin(Set<PluginType> pluginTypes, SambaPasswordPluginCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
initializePlugin
in class DirectoryServerPlugin<SambaPasswordPluginCfg>
pluginTypes
- The set of plugin types that indicate the
ways in which this plugin will be invoked.configuration
- The configuration for this plugin.org.forgerock.opendj.config.server.ConfigException
- If the provided entry does not contain
a valid configuration for this plugin.InitializationException
- If a problem occurs while
initializing the plugin that is
not related to the server
configuration.public boolean isConfigurationAcceptable(SambaPasswordPluginCfg configuration, List<LocalizableMessage> unacceptableReasons)
configuration
- The plugin configuration.unacceptableReasons
- Reasons why the configuration is not acceptable.true
for the correct configuration and
false
for the incorrect one.public boolean isConfigurationChangeAcceptable(SambaPasswordPluginCfg newConfig, List<LocalizableMessage> messages)
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<SambaPasswordPluginCfg>
newConfig
- The new configuration containing the changes.messages
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed change is
acceptable, or false
if it is not.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.