a63d74f65db2db7389cd373cb37adcdaaa2d56ea |
|
29-Mar-2017 |
Michal Židek <mzidek@redhat.com> |
SUBDOMAINS: Allow use_fully_qualified_names for subdomains
Allow option use_fully_qualified_names in subdomain section.
This option was recently added to subdomain_inherit.
Resolves:
https://pagure.io/SSSD/sssd/issue/3337
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> |
57a924e71230ea360b19a88e0d5818cf01017161 |
|
08-Mar-2017 |
Petr Čech <pcech@redhat.com> |
sss_cache: User/groups invalidation in domain cache
When a group/users are invalidated from sss_cache, the group/user
information in domain and timestamps cache are inconsistent with
regard to dataExpireTimestamp attribute.
This patch fixes the problem by explicitly invalidating the domain
cache's entry when the timestamp cache entry is invalidated
by sss_cache call. There is one new function:
* sysdb_invalidate_cache_entry()
provided for this purpose and used only in sss_cache utility.
Resolves:
https://fedorahosted.org/sssd/ticket/3164
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> |
1330390c698ca0802200725df43356557aa633a2 |
|
10-Oct-2016 |
Justin Stephenson <jstephen@redhat.com> |
sss_cache: improve option argument handling
Print informational message and exit when multiple arguments are provided
for single-argument options with sss_cache
Resolves:
https://fedorahosted.org/sssd/ticket/3180
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
ebbeac5c6b8b87ab478ee5a04ec48fbbba0c9efc |
|
07-Jul-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Remove useless parameter from sysdb_init()
The function sysdb_init() is never used to allow upgrade, so the
allow_upgrade parameter was pointless.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
26c722d568b0061e0f1edb8d07093bf051d76083 |
|
07-Jul-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
SSS_OVERRIDE: Fixes for fully qualified names
Use sss_create_internal_fqname for internal cache lookups. Because the
object's existence is verified using getpw* and getgr*, we keep using
sss_tc_fqname there, just to feed the NSS interface the expected
qualified or unqualified name format.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
281748ae307a1842d55712335acbe54821793de5 |
|
07-Jul-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
SSS_CACHE: Don't use sss_get_domain_name, but create the internal fqname instead for users and groups
All users and groups are now stored in the cache using the same format,
so we can use that one instead of creating a domain-specific name.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
643b48013c1f556530eb2a89a8baf4aa40357278 |
|
07-Jul-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
SSS_CACHE: Make internal functions static
No need to export functions that are only used internally.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
fd3cbf6bfe86a245d7e90d2a355794eb9c70d525 |
|
20-Apr-2016 |
Petr Cech <pcech@redhat.com> |
TOOL: Invalidation of sudo rules at sss_cache
This patch adds new functionality to sss_cach for invalidation of given
sudo rule or all sudo rules.
Resolves:
https://fedorahosted.org/sssd/ticket/2081
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
be6d25ea38ddda232175aab5e297d8c6cb223551 |
|
20-Apr-2016 |
Petr Cech <pcech@redhat.com> |
SSS_CACHE: Refactor
Refactor of sss_cache tool.
Resolves:
https://fedorahosted.org/sssd/ticket/2081
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
877b92e80bde510d5cd9f03dbf01e2bcf73ab072 |
|
23-Oct-2015 |
Michal Židek <mzidek@redhat.com> |
util: Update get_next_domain's interface
Update get next domain to be able to
include disbled domains and change the
interface to accept flags instead of
multiple booleans.
Ticket:
https://fedorahosted.org/sssd/ticket/2673
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
b07a3b729892d2bc2ffa73d93de95e19003cc6c8 |
|
27-Jan-2015 |
Pavel Reichl <preichl@redhat.com> |
add missing '\n' in debug messages
Also reformat debug strings not to exceed 80 columns long lines.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
39c6d3d8e583e45d2b646b75e479a5e97f749156 |
|
12-Oct-2014 |
Lukas Slebodnik <lslebodn@redhat.com> |
TOOLS: Fix warning Value stored to is never read
dinfo->sysdb was stored to variable sysdb two times. The first time on line
132 and second time after testing for subdomain on line 143.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
3ac7c4fe618ede980a4df8d90341ef1fd0f1f62f |
|
05-Sep-2014 |
William B <william@adelaide.edu.au> |
SSS_CACHE: Allow sss_cache tool to flush SSH hosts cache
Resolves:
https://fedorahosted.org/sssd/ticket/2358
Signed-off-by: Jan Cholasta <jcholast@redhat.com>
Reviewed-by: Jan Cholasta <jcholast@redhat.com>
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> |
30ee051025753b63ceb19d3b83c44019a19554a1 |
|
12-Feb-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
SSS_CACHE: Reset the initgroups attribute when resetting users |
c246e2315cb8df1e347bec3b728f91b0c1264f93 |
|
19-Dec-2013 |
Sumit Bose <sbose@redhat.com> |
sss_cache: fix case-sensitivity issue
For case-insensitive domains the lower-case name for case-insensitive
searches is stored in SYSDB_NAME_ALIAS.
Related to https://fedorahosted.org/sssd/ticket/1741 |
d2791a492d8f0a9df73fc7a683b3f712abf80f3f |
|
19-Dec-2013 |
Sumit Bose <sbose@redhat.com> |
sss_cache: initialize names member of sss_domain_info
sss_tc_fqname() called by sss_get_domain_name() requires that the names
member of the sss_domain_info struct is set to work properly. If the
names struct is properly initialized in sss_domain_info the separate one
in the tool context is not needed anymore.
Related to https://fedorahosted.org/sssd/ticket/1741 |
78c4b29420855b9f5384cd5e052fc9369c57d899 |
|
27-Nov-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Remove unused parameter from search_autofsmaps |
e2640b7a0ccfe2b00311d20ae18006ccc82a834c |
|
27-Nov-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Remove unused parameter from invalidate_entry |
d115f40c7a3999e3cbe705a2ff9cf0fd493f80fb |
|
15-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Drop the sysdb_ctx parameter - module sysdb_ops (part 2) |
4c08db0fb0dda3d27b1184248ca5c800d7ce23f0 |
|
15-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Drop the sysdb_ctx parameter - module sysdb_ops (part 1) |
4fcc50e133f90cd4c5931a3ac48c84cb628b16fc |
|
15-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Drop the sysdb_ctx parameter from the sysdb_services module |
e7d1cd14ce1a427007b1a7e9789dcb7e9619f84f |
|
15-Nov-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Drop the sysdb_ctx parameter from the autofs API |
898c4f965aeea2aa029ad56b9e9f48abce17a582 |
|
25-Jul-2013 |
Yuri Chornoivan <yurchor@ukr.net> |
Fix two minor typos |
9651a27ec14f3a378e861ca39852480f37f1ef08 |
|
10-Jul-2013 |
Michal Zidek <mzidek@redhat.com> |
sss_cache: Add option to invalidate all entries
Option -E/--everething was added to invalide all types of entries.
https://fedorahosted.org/sssd/ticket/1988 |
02d1cb8935d5c9b57cd05dfdbfe6ed38e0d61c28 |
|
07-Jun-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
New utility function sss_get_domain_name
Instead of copying a block of code that checks whether domain is a subdomain
and uses only name of FQDN as appropriate, wrap the logic into a function. |
1987bff88e01c74d647dd2db4f541ac311537e1a |
|
30-May-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
Add utility functions for formatting fully-qualified names
Instead of using printf-like functions directly, provide two wrappers
that would encapsulate formatting the fully-qualified names. No
functional change is present in this patch. |
eeee8d4e089830d337f217ec4921421ab448a8ec |
|
15-Apr-2013 |
Michal Zidek <mzidek@redhat.com> |
sss_cache: Remove annoying messages
When requested entry was not found in one domain, an ERROR message
was written to the user even if the entry was found in
the next domain and deleted properly. |
72bb31d9a093bff7b8c7f973b057ed4e9e41d4ca |
|
15-Apr-2013 |
Michal Zidek <mzidek@redhat.com> |
sss_cache: support for subdomains
https://fedorahosted.org/sssd/ticket/1741 |
2ba16c5a5c4b6d3cd2a44179186ec60eda828bcd |
|
05-Mar-2013 |
Michal Zidek <mzidek@redhat.com> |
Remove the alt_db_path parameter of sysdb_init
This parameter was never used.
https://fedorahosted.org/sssd/ticket/1765 |
0232747f04b650796db56fd7b487aee8a96fab03 |
|
10-Feb-2013 |
Simo Sorce <simo@redhat.com> |
Add function get_next_domain()
Use this function instead of explicitly calling domain->next
This function allows to get the next primary domain or to descend into the
subdomains and replaces also get_next_dom_or_subdom() |
f82135b75f0574e65c73269d6f24d42ba025b8e2 |
|
16-Jan-2013 |
Michal Zidek <mzidek@redhat.com> |
sss_cache: Call DEBUG_INIT sooner
If bad parameteres were passed to sss_cache, the init
function returned without calling DEBUG_INIT macro and
unnecessary level 1 debug message was printed.
https://fedorahosted.org/sssd/ticket/1745 |
681742138b2afbbefa7f14de937beb438409208e |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain arguments to sysdb services functions
also fix sysdb_svc_add declarations |
2913240aee51ce81195148a4d814e967f66839c4 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb autofs functions |
84c986f9bb2767d8930b6f5d92d34b09b8fabe60 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain arg to sysdb_search/delete_netgroup() |
2b7ee2a760e7fcc70f4970a3bbee6fbf8f2ccb9d |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb_search_groups() |
044868b388b4e47499f12a9105310b247bbe1ce2 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain arg to sysdb_search_users() |
770896b194b7b66b09c2a30545b4d091fd86b1f4 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb_search_custom()
Also changes sysdb_search_custom_by_name() |
3187afe4aafa562f2a6747846181ac06d0659dff |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb_set_netgroup_attr() |
20d2466dbce2bb950813e3f739bc40b511020efb |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb_set_group_attr() |
3f94d6718d44185137e13b6d326dfd63e8dc61c6 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb_set_user_attr() |
1e6f2180724de4722a5218826c9401181168d9d4 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Remove the sysdb_ctx_get_domain() function.
We are deprecating sysdb->domain so kill the function that gives access to
this member as we should stop relying on it being available (or correct). |
234958be042980242fff6da936af674da877c5ef |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Refactor single domain initialization
Bring it out of sysdb, which will slowly remove internal dependencies on
domains and instead will always require them to be passed by callers. |
72aa8e7b1d234b6b68446d42efa1cff22b70c81b |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Refactor sysdb initialization
Change the way sysdbs are initialized. Make callers responsible for providing
the list of domains.
Remove the returned array of sysdb contexts, it was used only by sss_cache
and not really necessary there either as that tool can easily iterate the
domains.
Make sysdb ctx children of their respective domains.
Neither sysdb context nor domains are ever freed until a program is done so
there shouldn't be any memory hierarchy issue. As plus we simplify the code by
removing a destructor and a setter function. |
e3ce042be3a6c66aa720fc139f557b065ae6dc5e |
|
14-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Use new sysdb_search_service() in sss_cache
Also fixes https://fedorahosted.org/sssd/ticket/1754 |
480195bd70467bf05e2fd92cf25cec822a670ced |
|
09-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Revert "Add a default section to a switch-statement"
This reverts commit d698499602461b98fd56f2d550f80c6cb25f12a9.
And adds the correct fix.
Also makes the function static,as it is used nowehere else. |
d698499602461b98fd56f2d550f80c6cb25f12a9 |
|
09-Jan-2013 |
Sumit Bose <sbose@redhat.com> |
Add a default section to a switch-statement
Besides adding the missing default this patch suppresses a compiler
warning about ret being uninitialized. |
2eaf2045b5b55cdaff6ae5704225cf9a75b16950 |
|
08-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Remove unhelpful vtable from sss_cache
Using a vtable like this has various drawacks, including the fact prototypes
are not checked by the compiler so the code could silently break and still
compile fine (in fact I found this out changing one of the prototypes).
A switch statement is also better because it catches if the enum changed and
won't risk allowing to access the table out of bounds. |
d27d11b360b92f1728206802005bb3da359e1ea4 |
|
04-Jan-2013 |
Michal Zidek <mzidek@redhat.com> |
sss_cache: fqdn not accepted
sss_cache did not accept fully quaified domain names.
https://fedorahosted.org/sssd/ticket/1620 |
a290ace39af184d878568e17588b6b2210aea63f |
|
28-Nov-2012 |
Michal Zidek <mzidek@redhat.com> |
sss_cache: Small refactor.
The logic that checks if sssd_nss is running and then
sends SIGHUP to monitor or removes the caches was moved
to a function sss_memcache_clear_all() and made public in
tools_util.h. |
4c9a85ab708ec7debecad51e4240e04d8bc6ca4e |
|
19-Nov-2012 |
Ondrej Kos <okos@redhat.com> |
Display more information on DB version mismatch
https://fedorahosted.org/sssd/ticket/1589
Added check for determining, whether database version is higher or
lower than expected. To distinguish it from other errors it uses
following retun values (further used for appropriate error message):
EMEDIUMTYPE for lower version than expected
EUCLEAN for higher version than expected
When SSSD or one of it's tools fails on DB version mismatch, new error
message is showed suggesting how to proceed. |
33cbb789ff71be5dccbb4a0acd68814b0d53da34 |
|
06-Nov-2012 |
Michal Zidek <mzidek@redhat.com> |
sss_cache: Remove fastcache even if sssd is not running.
https://fedorahosted.org/sssd/ticket/1584 |
69f6f2ed116d1c987851bfcc410cf2bdd1b0cc97 |
|
06-Nov-2012 |
Michal Zidek <mzidek@redhat.com> |
sss_cache: Multiple domains not handled properly
When working with multiple domains and no
matching objects for deletion were found in the first
domain, the other domains were not searched at all.
Also the ERROR message informing about object not found
(the one printed for each domain) was changed to
DEBUG message. |
9e2c64c6d4f5560e27207193efea6536a566865e |
|
29-Oct-2012 |
Michal Zidek <mzidek@redhat.com> |
Include talloc log in our debug facility
https://fedorahosted.org/sssd/ticket/1495 |
99c99e557020775714f028b28a147edda290c783 |
|
24-Sep-2012 |
Michal Zidek <mzidek@redhat.com> |
sss_cache tool invalidates records in memory cache. |
21d485184df986e1a123f70c689517386e51a5ce |
|
23-Aug-2012 |
Michal Zidek <mzidek@redhat.com> |
Unify usage of sysdb transactions
Removing bad examples of usage of sysdb_transaction_start/commit/end
functions and making it more consistent (all files except of
src/db/sysdb_*.c). |
95cc95749a5e783f2b5d2124d783f85820baf937 |
|
22-May-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
Always use positional arguments in translatable strings
https://fedorahosted.org/sssd/ticket/1336 |
da0b829a2002987339aadaa01b85adbb5ddba20d |
|
18-Apr-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
sss_cache: Better error reporting
* Print usage when no options are given
* Report skipped entries
* Print error message when a nonexistent domain is selected
https://fedorahosted.org/sssd/ticket/1301
https://fedorahosted.org/sssd/ticket/1305
https://fedorahosted.org/sssd/ticket/1306 |
82b5429d1438392c45e70a0f84dd4d0f5fa1a171 |
|
18-Apr-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
sss_cache: support invalidating services and autofs maps
https://fedorahosted.org/sssd/ticket/1170 |
d2d2d6ae0c436461bcc8f881df059eb036314c44 |
|
29-Feb-2012 |
Sumit Bose <sbose@redhat.com> |
Keep sysdb context in domain info struct |
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) |
e79d23932ef9d52cf4eb32ddec2d0a9b3af9a9eb |
|
15-Aug-2011 |
Jan Zeleny <jzeleny@redhat.com> |
sysdb refactoring: memory context deleted
This patch deletes memory context parameter in those places in sysdb
where it is not necessary. The code using modified functions has been
updated. Tests updated as well. |
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. |
d35c8317ed23aff66fde8147bfa2ea91f43a12e4 |
|
16-May-2011 |
Jan Zeleny <jzeleny@redhat.com> |
Fixed uninitialized value in sss_cache
https://fedorahosted.org/sssd/ticket/865 |
c737e1444fb186e349e59bfa9dac4995b720b4b1 |
|
04-May-2011 |
Jan Zeleny <jzeleny@redhat.com> |
Cache cleaning tool |