9dc081500979616f9af623ebe2d52837c211759f |
|
04-Aug-2016 |
Michal Židek <mzidek@redhat.com> |
sss_ini: Change debug level of config error msgs
Syntax errors in configuration files
prevent SSSD or sssctl to start completely.
It would be good to display these errors
by default with the highest level.
Reviewed-by: Petr Čech <pcech@redhat.com> |
e088912418fd4db750f2097dfde8ef9b77303f05 |
|
07-Jul-2016 |
Michal Židek <mzidek@redhat.com> |
sssctl: Add config-check command
Fixes:
https://fedorahosted.org/sssd/ticket/2269
sssctl sconfig-check command allows to
call SSSD config file validators on
demand.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
199984c7972272f8162a356cda139c22f6f08556 |
|
07-Jul-2016 |
Michal Židek <mzidek@redhat.com> |
sss_ini: Small refacoring of sss_ini_call_validators
Separate logic to fill errobj so that
the errors can be printed by the caller.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
e27c0ecef59272d4723f904a17061b4e59f0a6db |
|
01-Jul-2016 |
Michal Židek <mzidek@redhat.com> |
config: Fix filename matching regex
Configuration file snippets must end with suffix
.conf. We wrongly allowed any suffixes that begin
with .conf (for example .conf.back).
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
8b2a31634764168183506925a4b9f461afdba6f3 |
|
27-Jun-2016 |
Michal Židek <mzidek@redhat.com> |
confdb: Check for config file errors on sssd startup
Resolves:
https://fedorahosted.org/sssd/ticket/2028
Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
cca497b4cbbbf05c4f9181b7d8113cde81754831 |
|
27-Jun-2016 |
Michal Židek <mzidek@redhat.com> |
confdb: Make it possible to use config snippets
Resolves:
https://fedorahosted.org/sssd/ticket/2247
Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
87f8bee53ee1b4ca87b602ff8536bc5fd5b5b595 |
|
17-Mar-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
Add missing new lines to debug messages
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
a81e80c817808f4bb41d5219b04dbf73c943821e |
|
29-Jul-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
build: Reverse order of libini_config checks
Check for lowest versions of libini_config first, instead of the highest ones
in libini_config.m4. Define HAVE_LIBINI_CONFIG_V* for lower versions when
higher versions are present. Simplify preprocessor branching in sss_ini.c
accordingly.
This prepares libini_config.m4 for addition of a check for one more version of
libini_config.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
a5f79cce8abc74beec0c27c477c046bb6cbe7101 |
|
28-Apr-2014 |
Simo Sorce <simo@redhat.com> |
confdb: Change file checks for config file
We only really care that the file is readable by the owner and not
accessible by group or others. We do not really care whether the owner
can write/execute the file or not, so we mask out those perms.
Resolves:
https://bugzilla.redhat.com/1089098
Resolves:
https://fedorahosted.org/sssd/ticket/2321
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
9a592ee3fc195f20732c6b1f90894a0be25ccc19 |
|
28-Apr-2014 |
Simo Sorce <simo@redhat.com> |
util: Change file check fns to use a mode mask
Instead of using a custom way to chck file type, use the system
provided macros and a mode mask to decide when we want to check.
Additionally a mask also allows us to selectively check permissions.
Related:
https://bugzilla.redhat.com/1089098
Resolves:
https://fedorahosted.org/sssd/ticket/2321
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
fa0938a6e3cb928602633c3da0b909deb269369d |
|
14-Mar-2014 |
Lukas Slebodnik <lslebodn@redhat.com> |
Use pattern #elif defined(identifier)
We had in source code following pattern #elif HAVE_<name>
It worked because undefined identifier(in some cases) was evaluated to 0.
But we do not care about value of HAVE_SOMETHING. We just need to know
whether identifier was defined.
There is not equivalent to #ifdef (short for of #if definded)
We need to use long form: #elif defined HAVE_<name>
It causes also compiler warning with enabled compiler flag -Wundef.
Reviewed-by: Pavel Reichl <preichl@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> |
f322968cb3e9187eb5ddc9d575fa77027b71bb3b |
|
11-Oct-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
INI: Disable line-wrapping functionality
Supporting the latest INI release brought an incompatible change. Lines
beginning with a whitespace were treated as continuation of the previous
line. This patch reverts to ignoring the whitespace as we did previously
so that the existing configurations keep working. |
2f6b38151c6dd21cbe0cf2579c20f8c5a358d956 |
|
21-May-2013 |
Ondrej Kos <okos@redhat.com> |
DB: Fix segfault when configuration file cannot be parsed
https://fedorahosted.org/sssd/ticket/1934 |
fcc79e09b7c1777bef90874956bd89ac9c3b5832 |
|
03-May-2013 |
Ondrej Kos <okos@redhat.com> |
CONFDB: prevent double free
https://fedorahosted.org/sssd/ticket/1901
CID: 11634 |
7de6e3534fd61c7619ed34a6b1afe7230b5e6504 |
|
26-Apr-2013 |
Ondrej Kos <okos@redhat.com> |
DB: Switch to new libini_config API
https://fedorahosted.org/sssd/ticket/1786
Since we need to support the old interface as well, the configure scritp
is modified and correct ini interface is chosen. |