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() |
Modifier and Type | Method and Description |
---|---|
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, getServerContext, initializeInternal, invokeForInternalOperations, processIntermediateResponse, processSearchEntry, processSearchReference, processSubordinateDelete, processSubordinateModifyDN, setInvokeForInternalOperations
public ConfigChangeResult applyConfigurationChange(SambaPasswordPluginCfg newConfig)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<SambaPasswordPluginCfg>
newConfig
- The new configuration containing the changes.public PluginResult.PostOperation doPostOperation(PostOperationExtendedOperation extendedOperation)
DirectoryServerPlugin
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)
DirectoryServerPlugin
doPreOperation
in class DirectoryServerPlugin<SambaPasswordPluginCfg>
modifyOperation
- The modify operation to be processed.public void initializePlugin(Set<PluginType> pluginTypes, SambaPasswordPluginCfg configuration) throws ConfigException, InitializationException
DirectoryServerPlugin
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.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)
isConfigurationAcceptable
in class DirectoryServerPlugin<SambaPasswordPluginCfg>
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)
ConfigurationChangeListener
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-2022 ForgeRock AS.