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> |
b3ca35780617b2e5a7637f9888b089e8e26a4e8c |
|
19-Apr-2016 |
Pavel Březina <pbrezina@redhat.com> |
sudo: convert get_sudorules to tevent
There was a lot of confusion with different error codes
and where to call sudosrv_cmd_done to finish the client
request. Converting it whole to tevent makes it much
more simpler to read and follow the request logic.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
15d41c8f28259061e39715acdbbbaea778b6ecc8 |
|
19-Apr-2016 |
Pavel Březina <pbrezina@redhat.com> |
sudo: do not use tevent when parsing query
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
52300e30a0ec0bbfa1b0918ee0b495f06f5d142a |
|
19-Apr-2016 |
Pavel Březina <pbrezina@redhat.com> |
sudo: use cache_req for initgroups
This is just blind code change, the next patch will improve it so
for example we don't do initgroups during query-parsing phase.
Resolves:
https://fedorahosted.org/sssd/ticket/1126
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
2a25713afc6beefb11a799903a43f695c5d7a4f9 |
|
14-Apr-2015 |
Adam Tkac <vonsch@gmail.com> |
Option filter_users had no effect for retrieving sudo rules
Previously sssd_sudo always obtained sudo rules for user from LDAP even
when user was enlisted in filter_users.
Resolves https://fedorahosted.org/sssd/ticket/2625
Reviewed-by: Pavel Březina <pbrezina@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> |
55fdd0d28e7c88f333ad78183b0ba37a1da34160 |
|
01-Oct-2013 |
Pavel Březina <pbrezina@redhat.com> |
sudo: improve time restrictions debug messages |
5ff1c3c5a12930692cb6284d14f7fda3a974af8e |
|
22-Jan-2013 |
Pavel Březina <pbrezina@redhat.com> |
sudo responder: change num_rules type from size_t to uint32_t
https://fedorahosted.org/sssd/ticket/1779
2^32 should be enough to store sudo rules. size_t type was causing
troubles on big endian architectures, because it wasn't used
correctly in combination with D-Bus. |
b510d909cbe8d8216b60ee070730dd5c41294303 |
|
02-Dec-2012 |
Pavel Březina <pbrezina@redhat.com> |
sudo: print message if old protocol is used |
7379170a0860790f2739e07fffe3d6ec85264566 |
|
14-Nov-2012 |
Pavel Březina <pbrezina@redhat.com> |
sudo: do not send domain name with username
This caused troubles with subdomain users and it is not really
necessary. This patch does not change the protocol itself, that
should be done on the earliest possible occasion.
Part of https://fedorahosted.org/sssd/ticket/1616 |
d38ffc9c92daeb62de7d28c409bdaeff98f82775 |
|
14-Nov-2012 |
Pavel Březina <pbrezina@redhat.com> |
sudo: support users from subdomains
https://fedorahosted.org/sssd/ticket/1616 |
d117004902c767d46430848b6ef1c11c3ad82835 |
|
30-Oct-2012 |
Pavel Březina <pbrezina@redhat.com> |
sudo: do not hardcode protocol version |
76db25eab9010a33657f35e5afc8477c996df7a3 |
|
29-Jun-2012 |
Pavel Březina <pbrezina@redhat.com> |
sudo responder: new request enum type
sss_sudo_type represents query type that comes to the responder
sss_dp_sudo_type represents query type to DP that is issued by the responder
I'm leaving current values of sss_dp_sudo_type untouched so the compilation
is not broken. Hovewer, they will be changed to new DP types once the DP
interface is updated. |
04b3ab7658985af749460010123bbe37eccf50ed |
|
29-Jun-2012 |
Pavel Březina <pbrezina@redhat.com> |
sudo responder: change protocol version to 1 |
46d3d2c731e8c7e138462e5b60a39a279dc77d81 |
|
29-Jun-2012 |
Pavel Březina <pbrezina@redhat.com> |
sudo api: send uid, username and domainname
https://fedorahosted.org/sssd/ticket/1239
Test client was changed accordingly. The new usage is:
sss_sudo_cli username [uid]
If uid is not set, getpwnam(username) is called. It will retrieve
both default options and rules. |
b0abb3bfdfd95951a23c9fc223c735805ffd2969 |
|
29-Jun-2012 |
Pavel Březina <pbrezina@redhat.com> |
sudo responder: get rid of dctx where possible |
710472d946f6c337a095699dfd79134fa8b9eab9 |
|
29-Jun-2012 |
Pavel Březina <pbrezina@redhat.com> |
sudo responder: remove code duplication in commands |
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 |
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 |
1509d1723d39124f840c214327e698aff3b3f683 |
|
09-Mar-2012 |
Pavel Březina <pbrezina@redhat.com> |
Potential NULL-dereference in sudosrv_cmd_get_sudorules
https://fedorahosted.org/sssd/ticket/1236 |
278284224aa10805d58c978977e43b1d1126f9b1 |
|
24-Feb-2012 |
Pavel Březina <pbrezina@redhat.com> |
Honor case_sensitive option in sudo responder
https://fedorahosted.org/sssd/ticket/1205 |
21a053f0b004eef4c8beb4b36ed13a55c9ee1e28 |
|
10-Feb-2012 |
Pavel Březina <pbrezina@redhat.com> |
SUDO responder: check if the input is a UTF-8 string
https://fedorahosted.org/sssd/ticket/1171 |
c9aab1c04c399ca2d1abef74f6df22ced34983dc |
|
04-Feb-2012 |
Pavel Březina <pbrezina@redhat.com> |
SUDO Integration - responder 'sudo_timed' option
https://fedorahosted.org/sssd/ticket/1116 |
41ef946f3f74a46b9e26118116e4811e259b30ef |
|
04-Feb-2012 |
Pavel Březina <pbrezina@redhat.com> |
SUDO Integration - in-memory cache in responder
New sudo responder option: cache_timeout
https://fedorahosted.org/sssd/ticket/1111 |
c47e9d522f0d87259e5074ea643daaa3dfcb8d92 |
|
27-Jan-2012 |
Pavel Březina <pbrezina@redhat.com> |
SUDO Integration - responder command for cn=defaults
https://fedorahosted.org/sssd/ticket/1143 |
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3 |
|
16-Dec-2011 |
Pavel Březina <pbrezina@redhat.com> |
SUDO Integration - responder |