Bug 243221

Summary: rhds71 AD Directory sync fails if attribute 'initials' has too many characters in one of the entries
Product: Red Hat Directory Server Reporter: Issue Tracker <tao>
Component: Sync ServiceAssignee: Nathan Kinder <nkinder>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: nkinder, tao
Target Milestone: DS8.0   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-06 14:45:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 240316    
Attachments:
Description Flags
CVS Diffs none

Description Issue Tracker 2007-06-07 23:57:52 UTC
Escalated to Bugzilla from IssueTracker

Comment 4 Chandrasekar Kannan 2007-07-26 04:25:06 UTC
per bug council on 07/24, blocking DS8.0

Comment 5 Nathan Kinder 2007-08-23 20:31:21 UTC
Created attachment 172375 [details]
CVS Diffs

These diffs address the attribute length contraint of the "initials" attribute
by trimming attribute values larger than the 6 character limit imposed by AD. 
This trimming occurs in the RHDS -> AD direction only.

What this means is that you can store an initials attribute value of "longname"
in RHDS, but the value will be trimmed to "longna" when sent to AD.  This
trimmed attribute will not be synch'd back to RHDS on the next Dirsync
operation.  This case is handled by only comparing the first 6 characters of
the initials attribute value when changes go in the AD -> RHDS direction.

Comment 6 Nathan Kinder 2007-08-23 20:51:37 UTC
Checked into ldapserver (HEAD).  Thanks to Rich for the review!

Checking in windows_protocol_util.c;
/cvs/dirsec/ldapserver/ldap/servers/plugins/replication/windows_protocol_util.c,v
 <--  windows_protocol_util.c
new revision: 1.28; previous revision: 1.27
done
Checking in windowsrepl.h;
/cvs/dirsec/ldapserver/ldap/servers/plugins/replication/windowsrepl.h,v  <-- 
windowsrepl.h
new revision: 1.10; previous revision: 1.9
done

Comment 8 Yi Zhang 2007-10-17 20:53:52 UTC
Verification test has been done as below: (manually execution)

Scenario:
    Create a valid ntUser on either side (RHDS or AD), and sync between RHDS and AD.

    Condition A: If customer modify "initials" value on RHDS side, then:
    A.1      if the first 6 char has been changed, the new value(first 6 chars)
will sync to AD side
    A.2      otherwise, if chars after 6th char in value being changed, sync
action will occurs, but value won't change in AD side

   Condition B: If customer modify "initials" value on AD side, then the value
on RHDS side will be replaced (the whole "initials" value string, not just the
first 6 chars)