ee164913f9c12a557044eb469f4498b9be9a8f50 |
|
28-Aug-2017 |
Fabiano Fidêncio <fidencio@redhat.com> |
IPA_RULES_COMMON: Introduce ipa_common_get_hostgroupname()
By moving the get_ipa_hostgroupname() method from ipa_hbac_hosts.[ch] to
ipa_rules_common.[ch] it can be used by both HBAC and, in the future,
for new backend modules.
The method got renamed to ipa_common_get_hostgroupname() and some coding
style changes have been made in order to match with what SSSD follows.
Related:
https://pagure.io/SSSD/sssd/issue/2995
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
21909d3b620d97e81dd946b959a47efe88d2b7d8 |
|
28-Aug-2017 |
Fabiano Fidêncio <fidencio@redhat.com> |
IPA: Leave only HBAC specific defines in ipa_hbac_private.h
The defines that were moved can and will be used by another backend
module that will be introduced in the near future.
Related:
https://pagure.io/SSSD/sssd/issue/2995
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
1243e093fd31c5660adf1bb3dd477d6935a755be |
|
24-Mar-2015 |
Jakub Hrozek <jhrozek@redhat.com> |
IPA: Use custom error codes when validating HBAC rules
https://fedorahosted.org/sssd/ticket/2603
Instead of reusing EINVAL/ENOENT, use more descriptive error codes. This
will be useful in the next patch where we act on certain codes.
Reviewed-by: Pavel Březina <pbrezina@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> |
d115f40c7a3999e3cbe705a2ff9cf0fd493f80fb |
|
15-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Drop the sysdb_ctx parameter - module sysdb_ops (part 2) |
caf576da562bf7bd30e74ad921c1212ec7d230bc |
|
13-Sep-2013 |
Ondrej Kos <okos@redhat.com> |
IPA: Deprecate ipa_hbac_support_srchost option
This option got already deprecated on the ipa server side.
Option is undocumented and warning is printed both to the sssd log files
and syslog.
Resolves:
https://fedorahosted.org/sssd/ticket/1918 |
18cb0d6489d01a61a2f7bf53815f53a58e9ade0d |
|
21-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Remove sysdb arg from hbac_*host_attrs_to_rule() |
770896b194b7b66b09c2a30545b4d091fd86b1f4 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb_search_custom()
Also changes sysdb_search_custom_by_name() |
fdab7bbf8933351f6254438c30ff361cd748b15a |
|
24-Feb-2012 |
Jan Zeleny <jzeleny@redhat.com> |
IPA hosts refactoring |
ad07ed37b6b51ef134d4524edaf2259e19ac984f |
|
06-Feb-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Separate the host-retrieval code from IPA HBAC to common IPA code |
c32484c393dac7f8dda6d2512e9aa51864abd8fe |
|
06-Feb-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Fixed minor memory-hierarchy-related issue in IPA HBAC |
ef479645b5e038a0e06d7d10b3c924227deafa52 |
|
17-Jan-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
Raise the debug level of two very noisy statements |
c935271de3b99d35112e0faf854cbfa9dfaa104a |
|
14-Jan-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Support multiple search bases in HBAC |
6fb75e297bf7fc83e3db1f5ae8560624656ef319 |
|
29-Nov-2011 |
Jan Zeleny <jzeleny@redhat.com> |
Add ipa_hbac_support_srchost option to IPA provider
don't fetch all host groups if this option is false
https://fedorahosted.org/sssd/ticket/1078 |
ac3a1f3da772cf101101c31675c63dc3549b21b5 |
|
22-Nov-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Cleanup: Remove unused parameters |
c1fcc832ccfc237caac8b99be238cf2d598f908c |
|
14-Oct-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
HBAC: Use originalMember for identifying hostgroups |
c2160564b280be4c44453e04f62220b97504fc91 |
|
07-Sep-2011 |
Sumit Bose <sbose@redhat.com> |
Do not access memory out of bounds |
473c90800239fc54eaab9d3dc3194582b039d614 |
|
26-Aug-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
HBAC: Use of hostgroups for targethost or sourcehost was broken
We were trying to look up the wrong attribute for the name of the
hostgroup. |
8a1738f9379a1b8fb5c95c3df649e014ff5a1434 |
|
15-Aug-2011 |
Jan Zeleny <jzeleny@redhat.com> |
sysdb refactoring: deleted domain variables in sysdb API
The patch also updates code using modified functions. Tests have also
been adjusted. |
e134a6af42102c8d865e82bf89e0b8c5a40fb5fa |
|
08-Jul-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Add helper functions for looking up HBAC rule components |