summaryrefslogtreecommitdiffstats
path: root/server/db/sysdb_search.c
Commit message (Collapse)AuthorAgeFilesLines
* Provide sysdb_set_user_attr() functions.Simo Sorce2009-03-031-2/+3
| | | | | | Provide also helper functions to build struct sysdb_attrs. Also fix sysdb_get_user_attr() to have a consistent interface as all other functions.
* Unify pwd_search and user_searchSimo Sorce2009-03-021-35/+11
|
* Implement GetUserAttributes in the InfoPipeStephen Gallagher2009-03-021-0/+61
| | | | | | | | | | | | | | | | | | This patch adds support for requesting user data in the sysdb via the InfoPipe. It currently has support for reading defined entries of integral, floating-point or string types. Tasks remaining: 1) Implement call to the provider when cache is out of date 2) Support byte arrays for userpic and similar I modified sysdb_search_ctx in sysdb_search.c to accept an array of attributes to pass into the LDB search. I also made one additional related fix: the btreemap now sorts in the correct order. Previously I had accidentally transposed the two values for sorting, so the map would always have been in exact reverse order.
* Convert sync calls in sysdb to async, transaction dependent, calls.Simo Sorce2009-02-281-20/+20
|
* Serialize access to sysdb and also exposes ldb transactions.Simo Sorce2009-02-261-0/+731
This is necessary because in ldb only 1 transaction per context is possible and all operations (or new transactions) are nested within it. Will revisit this later when ldb will addresses the problem.