summaryrefslogtreecommitdiff
path: root/server/db/sysdb_ops.c
AgeCommit message (Collapse)AuthorFilesLines
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