diff options
| author | Nathan Kinder <nkinder@redhat.com> | 2010-01-27 15:11:23 -0800 |
|---|---|---|
| committer | Nathan Kinder <nkinder@redhat.com> | 2010-01-27 15:11:23 -0800 |
| commit | d9fdaf2c29bb2ead7f7a93f0b6b34c26a024a184 (patch) | |
| tree | 4a39aa541d513184927cf8382159931b17800878 /ldap/admin/src | |
| parent | 62d967419616d77891c78e4ee3553482cbea1c17 (diff) | |
Bug 549554 - Trim single-valued attributes before sending to AD
There are a number of attributes that AD defines as single-valued
that are multi-valued in the LDAP RFCs. We already had a few
special cases in the winsync code where we only send one attribute
to AD to allow the change to be accepted. We then simply check if
the value in AD is present in DS when comparing entries for further
changes.
This fix cleans up that old implementation a bit by adding a static
list of these single-valued attributes and a helper function to
check if a particular type is in that list. I also had to extend
the attr_compare_present() function to allow a length to be passed
in for limiting the comparison to a portion of the values. This is
needed for the initials attribute, which is single-valued and length
constrained in AD.
Diffstat (limited to 'ldap/admin/src')
0 files changed, 0 insertions, 0 deletions
