Bug 908861 - Error messages encountered when using POSIX winsync
Summary: Error messages encountered when using POSIX winsync
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: 389-ds-base
Version: 6.4
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Rich Megginson
QA Contact: Sankar Ramalingam
Depends On:
Blocks: 911468 913154
TreeView+ depends on / blocked
Reported: 2013-02-07 17:03 UTC by Sankar Ramalingam
Modified: 2013-11-21 21:03 UTC (History)
5 users (show)

Fixed In Version: 389-ds-base-
Doc Type: Bug Fix
Doc Text:
Posix Winsync plugin was calling an internal modify function which was not necessary. The internal modify call failed and logged an error message "slapi_modify_internal_set_pb: NULL parameter" which was not clear. This patch stops calling the internal modify function if it is not necessary and the cryptic error message is not observed.
Clone Of:
: 913154 (view as bug list)
Last Closed: 2013-11-21 21:03:59 UTC
Target Upstream Version:

Attachments (Terms of Use)
git diff posix-winsync/posix-group-task.c (1.73 KB, text/plain)
2013-02-11 21:47 UTC, Noriko Hosoi
no flags Details

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1653 normal SHIPPED_LIVE 389-ds-base bug fix update 2013-11-20 21:53:19 UTC

Description Sankar Ramalingam 2013-02-07 17:03:45 UTC
Description of problem: memberOf attribute failed to synced to DS when an user from AD synced with memberOf attribute. Configured "Posix Winsync" plugin with "posixwinsynccreatememberoftask" set to TRUE. 

Refer this link to configure posix winsync plugin

Version-Release number of selected component (if applicable): 389-ds-base-

How reproducible: Consistently.

Steps to Reproduce:
1. Install 389-ds-base- or latest which has support for Posix winsync
2. Configre replication agreement for Pasword synchronization.
3. Make sure users and groups synced from DS to AD and vice versa.
4. Configure Posix Winsync plugin as per the design doc.
5. Configure memberOf plugin on Directory server instance.
6. Created users/groups with memberOf attribute on AD.
7. Check whether users/groups synced to DS with memberOf attributes.
8. memberOf attributes failed to sync from AD to DS.
9. The same way the memberOf attributes failed to sync from DS to AD.
Actual results: memberOf attribute failed to be synced.

Expected results: memberOf attribute should get synced bi-directional.

Additional info: 

Not sure this error message is related to this issue:

[06/Feb/2013:05:55:53 -0500] - slapi_modify_internal_set_pb: NULL parameter
[06/Feb/2013:05:55:53 -0500] - allow_operation: component identity is NULL
[06/Feb/2013:05:55:53 -0500] - slapi_modify_internal_set_pb: NULL parameter
[06/Feb/2013:05:55:53 -0500] - allow_operation: component identity is NULL 

Simo's comment for the same issue:

Memberof attributes cannot be synchronized anyway IIRC..
They are linked attributes on AD and are created when you create the
corresponding member attribute.

Also keep in mind that our memberof attributes include indirect members
where AD one does not, so we should never try to sync this attribute.


Comment 2 RHEL Program Management 2013-02-11 06:47:39 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Noriko Hosoi 2013-02-11 21:42:43 UTC
The QE testcase starts posixWinsyncCreateMemberOfTask task:
dn: cn=Posix Winsync API,cn=plugins,cn=config
changetype: modify
replace: posixWinsyncCreateMemberOfTask
posixWinsyncCreateMemberOfTask: TRUE

It eventually calls posix_group_fix_memberuid, which registers posix_group_fix_memberuid_callback that is supposed to fix up broken group list in entries if any.

But even if there is nothing to fix up, it calls the internal modify function which fails immediately with the reported errors.  Instead of calling the internal modify, we could just skip if there is nothing to fix up.  The error messages are annoying, but the symptom is benign.

I'm attaching the diff to reduce the errors next.

Comment 4 Noriko Hosoi 2013-02-11 21:47:35 UTC
Created attachment 696298 [details]
git diff posix-winsync/posix-group-task.c

Fix description: not to call an internal modify if the mods is NULL.

Comment 5 Rich Megginson 2013-02-11 22:18:13 UTC

Comment 10 Sankar Ramalingam 2013-10-04 15:31:11 UTC
Marking the bug as verified since this problem doesn't occur in the Winsync setup.

tested build - 389-ds-base-
passsync build - passsync-1.1.5

Comment 11 errata-xmlrpc 2013-11-21 21:03:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.