summaryrefslogtreecommitdiff
path: root/server/db
AgeCommit message (Collapse)AuthorFilesLines
2009-11-25Use ldb modules from build root for testsSumit Bose1-0/+4
2009-11-20Optimize sysdb_enumgrentSimo Sorce2-332/+25
This brings down the time needed to enumerate my group database from 2.4 seconds to 0.15 seconds.
2009-11-20Improve handling of ccache filesSumit Bose1-0/+1
- save current ccache file to sysdb - use the saved ccache file if the user has running processes - create an empty ccache if offline - return enviroment variables if offline
2009-11-20Correctly escape DN value.Simo Sorce1-6/+42
In building the DN string we weren't correctly escaping the value of the RDN component. This patches fixes that.
2009-11-19Fix sysdb upgrade bugStephen Gallagher1-1/+1
After completing an upgrade successfully, we were still falling into the "version not found" case. We should be exiting the function after performing the upgrade.
2009-11-18Change initgroups code to use and check the cacheSimo Sorce1-22/+11
We were previously always ending up contacting the backend because we had no way to know if an initgroups call for the same user had ever been called. Add attribute to hold this information and rely on backends to update it. If they don't we fallback to the previous behvior of asking the backend.
2009-11-18Fix crash due to uninitialized timeout variableSimo Sorce1-0/+1
This slipped through in previous patches. Fixes #283
2009-11-18Upgrade cache and local databases to case-sensitive namesStephen Gallagher2-2/+96
2009-11-18Make the sysdb user and group names case-sensitiveStephen Gallagher1-1/+0
2009-11-10Refactor delete functions and add a fewSimo Sorce2-195/+609
Refactor user/group delete functions so that they can be used without a transaction (they autostart an operation). Add user and group search function where a subfilter can be specified.
2009-11-09Fix tevent_req error checking.Simo Sorce2-76/+22
When possible using a macro that correctly deals with tstate
2009-11-07added access module of IPA providerSumit Bose2-0/+12
2009-11-06Always set last update and expire timeSimo Sorce2-110/+106
modifications to existing users/groups were setting metadata, but creation was not. Fixes #259
2009-11-06Make available method to quickly retrive stringSimo Sorce2-3/+35
sysdb_attrs has a lot of methods to add them but very little to get information out. Start adding a way to retrieve a single valued attribute as a string.
2009-11-04Fix for a seg fault during recursive deleteSumit Bose1-1/+7
2009-11-04Add sysdb_attrs_replace_name to sysdb API.Sumit Bose2-0/+35
2009-11-03Rename sdap_id_map to sdap_attr_mapSimo Sorce1-0/+3
Also start adding some infrastructure to use the USN counter when available. In particular add a place to add generic attrs mapping, ie attributes that are neither user nor group specific.
2009-11-02add sysdb_delete_recursive request to sysdb APISumit Bose3-0/+175
2009-10-29Allow sysdb_search_entry request to return more than one resultSumit Bose2-27/+66
2009-10-29added a ASQ search API for sysdbSumit Bose2-0/+230
2009-10-27Move responsibility for entry expiration timeoutSimo Sorce2-13/+43
The providers are now responsible for determining how long a cached entry is considered valid. The default is the same as before (600s)
2009-10-26Zero pointers on freeSimo Sorce1-4/+4
If the pointer stays around, zero it when it is freed, so we do not risk access to released memory in case of bugs.
2009-10-26Read the right buffer, avoids potential segfaultsSimo Sorce1-5/+5
Also fix some debug message levels
2009-10-22Add support for offline auth cache timeoutStephen Gallagher1-0/+1
This adds a new option (offline_credentials_expiration) to the [PAM] section of the sssd.conf If the user does not perform an online authentication within the timeout (in days), they will be denied auth once the timeout passes.
2009-10-22add store/search/delete interface for custom sysdb objectsSumit Bose3-0/+566
2009-10-09Remove magicPrivateGroups optionSimo Sorce4-10/+17
In sssd only local is a native mpg domain, and it is forced. All other providers will have to unroll mpg users into a user/group pair of entries in the db. This allows the provider to automatically establish if the remote server provides mpg users w/o possibily conflicting manual configurations on the client trying to force an mpg behavior where none is provided.
2009-09-23Revert "Use syslog for logging error conditions in SSSD"Stephen Gallagher2-38/+38
This reverts commit 8c50bd085c0efe5fde354deee2c8118887aae29d. Amended: commit 1016af2b1b97ad4290ccce8fa462cc7e3c191b2e also made use of the SYSLOG_ERROR() macro, so those portions of that code also needed to be reverted.
2009-09-21Use syslog for logging error conditions in SSSDJakub Hrozek2-38/+38
This is just a band-aid until ELAPI is fully functional and ready to use.
2009-09-11Complete the removal of "legacy" option.Simo Sorce3-39/+44
The code was still dependent on it for the ldap driver. Changed the driver code to depend on the schema type. Fix defaults for user and groups trees. ATM if you use the rfc2307bis schema you have to put users and groups in 2 separate trees (what people does by default anyway. If this limitation will turn to be too hard, we will change this later.
2009-09-08Split database in multiple filesSimo Sorce3-176/+663
The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file.
2009-08-28Speed-up enumerations.Simo Sorce2-2/+167
This patch reduces the time needed to enumerate groups of a midsized domain from 12 seconds to 4.4 Optimizes enumerations by doing only 2 ldb searches and some ordering instead of a number of searches proportional to the number of groups
2009-08-27Remove redunant function and always pass attrs.Simo Sorce2-44/+15
2009-08-27Upgrade database to 0.2Simo Sorce2-5/+172
Provides also an upgrade function.
2009-08-27Always save using member/memberOfSimo Sorce4-216/+146
First pass to remove the legacy option and make it just a property of the provider
2009-08-24Add debug statements to sysdb_opsSimo Sorce1-10/+111
2009-08-21store additional LDAP attributesSumit Bose2-1/+35
If available the original DN and the user principle will be stored in sysdb.
2009-08-20Ensure nextID doesn't reuse an existing local UID or GIDStephen Gallagher1-9/+21
If there was no maxID set for a domain, the search filter to check whether the UID was available would always return empty (because no UIDs can be <= 0) This patch changes the search filter if the maxID is unset so that it has no upper limit
2009-08-10Do not fail enumerations because of range checksSimo Sorce1-3/+3
2009-08-05Consolidate tevent helpersJakub Hrozek1-26/+0
2009-07-31Add ignore_not_found parameter to sysdb delete functionsJakub Hrozek2-11/+21
Also add tests
2009-07-20Fix saving new nextIDJakub Hrozek1-1/+1
2009-07-09fixed typos and a potential memory leakSumit Bose1-2/+3
2009-07-08Implement the ldap identity module.Simo Sorce2-78/+235
This uses and exapands the async helpers.
2009-07-08Unify password caching ops in sysdbSimo Sorce3-31/+129
2009-07-08Add async helper functionsSimo Sorce2-24/+20
These functions use the tevent_req async model, where a pair of _send/_recv functions pilot requests, with additional helpers like _done functions, and where needed multiple stage helpers.
2009-07-08Expose sysdb function to parse sysdb_attrsSimo Sorce2-2/+4
2009-07-03Rework transaction code to use tevent_reqSimo Sorce6-1630/+3137
This is part of a set of patches to rewrite sysdb to a hopefully better API, that will also let use use tevent_req async style calls to manipulate our cache.
2009-07-03Rename sysdb_req to sysdb_handle.Simo Sorce5-208/+208
This sysdb_req has always really been a transaction handle and not a request. This is part of a set of patches to rewrite transaction support in sysdb to a hopefully better API, that will also let use use tevent_req async style to manipulate our cache.
2009-05-28Suppress "rootdse" error messages.Stephen Gallagher1-0/+6
We will trap all LDB debug messages and pipe them into our internal DEBUG() function. LDB FATAL messages will still be printed by default, WARNING and TRACE functions will be at debug level 3 and 9, respectively.
2009-05-26Silence warningsSimo Sorce1-3/+2