b9e155da725e711ab306ca8a96e3ba6fbda41a3a |
|
21-Sep-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
AUTOFS: Fix offline resolution of autofs maps
If talking to the Data Provider failed, we never re-tried looking into
the cache. We should consult the cache on DP failures and return cached
results, if possible.
Resolves:
https://fedorahosted.org/sssd/ticket/3080
Reviewed-by: Pavel Březina <pbrezina@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> |
e563de9203be581acc30c7794f568ae40d22bee0 |
|
23-Oct-2015 |
Michal Židek <mzidek@redhat.com> |
Refactor some conditions
Conditions with get_next_domain were a little
confusing for coverity (but also for developers'
eyes).
Reviewed-by: Jakub Hrozek <jhrozek@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> |
4df706219e64527209f12ad0c7814ee1be979c07 |
|
30-Apr-2015 |
Aron Parsons <parsonsa@bit-sys.com> |
autofs: fix 'Cannot allocate memory' with FQDNs
https://fedorahosted.org/sssd/ticket/2643
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> |
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 |
620cbbcadd42627e55210045cac66c66df4f1243 |
|
18-Nov-2013 |
Aron Parsons <parsonsa@bit-sys.com> |
do not use default_domain_suffix with autofs |
e7d1cd14ce1a427007b1a7e9789dcb7e9619f84f |
|
15-Nov-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Drop the sysdb_ctx parameter from the autofs API |
4668b4765530cf37289235e483f301100cc1ae21 |
|
02-May-2013 |
Sumit Bose <sbose@redhat.com> |
Remove unused TALLOC_CTX from responder_get_domain()
Recent refactoring removed the need to copy the domain info data of
sub-domains because the related objects will not be removed from memory
anymore. |
cd2327153a9ac55f3cf470c294691506096bd1eb |
|
01-Mar-2013 |
Pavel Březina <pbrezina@redhat.com> |
autofs: fix invalid header 'number of entries' in packet
https://fedorahosted.org/sssd/ticket/1739
Pointer to packet body may change while filling packet with autofs
mount points. As a consequence, we sometimes wrote the number of
entries into invalid body and we recieved an arbitrary number
on the client side.
If the number was 0, there were some skipped entries. If the number
was greater than 0, everything worked correctly, because we iterate
through the cached entries until we reach packet length - we don't
compare to the number. |
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() |
2bd514cfde1938b1e245af11c9b548d58d49b325 |
|
23-Jan-2013 |
Jan Cholasta <jcholast@redhat.com> |
Check that strings do not go beyond the end of the packet body in autofs and SSH requests.
This fixes CVE-2013-0220.
https://fedorahosted.org/sssd/ticket/1781 |
2913240aee51ce81195148a4d814e967f66839c4 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb autofs functions |
1bcb68cc3069a6bd539289e68a87a0815aa2a1be |
|
18-Dec-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
AUTOFS: remove all maps from hash if request for auto.master comes in
https://fedorahosted.org/sssd/ticket/1592
When a request for auto.master comes in, we need to remove all the maps
from the lookup hash table. We can't simply delete the maps, because
another request might be processing them, so instead the maps are
removed from the hash table, effectively becoming orphaned. The maps
will get freed when the timed destructor is invoked. |
08c72b84d85d482f030a30cf74786695f097e91c |
|
18-Dec-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
AUTOFS: allow removing entries from hash table
There is a timed desctructor in the autofs responder that, when the
entry timeout passes, removes the autofs map from the hash table while
the map is freed. This patch adds a hash delete callback so that if the
map is removed from the hash table with hash_delete, its hash table
pointer will be invalidated. Later, when the entry is being freed, the
destructor won't attempt to remove it from the hash table. |
1542b85f13d72329685bdd97aa879c36d11f81be |
|
01-Oct-2012 |
Sumit Bose <sbose@redhat.com> |
Add new option default_domain_suffix |
3c60433641ce2e86b9b04778c8f8652ef0d097e4 |
|
13-Jun-2012 |
Stef Walter <stefw@gnome.org> |
Make re_expression and full_name_format per domain options
* Allows different user/domain qualified names for different
domains. For example Domain\User or user@domain.
* The global re_expression and full_name_format options remain
as defaults for the domains.
* Subdomains get the re_expression and full_name_format of
their parent domain.
https://bugzilla.redhat.com/show_bug.cgi?id=811663 |
5f93f452e4a80d6b0243eaf3c583d0caf9981ca0 |
|
03-May-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
AUTOFS: remove unused assignments
Also changes setautomntent_send so that is only return NULL in case the
tevent_req creation fails. |
6fdde3913a11cd6148627696fa8717c34e8460fc |
|
24-Apr-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Modified responder_get_domain()
Now it checks for subdomains as well as for the domain itself |
b7b50b21d2254a079b1b1c299909483d23db1512 |
|
29-Feb-2012 |
Sumit Bose <sbose@redhat.com> |
Remove sysdb_get_ctx_from_list() |
c83ebdbc0629313ef6594215ed1674b9a783cfdd |
|
27-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
AUTOFS: speed up the client by requesting multiple entries at once
https://fedorahosted.org/sssd/ticket/1166 |
5dfb1257f62839eea1c31669cf3bbcb114c22183 |
|
24-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
AUTOFS: Invoke implicit setautomntent if needed
https://fedorahosted.org/sssd/ticket/1167 |
129310e872a0a70e721ba59363e518176ef406d6 |
|
13-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
Allocate setent structure on state, not on the client context
https://fedorahosted.org/sssd/ticket/1189 |
2cba1c86f48db866fc72738a32eecbbdcdf3dbdb |
|
13-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
Remove setent structure when callback is called |
9e80079370ff3b943832adc3c5ef430e64be0a0c |
|
06-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
AUTOFS: responder |