diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-08-15 13:59:37 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-23 14:27:51 +0200 |
commit | 41be4e3976cf66823ad2c6880671ac7fbafdc640 (patch) | |
tree | a70acd87acba86cd935bd150b66b58b0524d534b /Makefile.am | |
parent | e4c29d1f8e3b2c2b268105f169e5156a0a36aebf (diff) | |
download | sssd-41be4e3976cf66823ad2c6880671ac7fbafdc640.tar.gz sssd-41be4e3976cf66823ad2c6880671ac7fbafdc640.tar.xz sssd-41be4e3976cf66823ad2c6880671ac7fbafdc640.zip |
Clean up cache on server reinitialization
https://fedorahosted.org/sssd/ticket/734
We successfully detect when the server is reinitialized by testing
the new lastUSN value. The maximum USN values are set to zero, but
the current cache content remains.
This patch removes records that were deleted from the server.
It uses the following approach:
1. remove entryUSN attribute from all entries
2. run enumeration
3. remove records that doesn't have entryUSN attribute updated
We don't need to do this for sudo rules, they will be refreshed
automatically during next smart/full refresh, or when an expired rule
is deleted.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 726a8589f..571ea55ca 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1238,6 +1238,7 @@ libsss_ldap_common_la_SOURCES = \ src/providers/ldap/sdap_idmap.c \ src/providers/ldap/sdap_idmap.h \ src/providers/ldap/sdap_range.c \ + src/providers/ldap/sdap_reinit.c \ src/providers/ldap/sdap.c if BUILD_SUDO |