summaryrefslogtreecommitdiff
path: root/server/db/sysdb_ops.c
AgeCommit message (Collapse)AuthorFilesLines
2009-09-23Revert "Use syslog for logging error conditions in SSSD"Stephen Gallagher1-5/+5
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 Hrozek1-5/+5
This is just a band-aid until ELAPI is fully functional and ready to use.
2009-09-11Complete the removal of "legacy" option.Simo Sorce1-38/+34
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-08-27Remove redunant function and always pass attrs.Simo Sorce1-29/+11
2009-08-27Always save using member/memberOfSimo Sorce1-148/+113
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 Bose1-1/+22
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-07-31Add ignore_not_found parameter to sysdb delete functionsJakub Hrozek1-8/+15
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 Sorce1-71/+220
This uses and exapands the async helpers.
2009-07-08Unify password caching ops in sysdbSimo Sorce1-24/+89
2009-07-08Add async helper functionsSimo Sorce1-24/+13
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-03Rework transaction code to use tevent_reqSimo Sorce1-1250/+2383
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 Sorce1-88/+88
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-26Fix manual UID assignment in sysdbJakub Hrozek1-11/+15
If it's an MPG domain, set them equal. If it's a non-MPG domain, get the next available GID and use that.
2009-05-18Move actual password caching into sysdbSimo Sorce1-1/+49
Convert auth modules to do the caching themselves
2009-04-27enable uid/gid generation againSumit Bose1-3/+6
2009-04-23fixes for user and group creation in LOCAL domainSumit Bose1-0/+19
- added range check for supplied UIDs and GIDs - initialize pc_gid to 0 to trigger gid generation
2009-04-13Always pass full domain infoSimo Sorce1-18/+23
Change sysdb to always passwd sss_domain_info, not just the domain name. This way domain specific options can always be honored at the db level.
2009-04-07Clean up warnings in SSSDStephen Gallagher1-1/+0
2009-03-18Fix segfault error caused by a double freeSimo Sorce1-178/+118
In delete_callback we were freeing rep after having called return_done() This caused a double free becuse rep is already freed as child of the request when return_done calles the callback. To avoid future errors like this convert return_error and return_done into functions and make them always be the last call of the function and call them as part of the function return.
2009-03-10Fix returning user with missing optional attributes.Simo Sorce1-7/+13
Gecos, homedir and shell are optional, fix the responder not to refuse to return the user completely if they are missing, replace an empty homedir with "/". Also fix fullname vs gecos, and always return gecos for NSS data. On user creation set gecos to the same value as the user Full Name, to help populate the gecos field with data that makes sense.
2009-03-09Move MPG checks within sysdb.Simo Sorce1-12/+184
This allows to perform checks and modifications in one transaction. Uses configuration stored in confdb to determins if a domain uses MPGs.
2009-03-09Implement SetGroupGID in the InfoPipeStephen Gallagher1-0/+67
2009-03-06Remove obsolete commentSimo Sorce1-3/+0
2009-03-05Remove _PW_ and _GR_ from SYSDB_ definesSimo Sorce1-26/+26
Also unify SYSDB_PW_NAME and SYSDB_GR_NAME in SYSDB_NAME and make it "name"
2009-03-05Add functions to add regular users and groupsSimo Sorce1-15/+286
Calulates next id automatically if uid/gid are not specified. Fixes to sysdb_get_next_available_id. Add tests to create users and groups through the new functions.
2009-03-04Add internal min/max/next id management fucntionsSimo Sorce1-13/+276
Retrieve minID and maxID from domain configuration so that lower and upper bounds can be set per domain. Add function that keeps track of the next available id, increments and returns it on requests, avoiding collisions with existing ids.
2009-03-03Provide sysdb_set_user_attr() functions.Simo Sorce1-0/+56
Provide also helper functions to build struct sysdb_attrs. Also fix sysdb_get_user_attr() to have a consistent interface as all other functions.
2009-02-28Expose some more functions needed by the testsSimo Sorce1-0/+98
2009-02-28Convert sync calls in sysdb to async, transaction dependent, calls.Simo Sorce1-0/+938