[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Replication issue? Data is different between master and consumer with same entryCSNs
- To: Quanah Gibson-Mount <quanah@symas.com>, Dave Steiner <steiner@rutgers.edu>, openldap-technical@openldap.org
- Subject: Re: Replication issue? Data is different between master and consumer with same entryCSNs
- From: Dave Steiner <steiner@rutgers.edu>
- Date: Thu, 6 Sep 2018 16:43:49 -0400
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=steiner@oit.rutgers.edu;
- Content-language: en-US
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oit.rutgers.edu; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=31NHmttIE75ds5DAUYMBKh/NVyem9fnohtDUlBdSTXQ=; b=Rho3adyKdUwj1C2JUy4Q3jrWGBs1W555KgN3ekuvGWKPY/UQF/5W1OpIyxsEd/01oxg0PAkr4k+jIOhTqGCXs22Xo1Ftdhu6Kw3G+d198jU3Ap4+h2/rKMwGjzTa3NpFQu5crLV4VcmFUJXfwGv5P6tOZYOW+44MLwNmnSX2NBE=
- In-reply-to: <88F55B570F9FE65911DAA8EE@[192.168.1.10]>
- Organization: Rutgers University
- References: <129e3614-50fe-ba15-4d4b-5f94d14abcd9@oit.rutgers.edu> <88F55B570F9FE65911DAA8EE@[192.168.1.10]>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
On 9/6/2018 2:48 PM, Quanah Gibson-Mount wrote:
--On Wednesday, September 05, 2018 5:49 PM -0400 Dave Steiner
<steiner@rutgers.edu> wrote:
Hi Dave,
$ ldapsearch ... -H ldap://ldapmaster.rutgers.edu uid=XXXX postalAddress
createTimestamp modifyTimestamp entryCSN
dn: uid=XXXX,ou=People,dc=rutgers,dc=edu
createTimestamp: 20121220100700Z
postalAddress: Business And Science Bldg$227 Penn Street$Camden, NJ
081021656
entryCSN: 20180505002024.083133Z#000000#001#000000
modifyTimestamp: 20180505002024Z
$ ldapsearch ... -H ldap://ldapconsumer3.rutgers.edu uid=XXXX
postalAddress createTimestamp modifyTimestamp entryCSN
dn: uid=XXXX,ou=People,dc=rutgers,dc=edu
createTimestamp: 20121220100700Z
postalAddress: BUSINESS AND SCIENCE BLDG$227 PENN STREET$CAMDEN, NJ
081021656
entryCSN: 20180505002024.083133Z#000000#001#000000
modifyTimestamp: 20180505002024Z
Those entries appear identical to me. I assume you believe they are not
identical because the case doesn't match. However, postalAddress uses
caseIgnore normalization rules, so they are in fact identical as far as LDAP
is concerned.
Also, given the entry was created in 2012 and there's no indication of when
the postalAddress attribute was modified, it's impossible to determine
when/how the divergence in capitalization occurred. You also don't provide
any information about the underlying database in use, which could be very
relevant, history wise.
Ok, bad example... Here's another example that's rather different:
$ searchn -H ldap://ldapmaster.rutgers.edu uid=XXXX mail createTimestamp
modifyTimestamp entryCSN
dn: uid=XXXX,ou=People,dc=rutgers,dc=edu
createTimestamp: 20180504140010Z
mail: xxxxxxxxx.xxxx@rutgers.edu
entryCSN: 20180831205041.549496Z#000000#001#000000
modifyTimestamp: 20180831205041Z
$ searchn -H ldap://ldapconsumer1.rutgers.edu uid=XXXX mail createTimestamp
modifyTimestamp entryCSN
dn: uid=XXXX,ou=People,dc=rutgers,dc=edu
createTimestamp: 20180504140010Z
mail: yyyyy@rutgers.edu
entryCSN: 20180831205041.549496Z#000000#001#000000
modifyTimestamp: 20180831205041Z
So I'm trying to figure out why this happens (config issue, bug, ???) and
second, if I can't use the contextCSN to report that everything is fine,
what else can I do besides trying to compare ldif dumps.
So far, everything appears fine from a technical standpoint (the values match
per LDAP SYNTAX rules).
I would suggest the following if you would like the case to match:
dn: ...
changetype: modify
replace: postalAddress
postalAddress: ...
That should correct the value on the providers and consumers to match case.
Warm regards,
Quanah
--
Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.symas.com&data=02%7C01%7Csteiner%40oit.rutgers.edu%7Ca13f8a75c55b4fdbdb6308d614294c60%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C636718564940835797&sdata=pVe%2FLnPDf4Civ13qlr1pXPCb0icy%2BzTZUEAcnViaTCo%3D&reserved=0>