summaryrefslogtreecommitdiff
path: root/src/providers/ldap/sdap_reinit.c
AgeCommit message (Collapse)AuthorFilesLines
2013-03-05Check the return value of sysdb_search_servicesJakub Hrozek1-0/+6
2013-01-15Add domain arguments to sysdb services functionsSimo Sorce1-2/+3
also fix sysdb_svc_add declarations
2013-01-15Add domain argument to sysdb_has/set_enumerated()Simo Sorce1-1/+1
2013-01-15Add domain argument to sysdb_search_groups()Simo Sorce1-2/+3
2013-01-15Add domain arg to sysdb_search_users()Simo Sorce1-8/+15
2013-01-10Fix sdap reinit.Simo Sorce1-82/+89
This set of functions had a few important issues: 1. the base_dn was always NULL, as the base array was never actually used to construct any DN. This means each function searched the whole database multiple times. It would try to remove SYSDB_USN from all database entries 3 times. Then it would try to find non updated entries another 3 times and delete them, arguably find empty results the last 2 times. 2. Remove use of sysdb_private.h, that header is *PRIVATE* which means it should not be used anywhere but within sysdb. Do this by using existing functions instead of using ldb calls directly. This is important to keep sysdb as conistent and self-contained as possible.
2012-08-23Clean up cache on server reinitializationPavel Březina1-0/+309
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.