Bug 34205 - S4 connector overwrites changes by import hooks
S4 connector overwrites changes by import hooks
Status: RESOLVED DUPLICATE of bug 33621
Product: UCS@school
Classification: Unclassified
Component: Samba 4
UCS@school 3.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-27 09:59 CET by Jan Christoph Ebersbach
Modified: 2014-03-07 15:10 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Christoph Ebersbach univentionstaff 2014-02-27 09:59:26 CET
In a single master scenario, I created a number of import hooks that subsequently modify an imported user.  The third hook sets the attribute mailPrimaryAddress.  All the hooks run properly and don't throw any errors but the resulting object doesn't have the attribute mailPrimaryAddress set.  I experimented with a sleep call in the import hook and it work.

Talking to our S4 connector experts I discovered that the connector is actually responsible for this behavior.  As a workaround for the single master scenario the S4 connector has to be stopped before import and started after it finished.  For the master slave scenario this is much more difficult, because on every DC Slave a S4 connector is running.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2014-02-27 10:28:52 CET
(In reply to Jan Christoph Ebersbach from comment #0)
> Talking to our S4 connector experts I discovered that the connector is
> actually responsible for this behavior.  As a workaround for the single
> master scenario the S4 connector has to be stopped before import and started
> after it finished.  For the master slave scenario this is much more
> difficult, because on every DC Slave a S4 connector is running.

In a master slave szenario the master's notifier may be stopped prior to the changes. If all changes are done and the notifier is started again, the ldap objects fetched by the school slaves do not change between the replication steps. If I'm not wrong, this should also bypass the S4 connector problems.
Comment 2 Stefan Gohmann univentionstaff 2014-03-07 15:10:31 CET
I think it is a duplicate of Bug #33621.

*** This bug has been marked as a duplicate of bug 33621 ***