Internal plugin operations and replication questions

I'm writing a postop plugin that will modify multiple password hash attributes upon a successful user password change (need to maintain these hashes for use by external apps like FreeRADIUS). My questions are:

1. Does replication pick up internal operations like this?

2. What do I need to do within the plugin to "play nice" with replication?

The second question comes from seeing some of the example plugin code that explicitly checks to see if the parameter block is associated with a replication thread and only continues if it is not. I don't know if this means my plugin should do a similar check and not modify the attributes if it's in a replication thread or, because the operations are internal, if it should indeed perform the modifications even if this is a replication thread.

Any thoughts?

Cheers,

Doug

[862 byte] By [DKFa] at [2007-11-27 10:24:11]
# 1

Hi Doug,

If you are writing a Pre-Operation plugin, you can add the hash attributes modifications so that everything is contained in the original operation, and will be replicated with the password change. This will also make it an Atomic operation.

If you are writing your plugin as a Post Operation, and thus creating an Internal Operation, it will be replicated as well by default.

It is better to check if the modification is a Replicated Change or not. You do not want to reapply your plugin if the Password was changed on another server which does have the plugin enabled.

As a result, you will need to deploy your plugin on all Masters and only Masters.

Regards,

Ludovic.

ludovicpa at 2007-7-28 17:26:25 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

Excellent. Exactly what I needed.

Thanks.

DKFa at 2007-7-28 17:26:25 > top of Java-index,Web & Directory Servers,Directory Servers...