Skip to content

Use full sync when LDAP entries have no modify timestamp - #284

Open
DifanZhang wants to merge 2 commits into
mainfrom
issue-127
Open

DifanZhang wants to merge 2 commits into
mainfrom
issue-127

Conversation

@DifanZhang

Copy link
Copy Markdown
Member

Some LDAP servers, such as Google Secure LDAP, do not return modifyTimestamp. The fallback from #224 set the map timestamp to 0, so later runs did an incremental search with modifyTimestamp>=19700101000001Z. That search found no entries, and the cache did not change.

Now, if any entry has no modifyTimestamp (or whenChanged for AD), the map gets no timestamp. Each update then does a full sync. The timestamp attribute name is matched without case. A stored timestamp of 0 also causes a full sync, which repairs hosts that ran the earlier fallback.

Fixes #127

Some LDAP servers, such as Google Secure LDAP, do not return modifyTimestamp. The fallback from #224 set the map timestamp to 0, so later runs did an incremental search with modifyTimestamp>=19700101000001Z. That search found no entries, and the cache did not change.

Now, if any entry has no modifyTimestamp (or whenChanged for AD), the map gets no timestamp. Each update then does a full sync. The timestamp attribute name is matched without case. A stored timestamp of 0 also causes a full sync, which repairs hosts that ran the earlier fallback.

Fixes #127
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Unit Test Results

    1 files  ±0      1 suites  ±0   5s ⏱️ -1s
315 tests +5  309 ✔️ +5  6 💤 ±0  0 ❌ ±0 

Results for commit 3824eff. ± Comparison against base commit 10fbf8a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not all LDAP servers provide LastModification Dates

1 participant