0713b92ec9f10b6dd913dc56cbc7845d1b025ccb |
|
19-Dec-2016 |
Pavel Březina <pbrezina@redhat.com> |
responders: unify usage of sss_cmd_send_empty and _error
Originally sss_cmd_send_empty() called also sss_cmd_done() to send
an empty reply packet to the cliant where as sss_cmd_send_error()
did not invoke this call and required the caller to call it manually.
For this reason, a possible error in users_find_by_cert_done() was not
send to the caller.
This patch unifies the usage of those two functions in a way that both
of them only creates the reply packet but do not send it. Another
sss_cmd_done() call is required to send the reply.
Because sss_cmd_done() is now always called, unit tests needed to be
changed to always mock a value for __wrap_sss_cmd_done.
Resolves:
https://fedorahosted.org/sssd/ticket/3151
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
e4b147ed01c8476d36ce356ee53899870d84351d |
|
19-Dec-2016 |
Pavel Březina <pbrezina@redhat.com> |
setent_notify: remove unused private context
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
4f3a9d837a55b49448eca3c713c85a406207e523 |
|
29-Jun-2016 |
Simo Sorce <simo@redhat.com> |
Responders: Make the client context more generic
This is useufl to allow reusing the responder code with other protocols.
Store protocol data and responder state data behind opaque pointers and
use tallog_get_type to check they are of the right type.
This also allows to store per responder state_ctx so that, for example,
the autofs responder does not have to carry useless variables used only
by the nss responder.
Resolves:
https://fedorahosted.org/sssd/ticket/2918
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
83bf46f4066e3d5e838a32357c201de9bd6ecdfd |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Update DEBUG* invocations to use new levels
Use a script to update DEBUG* macro invocations, which use literal
numbers for levels, to use bitmask macros instead:
grep -rl --include '*.[hc]' DEBUG . |
while read f; do
mv "$f"{,.orig}
perl -e 'use strict;
use File::Slurp;
my @map=qw"
SSSDBG_FATAL_FAILURE
SSSDBG_CRIT_FAILURE
SSSDBG_OP_FAILURE
SSSDBG_MINOR_FAILURE
SSSDBG_CONF_SETTINGS
SSSDBG_FUNC_DATA
SSSDBG_TRACE_FUNC
SSSDBG_TRACE_LIBS
SSSDBG_TRACE_INTERNAL
SSSDBG_TRACE_ALL
";
my $text=read_file(\*STDIN);
my $repl;
$text=~s/
^
(
.*
\b
(DEBUG|DEBUG_PAM_DATA|DEBUG_GR_MEM)
\s*
\(\s*
)(
[0-9]
)(
\s*,
)
(
\s*
)
(
.*
)
$
/
$repl = $1.$map[$3].$4.$5.$6,
length($repl) <= 80
? $repl
: $1.$map[$3].$4."\n".(" " x length($1)).$6
/xmge;
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> |
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> |
d8057ec487e452038f0106042021fa612bbb8555 |
|
05-Feb-2014 |
Michal Zidek <mzidek@redhat.com> |
responder: Use SAFEALIGN macros where appropriate.
https://fedorahosted.org/sssd/ticket/1359 |
1a5d83798af7bd88c9d20862c8830ebb5b755e2d |
|
08-Mar-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
Move sss_cmd_execute from client to responder code.
I think it logically belongs there and allows to better exercise the
responder commands from unit tests. |
30812cdfb92923c8d062a5db989015c676a87f07 |
|
04-Dec-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
NSS: Fix netgroup midpoint cache refresh
https://fedorahosted.org/sssd/ticket/1683
The result of the percent calculation was always 0 as it used plain
ints. The patch switches to using explicit floats to avoid reintroducing
the bug again even with brackets. |
ae526063fcbc4b4c440e35e01e4eca35358c2906 |
|
09-Oct-2012 |
Yuri Chornoivan <yurchor@ukr.net> |
Fix typos |
2cba1c86f48db866fc72738a32eecbbdcdf3dbdb |
|
13-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
Remove setent structure when callback is called |
e24a0656252c167e644b4758e5e53afe69be02e1 |
|
06-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
Split the logic to check cache expiration into separate function |
98076cabc2a8b8f71dc3bc1263519827f71a5fcc |
|
06-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
RESPONDERS: Refactor setent_req_list
Makes the setent_add_ref() and setent_notify_*() functions more generic
to be reusable by the autofs responder. |
405a06682b3772b70bb06d3adba780a062959641 |
|
03-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
RESPONDERS: Provide a common sss_cmd_send_error function
The common function could be reused in new responders |
ab68008f87504ace9451c14ba2a7e8dfec435779 |
|
01-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
Refactor nss_cmd_send_empty |
1c48b5a62f73234ed26bb20f0ab345ab61cda0ab |
|
18-Feb-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Rename server/ directory to src/
Also update BUILD.txt |