Package org.opends.server.plugins
Class SambaPasswordPlugin
java.lang.Object
org.opends.server.api.plugin.DirectoryServerPlugin<SambaPasswordPluginCfg>
org.opends.server.plugins.SambaPasswordPlugin
- All Implemented Interfaces:
ConfigurationChangeListener<SambaPasswordPluginCfg>
public final class SambaPasswordPlugin
extends DirectoryServerPlugin<SambaPasswordPluginCfg>
implements ConfigurationChangeListener<SambaPasswordPluginCfg>
The Samba password synchronization plugin implementation class.
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyConfigurationChange
(SambaPasswordPluginCfg newConfig) Applies the configuration changes to this change listener.void
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.void
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) Indicates whether the provided configuration is acceptable for this plugin.boolean
isConfigurationChangeAcceptable
(SambaPasswordPluginCfg cfg, List<LocalizableMessage> messages) Indicates whether the proposed change to the configuration is acceptable to this change listener.Methods inherited from class org.opends.server.api.plugin.DirectoryServerPlugin
doLDIFImport, doLDIFImportBegin, doLDIFImportEnd, doPostCommit, doPostCommit, doPostCommit, doPostCommit, 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
-
Constructor Details
-
SambaPasswordPlugin
public SambaPasswordPlugin()
-
-
Method Details
-
applyConfigurationChange
Description copied from interface:ConfigurationChangeListener
Applies the configuration changes to this change listener.- Specified by:
applyConfigurationChange
in interfaceConfigurationChangeListener<SambaPasswordPluginCfg>
- Parameters:
newConfig
- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-
doPostOperation
Description copied from class:DirectoryServerPlugin
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.- Overrides:
doPostOperation
in classDirectoryServerPlugin<SambaPasswordPluginCfg>
- Parameters:
extendedOperation
- The extended operation for which processing has completed but no response has yet been sent.
-
doPreOperation
Description copied from class:DirectoryServerPlugin
Performs any necessary processing that should be done just before the Directory Server performs the core processing for a modify operation. This method is not called when processing synchronization operations.- Overrides:
doPreOperation
in classDirectoryServerPlugin<SambaPasswordPluginCfg>
- Parameters:
modifyOperation
- The modify operation to be processed.
-
initializePlugin
public void initializePlugin(Set<PluginType> pluginTypes, SambaPasswordPluginCfg configuration) throws ConfigException Description copied from class:DirectoryServerPlugin
Performs any initialization necessary for this plugin. This will be called as soon as the plugin has been loaded and before it is registered with the server.- Specified by:
initializePlugin
in classDirectoryServerPlugin<SambaPasswordPluginCfg>
- Parameters:
pluginTypes
- The set of plugin types that indicate the ways in which this plugin will be invoked.configuration
- The configuration for this plugin.- Throws:
ConfigException
- If the provided entry does not contain a valid configuration for this plugin.
-
isConfigurationAcceptable
public boolean isConfigurationAcceptable(SambaPasswordPluginCfg configuration, List<LocalizableMessage> unacceptableReasons) Description copied from class:DirectoryServerPlugin
Indicates whether the provided configuration is acceptable for this plugin. It should be possible to call this method on an uninitialized plugin instance in order to determine whether the plugin would be able to use the provided configuration.- Overrides:
isConfigurationAcceptable
in classDirectoryServerPlugin<SambaPasswordPluginCfg>
- Parameters:
configuration
- The plugin configuration for which to make the determination.unacceptableReasons
- A list that may be used to hold the reasons that the provided configuration is not acceptable.- Returns:
true
if the provided configuration is acceptable for this plugin, orfalse
if not.
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(SambaPasswordPluginCfg cfg, List<LocalizableMessage> messages) Description copied from interface:ConfigurationChangeListener
Indicates whether the proposed change to the configuration is acceptable to this change listener.- Specified by:
isConfigurationChangeAcceptable
in interfaceConfigurationChangeListener<SambaPasswordPluginCfg>
- Parameters:
cfg
- The new configuration containing the changes.messages
- A list that can be used to hold messages about why the provided configuration is not acceptable.- Returns:
- Returns
true
if the proposed change is acceptable, orfalse
if it is not.
-