History log of /sssd-io/src/db/sysdb_sudo.h
Revision Date Author Comments Expand
dee665060ba71ff61ad223e755ae61441118fbba 08-Sep-2017 Jakub Hrozek <jhrozek@redhat.com>

SUDO: Use initgr_with_views when looking up a sudo user The sudo responder code didn't take views into account when looking for rules, which resulted in sudo rules being ignored if the user's name was overriden. Please see the ticket for a detailed info on how to reproduce the bug. Resolves: https://pagure.io/SSSD/sssd/issue/3488 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

52cdb4275cf6c9ead9cdf746fad4276a554bc66f 25-Nov-2016 Lukas Slebodnik <lslebodn@redhat.com>

SYSDB: Remove unused prototype from header file The function sysdb_get_sudo_filter was removed as part of ticket #2919 Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

61913b8f0d1ba54d82640500d7486fac5f72b030 07-Jul-2016 Pavel Březina <pbrezina@redhat.com>

sudo: solve problems with fully qualified names sudo expects the same name in sudo rule as login name. Therefore if fully qualified name is used or even enforced by setting use_fully_qualified_names to true or by forcing default domain with default_domain_suffix sssd is able to correctly return the rules but sudo can't match the user with contect of sudoUser attribute since it is not qualified. This patch changes the rules on the fly to avoid using names at all. We do this in two steps: 1. We fetch all rules that match current user name, id or groups and replace sudoUser attribute with sudoUser: #uid. 2. We fetch complementry rules that contain netgroups since it is expected we don't have infromation about existing netgroups in cache, sudo still needs to evaluate it for us if needed. This patch also remove test for sysdb_get_sudo_filter since it wasn't sufficient anyway and I did not rewrite it since I don't thing it is a good thing to have filter tests that depends on exact filter order. Resolves: https://fedorahosted.org/sssd/ticket/2919 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

e2d26e97d62f06f65e8228b28746471cc5f73fe5 20-Apr-2016 Petr Cech <pcech@redhat.com>

SYSDB: Add new funtions into sysdb_sudo This patch adds two new functions into public API of sysdb_sudo: * sysdb_search_sudo_rules * sysdb_set_sudo_rule_attr Resolves: https://fedorahosted.org/sssd/ticket/2081 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

991c9f47fcb24704b880f60ab8ee77cfda056e2c 09-Mar-2016 Pavel Březina <pbrezina@redhat.com>

IPA SUDO: download externalUser attribute This allows configuration with id_provider = proxy and sudo_provider = ipa when someone needs to fetch rules for local users. https://fedorahosted.org/sssd/ticket/2972 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

a7d2b4f157194c14bc4a40c74f6416b82befa460 19-Jan-2016 Pavel Březina <pbrezina@redhat.com>

IPA SUDO: Add support for ipaSudoRunAsExt* attributes Reviewed-by: Sumit Bose <sbose@redhat.com>

cc7766c8456653ab5d7dedbf432cb1711a905804 19-Jan-2016 Pavel Březina <pbrezina@redhat.com>

IPA SUDO: Add ipasudocmd mapping Reviewed-by: Sumit Bose <sbose@redhat.com>

ed8650be18af26b7bf389e1246f7e8cdb363f829 19-Jan-2016 Pavel Březina <pbrezina@redhat.com>

IPA SUDO: Add ipasudocmdgrp mapping Reviewed-by: Sumit Bose <sbose@redhat.com>

a2057618f30a3c64bdffb35a2ef3c2ba148c8a03 19-Jan-2016 Pavel Březina <pbrezina@redhat.com>

IPA SUDO: Add ipasudorule mapping Reviewed-by: Sumit Bose <sbose@redhat.com>

68abbe716bed7c8d6790d9bec168ef44469306a1 19-Jan-2016 Pavel Březina <pbrezina@redhat.com>

SUDO: make sudo sysdb interface more reusable Reviewed-by: Sumit Bose <sbose@redhat.com>

7c30e60c525ea798aaab142766ff00eef4b5df3b 15-Jul-2014 Pavel Březina <pbrezina@redhat.com>

sudo: fetch sudoRunAs attribute This attribute was used in pre 1.7 versions of sudo and it is now deprecated by sudoRunAsUser and sudoRunAsGroup. However, some users still use this attribute so we need to support it to ensure backward compatibility. This patch makes sure that this attribute is downloaded if present and provided to sudo. Sudo than decides how to handle it. The new mapping option is not present in a man page since this attribute is deprecated in sudo for a very long time. Resolves: https://fedorahosted.org/sssd/ticket/2212 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

6a31a971a376a992afb838fe60b311360c970267 15-Nov-2013 Jakub Hrozek <jhrozek@redhat.com>

SYSDB: Drop the sysdb_ctx parameter from the sysdb_sudo.c module

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.

b0fa48b0d612b46a86e45f8e4b5d9feae9784c2b 15-Jan-2013 Simo Sorce <simo@redhat.com>

Add domain arguments to sysdb sudo functions

9675bccabff4e79d224f64611ad9ff3e073b488e 15-Jan-2013 Simo Sorce <simo@redhat.com>

Make sysdb_custom_subtree_dn() require a domain.

5a2cce34cf8843613b0b9dfde054b3d471dd5f3a 13-Dec-2012 Pavel Březina <pbrezina@redhat.com>

sudo: support generalized time format https://fedorahosted.org/sssd/ticket/1712 The timestamp doesn't have to be in the form yyyymmddHHMMSSZ any more. It can be in any form of generalized time format.

fb4e4c4eb6a6dc732370584f70d23dd4a2c5c7b6 07-Aug-2012 Pavel Březina <pbrezina@redhat.com>

Rename SYSDB_SUDO_CACHE_AT_OC to SYSDB_SUDO_CACHE_OC It does not contain name of the object class attribute but the value itself. I renamed it to avoid confusion.

dfafb437f49d31e015184e212571e9917aa94eef 29-Jun-2012 Pavel Březina <pbrezina@redhat.com>

sudo: clean up

f7af8c5b369938725e47585c641ae5b017d442a1 29-Jun-2012 Pavel Březina <pbrezina@redhat.com>

sudo sysdb: add expiration time to the filter

0f808798eefaedc3eb241f26aa49680d87f22336 29-Jun-2012 Pavel Březina <pbrezina@redhat.com>

sysdb: remove sudo_set/get_refreshed

44749ce0c1fee9babee80060fa0db99eebb2ab51 29-Jun-2012 Pavel Březina <pbrezina@redhat.com>

sysdb: add getter/setter for last sudo full refresh time

f5d4b05027acce06e3509ecb68869d1c7ef37180 17-Feb-2012 Pavel Březina <pbrezina@redhat.com>

Redesign purging of the sudo cache https://fedorahosted.org/sssd/ticket/1173

c9aab1c04c399ca2d1abef74f6df22ced34983dc 04-Feb-2012 Pavel Březina <pbrezina@redhat.com>

SUDO Integration - responder 'sudo_timed' option https://fedorahosted.org/sssd/ticket/1116

f6171b2bc954a367f316853ab71090eb213bdee3 27-Jan-2012 Pavel Březina <pbrezina@redhat.com>

SUDO Integration - make sysdb_get_sudo_filter() more configurable https://fedorahosted.org/sssd/ticket/1143

1a542b3698d8c42cf075b722f8838f106eb09fcc 17-Jan-2012 Pavel Březina <pbrezina@redhat.com>

SUDO Integration - functions for manipulating with 'refreshed' attribute https://fedorahosted.org/sssd/ticket/1110

3f98cdc011bb4e8cd22c088f288b0bcdb6452492 16-Dec-2011 Jakub Hrozek <jhrozek@redhat.com>

SUDO Integration - sysdb interface