summaryrefslogtreecommitdiffstats
path: root/server/db/sysdb_ops.c
Commit message (Collapse)AuthorAgeFilesLines
* Move actual password caching into sysdbSimo Sorce2009-05-181-1/+49
| | | | Convert auth modules to do the caching themselves
* enable uid/gid generation againSumit Bose2009-04-271-3/+6
|
* fixes for user and group creation in LOCAL domainSumit Bose2009-04-231-0/+19
| | | | | - added range check for supplied UIDs and GIDs - initialize pc_gid to 0 to trigger gid generation
* Always pass full domain infoSimo Sorce2009-04-131-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.
* Clean up warnings in SSSDStephen Gallagher2009-04-071-1/+0
|
* Fix segfault error caused by a double freeSimo Sorce2009-03-181-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.
* Fix returning user with missing optional attributes.Simo Sorce2009-03-101-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.
* Move MPG checks within sysdb.Simo Sorce2009-03-091-12/+184
| | | | | This allows to perform checks and modifications in one transaction. Uses configuration stored in confdb to determins if a domain uses MPGs.
* Implement SetGroupGID in the InfoPipeStephen Gallagher2009-03-091-0/+67
|
* Remove obsolete commentSimo Sorce2009-03-061-3/+0
|
* Remove _PW_ and _GR_ from SYSDB_ definesSimo Sorce2009-03-051-26/+26
| | | | Also unify SYSDB_PW_NAME and SYSDB_GR_NAME in SYSDB_NAME and make it "name"
* Add functions to add regular users and groupsSimo Sorce2009-03-051-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.
* Add internal min/max/next id management fucntionsSimo Sorce2009-03-041-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.
* Provide sysdb_set_user_attr() functions.Simo Sorce2009-03-031-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.
* Expose some more functions needed by the testsSimo Sorce2009-02-281-0/+98
|
* Convert sync calls in sysdb to async, transaction dependent, calls.Simo Sorce2009-02-281-0/+938