49dd8ee2834d9477418961dbaffa4a03cfa9fd1e |
|
29-Jan-2018 |
René Genz <liebundartig@freenet.de> |
Fix minor spelling mistakes in tests/*
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
bf54fbed126ec3d459af40ea370ffadacd31c76d |
|
11-Feb-2015 |
Jakub Hrozek <jhrozek@redhat.com> |
RESOLV: Add an internal function to read TTL from a DNS packet
Related:
https://fedorahosted.org/sssd/ticket/1884
Adds an internal resolver function that reads the TTL for SRV records as
specified by RFC-2181. Several internal c-ares definitions are used
until c-ares contains a function that exposes all this information via a
parsing function.
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
da6ee4b16f57d24f63c09efa74ead7f7cf315a55 |
|
14-Jul-2014 |
Pavel Březina <pbrezina@redhat.com> |
resolv tests: add test for multiple servers with zero weights
Resolves:
https://fedorahosted.org/sssd/ticket/2357
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
cb8c79278d23a5b1deb66ea4af37feebc7137fd0 |
|
14-Jul-2014 |
Pavel Březina <pbrezina@redhat.com> |
resolv tests: remove ununused variable from for cyclus
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
6b57784f0f175275fd900eca21c77415e3a5ea52 |
|
09-Jul-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
TOOLS: Always debug to stderr
https://fedorahosted.org/sssd/ticket/2348
Programs that are supposed to only be executed on the foreground should
log to stderr automatically.
Reviewed-by: Michal Židek <mzidek@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> |
87158890d6e7239167d7c8089070f3d2cdf5e58d |
|
05-Sep-2013 |
Pavel Březina <pbrezina@redhat.com> |
resolv_sort_srv_reply: remove unnecessary mem_ctx |
d910b4ebaa8e68bd24ad22b8f65aed7c6812aaf1 |
|
25-Jul-2013 |
Michal Zidek <mzidek@redhat.com> |
resolv-tests failing with memory leak
Wait for c-ares to finish before checking for memory leaks.
https://fedorahosted.org/sssd/ticket/1899 |
a398adc5b40381fc567a2aee1841b26af78aea17 |
|
03-May-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
resolver: Return PTR record as string
This is a requirement to update the PTR records.
Includes a unit test. |
4139a7a731f2831963a42b26aac111422be28792 |
|
17-Apr-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
Make leak checks usable in tests that do not utilize check
* Remove check-specific failure reporting from common_check.c
* Check-specific abstraction over memleak checks
* Rename common_check.c to leak_check.c |
7eabf0b9d835bfb724d1c348fd0acd4975652a1b |
|
13-Nov-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
TESTS: Fix a couple of debug-level setters |
9e2c64c6d4f5560e27207193efea6536a566865e |
|
29-Oct-2012 |
Michal Zidek <mzidek@redhat.com> |
Include talloc log in our debug facility
https://fedorahosted.org/sssd/ticket/1495 |
2de495aed26bf75a750a76ca73b9f85d341fe1c5 |
|
27-Jul-2012 |
Pavel Březina <pbrezina@redhat.com> |
tests: allow changing cwd in all tests |
64f398dca52df6313169f33cfc20a69d51c3bc2b |
|
29-Mar-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
Return correct resolv_status on resolver timeout
https://fedorahosted.org/sssd/ticket/1274 |
89caf5edcc99f5731e89bd51e6ffaad3ec11c304 |
|
25-Aug-2011 |
Pavel Březina <pbrezina@redhat.com> |
New DEBUG facility - SSSDBG_UNRESOLVED changed from -1 to 0
Removed:
SSS_UNRESOLVED_DEBUG_LEVEL (completely replaced with SSSDBG_UNRESOLVED)
Added new macro:
CONVERT_AND_SET_DEBUG_LEVEL(new_value)
Changes unresolved debug level value (SSSDBG_UNRESOLVED) from -1 to 0
so DEBUG macro could be reduced by one condition. Anyway, it has a minor
effect, every time you want to load debug_level from command line parameters,
you have to use following pattern:
/* Set debug level to invalid value so we can deside if -d 0 was used. */
debug_level = SSSDBG_INVALID;
pc = poptGetContext(argv[0], argc, argv, long_options, 0);
while((opt = poptGetNextOpt(pc)) != -1) { ... }
CONVERT_AND_SET_DEBUG_LEVEL(debug_level); |
99dd40a885ed3d42af4bbbde7ee2fc98830544d0 |
|
25-Aug-2011 |
Pavel Březina <pbrezina@redhat.com> |
New DEBUG facility - conversion
https://fedorahosted.org/sssd/ticket/925
Conversion of the old debug_level format to the new one.
(only where it was necessary)
Removed:
SSS_DEFAULT_DEBUG_LEVEL (completely replaced with SSSDBG_DEFAULT) |
1240496176a07e804c57d43926509d5ccbf0fc41 |
|
15-Jun-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Switch resolver to using resolv_hostent and honor TTL |
fbae85bcb4b3940024f8e3c127fac9da3671302d |
|
30-Apr-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Sort SRV replies according to RFC 2782
RFC 2782 defines a way to sort replies to a SRV query. In short, the
algorithm sorts all replies by priority and then does a weight-based
selection for every priority level.
For details, please see the sections "Usage rules" for overview of the
algorithm and section "The 'Weight' field" for description on the weight
selection. |
bc7d61995ed04de885cb8e4bf4c5f2dcbc780649 |
|
08-Mar-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Do not run negative resolv test with no network
One of our resolv tests tries to resolve a nonexistent hostname. Do not
run this test unless we are explicitly told that a network connection
is available (-n). Also do not automatically resolving localhost. |
8f4aaae28c88c707853f8f28d8babc4efe0c1bf6 |
|
04-Mar-2010 |
Martin Nagy <mnagy@redhat.com> |
Add forgotten \n in DEBUG statements
Logs from confdb with missing '\n' in the DEBUG statements annoyed me so
I decided to fix them. I also made a quick grep through the code and
found other places so I fixed them too. |
9fb59763bce293c2490e0b9f8e97bb1f74ba0910 |
|
04-Mar-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Add --with-test-dir option to configure
All 'make check' tests will chdir() into this directory before
running the suite. This provides the option of having temporary
files generated in a tmpfs or ramdisk |
e0bb119bdc1549d731f371202428c0cb667d3388 |
|
22-Feb-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Restrict family lookups
Adds a new option that tells resolver which address family to prefer or
use exclusively.
Fixes: #404 |
1c48b5a62f73234ed26bb20f0ab345ab61cda0ab |
|
18-Feb-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Rename server/ directory to src/
Also update BUILD.txt |