346d6d8bf5fdb446921d754c07c8a7d913a048d5 |
|
29-Jan-2018 |
René Genz <liebundartig@freenet.de> |
Fix minor spelling mistakes
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
cf098cbeef745b75d2efe8334d4d715bcef31883 |
|
08-Jun-2017 |
Lukas Slebodnik <lslebodn@redhat.com> |
UTIL: Remove signal.h from util/util.h
signal.h is not used directly by util/util.h. The header file signal.h
must be included in 8 files and removing it from util.h it had to be
added only to 5 missing file. But util/util.h is include in 377 files
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> |
cb54dbad6be907d277ce6aa39524338643e2f5a4 |
|
07-Sep-2016 |
Michal Židek <mzidek@redhat.com> |
TOOLS: sss_mc_refresh_nested_group short/fqname usage
We use shortname to refresh memory cache, but in case of nested groups,
we used internal_fqname to refresh parent groups.
We also wrongly used the shortname for sysdb_search operation.
Which caused error message to be printed when sss_usermod -a or
sss_groupmod -a where called.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
bc7991db97482eb2ac77f7105ee4bb3d329acff7 |
|
25-Jul-2016 |
Lukas Slebodnik <lslebodn@redhat.com> |
Amend debug messages after failure of unlink
Some messages did not have errno or name of problematic file.
There was also improper use of negative value.
The function strerror was called with -1 instead of errno
Reviewed-by: Petr Čech <pcech@redhat.com> |
aea1d5c0ca9bb1470759b024c8b97b6c1f577193 |
|
27-Jun-2016 |
Pavel Březina <pbrezina@redhat.com> |
sss_tools: add test if sssd is running
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
11e8f3ecdddf8edd8b1bbe9f41b49ce8b709b92a |
|
31-Aug-2015 |
Petr Cech <pcech@redhat.com> |
UTIL: Function 2string for enum sss_cli_command
Improvement of debug messages.
Instead of:"(0x0400): Running command [17]..."
We could see:"(0x0400): Running command [17][SSS_NSS_GETPWNAM]..."
(It's not used in sss_client. There are only hex numbers of commands.)
Resolves:
https://fedorahosted.org/sssd/ticket/2708
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
32c6db689a0206e062b799dfd32c34ba878ff044 |
|
13-Aug-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
sss_cache: Wait a while for invalidation of mc by nss responder
The sss_cache cannot invalidate memory cache directly
because the nss responder owns file locks to memory caches.
Therefore sss_cache just "tell" nss responder to invalidate
memory cache.
However there might be short interval between calling
the utility sss_cache and stopping sssd. So nss responder
needn't be so fast and therefore memory cache needn't be invalidated.
Resolves:
https://fedorahosted.org/sssd/ticket/2748
Reviewed-by: Michal Židek <mzidek@redhat.com> |
b08bcc387ad99b9c408183960c127dc77975b6ff |
|
03-Jul-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
sss_cache: Clear also initgroups fast cache
Reviewed-by: Michal Židek <mzidek@redhat.com> |
8e44ddfccebe61728d8a2c1dafce36dfa944bc90 |
|
03-Dec-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
sss_atomic_write_s() return value is signed
Reviewed-by: Sumit Bose <sbose@redhat.com> |
a3c8390d19593b1e5277d95bfb4ab206d4785150 |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Make DEBUG macro invocations variadic
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> |
4c08db0fb0dda3d27b1184248ca5c800d7ce23f0 |
|
15-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Drop the sysdb_ctx parameter - module sysdb_ops (part 1) |
1091c0ae2f1596ceb161e5b765a91c23c413b369 |
|
12-Jun-2013 |
Yuri Chornoivan <yurchor@ukr.net> |
Fix minor typos |
7486dea9f5f7b2a6fbbacc6db740a82140b6377c |
|
20-May-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Fixing critical format string issues.
--missing arguments.
--format '%s', but argument is integer.
--wrong format string, examle: '%\n' |
714ba5f50551a42df324714358dc379b351d4a53 |
|
17-Apr-2013 |
Michal Zidek <mzidek@redhat.com> |
Inform about function duplication.
sss_mc_set_recycled is a static function, that should not
be used outside nsssrv_mmap_cache.c. The sss_cache tool
is an exception, because in the case when sssd is not running,
sss_cache must invalidate the memory cache file. That is why
sss_mc_set_recycled was copied to the tools_mc_util.c
(as helper function for sss_memcache_invalidate function).
It was duplicated to allow this function to remain static
(and invisible to any .h files), so that it is not used anywhere else.
Wrong usage of this function might cause race conditions and corrupt
the cache.
I'll add comments about the duplication to the code. |
7a92ae1598735ff69e36c72a7be60292ccad41d3 |
|
21-Jan-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
TOOLS: invalidate parent groups in memory cache, too
https://fedorahosted.org/sssd/ticket/1775
In addition to invalidating the group being added to when adding a
member group/user, we also need to invalidate all its parent groups,
otherwise this getgrnam("parent") wouldn't report the members newly
added to its child groups. |
2bb2eadf2b1b7854f430e37689b3e7a25bedfebd |
|
15-Jan-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
TOOLS: Provide a convenience function to refresh a list of groups |
543676afec3c08fdc0a5a794976adc8dfdca974b |
|
15-Jan-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
TOOLS: Split querying nss responder into a separate function
The tools query the responder in order to sync the memcache after
performing changes to the local database. The functions will be reused
by other tools so I split them into a separate functions. |
82dc11348718bf8e2ff07da696f91f6703293c24 |
|
15-Jan-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
TOOLS: move memcache related functions to tools_mc_utils.c
The upcoming patches will link only users of this file with client libs,
so it's better to have it separate.
There is no functional change in this patch |