summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_services.c
Commit message (Collapse)AuthorAgeFilesLines
* sysdb: add sysdb_{add,replace,delete}_ulong()Fabiano Fidêncio2016-05-311-6/+3
| | | | | | | | | | | | | | | | | | | | | | As the add_ulong() convenience can add, replace or remove a unsigned long according to the operation received as its argument, some confusion can easily happen due to its misleading name. In order to improve the explicitness of our code, let's introduce sysdb_add_ulong(), sysdb_replace_ulong() and sysdb_delete_ulong(). These new functions are basically wrappers of add_ulong() (now sysdb_ldb_msg_ulong_helper()), calling it using the proper flag according to each function. Any code previously using add_ulong() is now adapted to use these brand new functions. Related: https://fedorahosted.org/sssd/ticket/1656 Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org> Reviewed-by: Petr Cech <pcech@redhat.com>
* sysdb: add sysdb_{add,replace,delete}_string()Fabiano Fidêncio2016-05-311-6/+3
| | | | | | | | | | | | | | | | | | | | | | As the add_string() convenience can add, replace or delete a string according to the operation received as its argument, some confusion can easily happen due to its misleading name. In order to improve the explicitness of our code, let's introduce sysdb_add_string(), sysdb_replace_string() and sysdb_delete_string(). These new functions are basically wrappers of add_string() (now sysdb_ldb_msg_string_helper()), calling it using the proper flag according to each function. Any code previously using add_string() is now adapted to use these brand new functions. Resolves: https://fedorahosted.org/sssd/ticket/1656 Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org> Reviewed-by: Petr Cech <pcech@redhat.com>
* Log reason in debug message why ldb_modify failedLukas Slebodnik2015-03-111-0/+10
| | | | Reviewed-by: Sumit Bose <sbose@redhat.com>
* Make DEBUG macro invocations variadicNikolai Kondrashov2014-02-121-37/+37
| | | | | | | | | | | | | | | | | | | | | | | | Use a script to update DEBUG macro invocations to use it as a variadic macro, supplying format string and its arguments directly, instead of wrapping them in parens. This script was used to update the code: grep -rwl --include '*.[hc]' DEBUG . | while read f; do mv "$f"{,.orig} perl -e \ 'use strict; use File::Slurp; my $text=read_file(\*STDIN); $text=~s#(\bDEBUG\s*\([^(]+)\((.*?)\)\s*\)\s*;#$1$2);#gs; print $text;' < "$f.orig" > "$f" rm "$f.orig" done Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Stephen Gallagher <sgallagh@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
* SYSDB: Drop the sysdb_ctx parameter - module sysdb_ops (part 2)Michal Zidek2013-11-151-1/+1
|
* SYSDB: Drop the sysdb_ctx parameter from the sysdb_services moduleMichal Zidek2013-11-151-25/+21
|
* Add domain arguments to sysdb services functionsSimo Sorce2013-01-151-20/+18
| | | | also fix sysdb_svc_add declarations
* Add domain argument to sysdb_remove_attrs()Simo Sorce2013-01-151-1/+2
|
* Use sysdb_search_service() for all svc queriesSimo Sorce2013-01-101-76/+54
|
* Add sysdb_search_service() helper functionSimo Sorce2013-01-101-0/+56
|
* Unify usage of sysdb transactions (part 2).Michal Zidek2012-09-041-3/+18
|
* SYSDB: Use ldb_msg_add_string for simple string additionsJakub Hrozek2012-08-061-2/+2
|
* Add sysdb_set_service_attr and sysdb_set_autofsmap_attrJakub Hrozek2012-04-181-0/+28
|
* Fix uninitialized in_transactionStephen Gallagher2012-02-131-1/+1
| | | | Coverity #12521 and #12491
* SYSDB: extend sysdb_store_service() to accept additional attributesStephen Gallagher2012-01-311-4/+23
|
* SYSDB: add support for enumerating servicesStephen Gallagher2012-01-271-0/+50
|
* SYSDB: Add sysdb routines for manipulating service entriesStephen Gallagher2012-01-271-0/+692