summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_reinit.c
Commit message (Collapse)AuthorAgeFilesLines
* Check the return value of sysdb_search_servicesJakub Hrozek2013-03-051-0/+6
|
* Add domain arguments to sysdb services functionsSimo Sorce2013-01-151-2/+3
| | | | also fix sysdb_svc_add declarations
* Add domain argument to sysdb_has/set_enumerated()Simo Sorce2013-01-151-1/+1
|
* Add domain argument to sysdb_search_groups()Simo Sorce2013-01-151-2/+3
|
* Add domain arg to sysdb_search_users()Simo Sorce2013-01-151-8/+15
|
* Fix sdap reinit.Simo Sorce2013-01-101-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.
* Clean up cache on server reinitializationPavel Březina2012-08-231-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.