3b99f7a97553a0a357d50abe507d4f0060c4ecea |
|
20-Jun-2016 |
Pavel Březina <pbrezina@redhat.com> |
Rename dp_ptask to be_ptask
Reviewed-by: Sumit Bose <sbose@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
ef5e33f7db1e314226b0077596e38ef16305cba5 |
|
17-Mar-2016 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: be able to parse modifyTimestamp correctly
We were unable to parse modifyTimestamp where a non-numeric part
(timezone) was involved. The format is YYYYMMDDHHmmssZ. It may
also contain fraction or different timezone, everytime separated
from the datetime by character. This patch gets the numberic part
and then appends the string part again to get value usable in filter.
Resolves:
https://fedorahosted.org/sssd/ticket/2970
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
1476d5348fcf387e7481d833becbd993d91f8019 |
|
19-Jan-2016 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: simplify usn filter
usn >= current && usn != currect is equivalent to usn >= current + 1
Reviewed-by: Sumit Bose <sbose@redhat.com> |
f58ffb26aeaae0642a149643672fa59ec01a3a36 |
|
19-Jan-2016 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: remember usn as number instead of string
Reviewed-by: Sumit Bose <sbose@redhat.com> |
8bd44a13de231d025882810c720dd07ca4ee564d |
|
19-Jan-2016 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: assume zero if usn is unknown
When we switched to be_ptaks full_refresh_done has become obsolete since
timing is handled in a better way. In case of unknown USN we assume zero
which allows us to disable full refresh completely in configuration.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
43bbf5b158ec3152806791ca49ae224ee978de24 |
|
19-Jan-2016 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: remove full_refresh_in_progress
When we switched to be_ptask this variable has become obsolete.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
85feb8d77a2c832787880944e02104846c4d5376 |
|
19-Jan-2016 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: move code shared between ldap and ipa to separate module
Reviewed-by: Sumit Bose <sbose@redhat.com> |
c0000a8cc9eccdf5cd8dd72fd6e9bc09d8c7cf00 |
|
15-Dec-2015 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: do not imitate full refresh if usn is unknown in smart refresh
USN value should be always known now if at least one full refresh
was successful.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
1ab2b07c71da6c19c3855e390d10156d598c06a2 |
|
15-Dec-2015 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: built host filter inside sdap_sudo_refresh request
Preparation for:
https://fedorahosted.org/sssd/ticket/2672
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
a00c89f23bd50d4fd9cf24aa09037c997781b8c9 |
|
15-Dec-2015 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: set USN inside sdap_sudo_refresh request
Reduce code duplication.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
efa19bb588ce1dc6c3f4b94b94464886ad764d09 |
|
15-Dec-2015 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: fix sdap_sudo_smart_refresh_recv()
This fix huge violation of tevent coding style.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
24eac34a8c1f0a284cb697e8d5c09ff049181691 |
|
15-Dec-2015 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: fix tevent style
Rearrage and rename functions in sdap_async_sudo.c to obey
tevent style and improve readability.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
fc19031212369d69a9693ac8777ce1e61a16fe93 |
|
15-Dec-2015 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: simplify error handling
This patch removes state->error and uses only ret instead since
state->error was only duplication anyway.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
00fea5c2aaa0277bea522d2f61de75699ee2ed49 |
|
15-Dec-2015 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: move refreshes from sdap_sudo.c to sdap_sudo_refresh.c
sdap_sudo.c will contain only initialization and handlers.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
a13cf3d295a4a6654dfa7e4193c0a2bc8bb78e92 |
|
15-Dec-2015 |
Pavel Březina <pbrezina@redhat.com> |
SUDO: convert periodical refreshes to be_ptask
This removes old sudo timer and simplyfies code a lot. It also
allows to manage offline/online state.
- Full and smart refresh are disabled when offline.
- Full refresh is run immediately when sssd is back online.
- Smart refresh is scheduled normally when sssd is back online.
Resolves:
https://fedorahosted.org/sssd/ticket/1943
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |