public final class SambaPasswordPlugin extends DirectoryServerPlugin<org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.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(org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg newConfig) |
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,
org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg configuration)
Performs any initialization necessary for this plugin.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Verifies if the plugin configuration is acceptable.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg newConfig,
List<LocalizableMessage> messages) |
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, getServerContext, initializeInternal, invokeForInternalOperations, isConfigurationAcceptable, processIntermediateResponse, processSearchEntry, processSearchReference, processSubordinateDelete, processSubordinateModifyDN, setInvokeForInternalOperations
public SambaPasswordPlugin()
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg newConfig)
applyConfigurationChange
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg>
public PluginResult.PostOperation doPostOperation(PostOperationExtendedOperation extendedOperation)
DirectoryServerPlugin
doPostOperation
in class DirectoryServerPlugin<org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg>
extendedOperation
- The extended operation for which
processing has completed but no
response has yet been sent.public PluginResult.PreOperation doPreOperation(PreOperationModifyOperation modifyOperation)
DirectoryServerPlugin
doPreOperation
in class DirectoryServerPlugin<org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg>
modifyOperation
- The modify operation to be processed.public void initializePlugin(Set<PluginType> pluginTypes, org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
DirectoryServerPlugin
initializePlugin
in class DirectoryServerPlugin<org.forgerock.opendj.server.config.server.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(org.forgerock.opendj.server.config.server.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(org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg newConfig, List<LocalizableMessage> messages)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.SambaPasswordPluginCfg>
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.