Issue #184 has been updated by Jonathan Clarke.

Status changed from New to Feedback
Assigned to set to Jonathan Clarke
% Done changed from 0 to 100

I found out why this happened:
* In 1.1, the list of attributes considered for writing in a modification was: 
all attributes read from source, any force values or default values.
* In 1.2, the list of attributes considered for writing in a modification is 
the one configured in lsc.properties. If no values are configured (no source 
values, no default and no force values), then the attribute is to be removed.

However, this ignored the case where someone configures an attribute just to 
have a create_value added on creation. So, if we're modifying an entry, and 
there are no source values, no default_values and no force_values, but there 
are create_values configured for this attribute, we will just ignore it.

I've committed a fix for this in 1.2 branch and trunk. It will be available in 
tomorrow's nightlies and 1.2.0.
----------------------------------------
Bug #184: create_value inconsistency between 1.1.2 and 1.2
http://tools.lsc-project.org/issues/show/184

Author: Quentin Raynaud
Status: Feedback
Priority: Normal
Assigned to: Jonathan Clarke
Category: Core
Target version: 1.2.0


Using the following configuration:
<pre>
lsc.syncoptions.user.sAMAccountName.create_value = \
    srcBean.getAttributeValueById("uid")
</pre>

The configuration presents some inconsistencies between the 1.1.2 version and 
the 1.2 version.

On both version, the creation process succeeds without any error and the 
attribute is created as intended but one first synchronization the difference 
appears. If nothing has been changed on the source, then 1.1.2 does nothing 
while 1.2 is going to try to delete the attribute (which will result in an 
error since AD needs sAMAccountName).


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to