History log of /sssd-io/src/db/sysdb_views.c
Revision Date Author Comments Expand
d0d3631242178f0b6fccf08baeca1a57f28771fa 23-Jan-2018 Fabiano Fidêncio <fidencio@redhat.com>

SYSDB_VIEWS: Remove sshPublicKey attribute when it's not set We have to explicitly remove 'sshPublicKey' attribute from an override in case it's not set, otherwise we may ended up in a situation where a ssh key is removed from IPA but it'll still be present in SSSD's server cache, allowing then users to ssh to a machine even having a key that has already been removed from IPA. Related: https://pagure.io/SSSD/sssd/issue/3602 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com>

4671acb949c65c5c080532e03b1b6f1c9377a6a5 01-Dec-2017 Sumit Bose <sbose@redhat.com>

overrides: fixes for sysdb_invalidate_overrides() There were two issues in sysdb_invalidate_overrides(). First, SYSDB_CACHE_EXPIRE was only reset for the entry in the data cache but not in the timestamp cache. Second, if one of the steps in the combined replace and delete operation failed no change was committed to the cache. If, for whatever reasons, a user or group object didn't had SYSDB_OVERRIDE_DN set the delete failed and hence SYSDB_CACHE_EXPIRE wasn't reset as well. To make sure the cache is in a consistent state after a view change the replace and the delete operations are don in two steps. Related to https://pagure.io/SSSD/sssd/issue/3579 Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

a02a5ed51178b2cbede0396d66aed716b8898096 25-Oct-2017 René Genz <liebundartig@freenet.de>

Fix minor spelling mistakes Merges: https://pagure.io/SSSD/sssd/pull-request/3556 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

/sssd-io/contrib/sssd.spec.in sysdb_private.h sysdb_views.c /sssd-io/src/examples/sssd-example.conf /sssd-io/src/lib/idmap/sss_idmap.doxy.in /sssd-io/src/man/sssd-secrets.5.xml /sssd-io/src/providers/ad/ad_gpo.c /sssd-io/src/providers/be_dyndns.c /sssd-io/src/providers/data_provider/dp_request.c /sssd-io/src/providers/krb5/krb5_child.c /sssd-io/src/providers/ldap/sdap_async_sudo.c /sssd-io/src/responder/kcm/kcmsrv_ccache_json.c /sssd-io/src/responder/kcm/kcmsrv_op_queue.c /sssd-io/src/sbus/sssd_dbus_connection.c /sssd-io/src/shared/safealign.h /sssd-io/src/sss_client/autofs/sss_autofs.c /sssd-io/src/sss_client/idmap/sss_nss_idmap.doxy.in /sssd-io/src/sss_client/libwbclient/wbc_pwd_sssd.c /sssd-io/src/sss_client/sudo/sss_sudo.h /sssd-io/src/tests/cmocka/common_mock_resp_dp.c /sssd-io/src/tests/cmocka/test_sbus_opath.c /sssd-io/src/tools/common/sss_process.c /sssd-io/src/tools/common/sss_process.h /sssd-io/src/tools/sssctl/sssctl.c /sssd-io/src/tools/sssctl/sssctl_data.c /sssd-io/src/util/crypto/libcrypto/crypto_sha512crypt.c /sssd-io/src/util/crypto/nss/nss_sha512crypt.c /sssd-io/src/util/server.c /sssd-io/src/util/sss_ini.h /sssd-io/src/util/tev_curl.c /sssd-io/src/util/util_lock.c
352f4832324839d358235de1236090b1fd4ddc0f 28-Apr-2017 René Genz <liebundartig@freenet.de>

Use correct spelling of override Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

2e5fc89ef25434fab7febe2c52e97ef989b50d5b 28-Apr-2017 Sumit Bose <sbose@redhat.com>

overrides: add certificates to mapped attribute Certificates in overrides are explicitly used to map users to certificates, so we add them to SYSDB_USER_MAPPED_CERT as well. Resolves https://pagure.io/SSSD/sssd/issue/3373 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

fb81f337b68c85471c3f5140850dccf549a2d0ac 29-Mar-2017 Fabiano Fidêncio <fidencio@redhat.com>

IPA: Get ipaDomainsResolutionOrder from IPA ID View ipaDomainsResolutionOrder provides a list of domains that have to be looked up firstly during cache_req searches. This commit only fetches this list from the server and stores its value at sysdb so we can make use of it later on this patch series. There are no tests for newly introduced sysdb methods are those are basically only calling sysdb_update_domain_resolution_order(), sysdb_get_domain_resolution_order() and sysdb_get_use_domain_resolution_order() which are have tests written for. Related: https://pagure.io/SSSD/sssd/issue/3001 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>

b341ee51cffd98b642b9c68a417f8a7504e303a1 23-Mar-2017 Sumit Bose <sbose@redhat.com>

sss_cert_derb64_to_ldap_filter: add sss_certmap support Use certificate mapping library if available to lookup a user by certificate in LDAP. Related to https://pagure.io/SSSD/sssd/issue/3050 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

b969ccc2cc58fdf761e5d314de9217f2d914bc9b 31-Aug-2016 Lukas Slebodnik <lslebodn@redhat.com>

SYSDB: Fix error handling in sysdb_get_user_members_recursively We ignored failures from sysdb_search_entry Reviewed-by: Petr Čech <pcech@redhat.com>

1594701fbdc341069e11cff9a85e7a795e52db3d 29-Jul-2016 Sumit Bose <sbose@redhat.com>

views: properly override group member names Resolves https://fedorahosted.org/sssd/ticket/2948 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

26a3d4f2ef35a088e4c5fc928290052c89a2ff43 12-Jul-2016 Sumit Bose <sbose@redhat.com>

views: allow override added for non-default views at runtime Currently a new override for a non-default view cannot be displayed at run-time. It even does not only require a restart but the view must be un-applied and applied again to make the changes visible. This patch fixes this and makes non-default view behave like the default view where the data from a newly added override are displayed after the cached entry of the related object is expired. Resolves https://fedorahosted.org/sssd/ticket/3092 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

7c083e276ac40aa29bad6f04a950026697ea4f1d 07-Jul-2016 Jakub Hrozek <jhrozek@redhat.com>

SYSDB: Construct internal fqnames, not NSS names in sysdb_add_group_member_overrides Because all users and groups are stored the same way in sysdb, we can avoid parsing and unparsing the name with NSS functions and instead just grab the name from the FQDN in the cache. Reviewed-by: Sumit Bose <sbose@redhat.com>

da1fd52202cffa3260470565b74af885a466cb00 07-Jul-2016 Jakub Hrozek <jhrozek@redhat.com>

SYSDB: add_name_and_aliases_for_name_override no longer needs to special case subdomain users All user and group names use the same unified format in the cache, so there's no need to special-case subdomains and create different names for the main domain and a subdomain. Reviewed-by: Sumit Bose <sbose@redhat.com>

6cb34580ee6e9e2c9190b77b10db8a3c43e3c9c8 09-Jun-2016 Sumit Bose <sbose@redhat.com>

sysdb: add searches by certificate with overrides Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

d5e26a3ec3fa1f217f0afd045a03b29d4f88fe1d 18-Sep-2015 Pavel Březina <pbrezina@redhat.com>

views: fix two typos in debug messages Reviewed-by: Sumit Bose <sbose@redhat.com>

9571c9ba5ee7f8aad24e9dec6c44ce21688fa044 18-Sep-2015 Pavel Březina <pbrezina@redhat.com>

views: do not require overrideDN in grous when LOCAL view is set Resolves: https://fedorahosted.org/sssd/ticket/2790 Reviewed-by: Sumit Bose <sbose@redhat.com>

a8d31510d12af6ee39fb3e1e13f3a4f6bdef33c1 27-Jul-2015 Pavel Březina <pbrezina@redhat.com>

SYSDB: prepare for LOCAL view Objects doesn't have to have overrideDN specified when using LOCAL view. Since the view is not stored on the server we do not want to contact LDAP therefore we special case LOCAL view saying that it is OK that this attribute is missing. Preparation for: https://fedorahosted.org/sssd/ticket/2584 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

145578006684481434ced78461ab8d1c3570f478 05-May-2015 Sumit Bose <sbose@redhat.com>

IPA: enhance ipa_initgr_get_overrides_send() This patch makes ipa_initgr_get_overrides_send() public and add support to search overrides by UUID or by SID. Related to https://fedorahosted.org/sssd/ticket/2633 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>

/sssd-io/src/confdb/confdb_setup.c sysdb_autofs.c sysdb_sudo.c sysdb_views.c /sssd-io/src/monitor/monitor.c /sssd-io/src/monitor/monitor_netlink.c /sssd-io/src/providers/ad/ad_common.c /sssd-io/src/providers/ad/ad_init.c /sssd-io/src/providers/ad/ad_subdomains.c /sssd-io/src/providers/data_provider_be.c /sssd-io/src/providers/dp_dyndns.c /sssd-io/src/providers/dp_ptask.c /sssd-io/src/providers/ipa/ipa_access.c /sssd-io/src/providers/ipa/ipa_hbac_rules.c /sssd-io/src/providers/ipa/ipa_hostid.c /sssd-io/src/providers/ipa/ipa_selinux.c /sssd-io/src/providers/ipa/ipa_subdomains.c /sssd-io/src/providers/krb5/krb5_child.c /sssd-io/src/providers/krb5/krb5_wait_queue.c /sssd-io/src/providers/ldap/ldap_id.c /sssd-io/src/providers/ldap/sdap.c /sssd-io/src/providers/ldap/sdap_async.c /sssd-io/src/providers/ldap/sdap_async_connection.c /sssd-io/src/providers/ldap/sdap_async_initgroups.c /sssd-io/src/providers/ldap/sdap_utils.c /sssd-io/src/responder/autofs/autofssrv_cmd.c /sssd-io/src/responder/common/responder_dp.c /sssd-io/src/responder/nss/nsssrv_cmd.c /sssd-io/src/responder/nss/nsssrv_netgroup.c /sssd-io/src/responder/pac/pacsrv_cmd.c /sssd-io/src/responder/pac/pacsrv_utils.c /sssd-io/src/responder/pam/pamsrv.c /sssd-io/src/responder/sudo/sudosrv_get_sudorules.c /sssd-io/src/responder/sudo/sudosrv_query.c /sssd-io/src/sbus/sssd_dbus_server.c /sssd-io/src/tests/krb5_child-test.c /sssd-io/src/tools/files.c /sssd-io/src/tools/sss_sync_ops.c /sssd-io/src/util/debug.c /sssd-io/src/util/domain_info_utils.c /sssd-io/src/util/find_uid.c /sssd-io/src/util/server.c /sssd-io/src/util/sss_ini.c /sssd-io/src/util/sss_krb5.c /sssd-io/src/util/sss_semanage.c /sssd-io/src/util/usertools.c
04d138472cc086fb7961f0d378852b09961b1a33 11-Mar-2015 Lukas Slebodnik <lslebodn@redhat.com>

Log reason in debug message why ldb_modify failed Reviewed-by: Sumit Bose <sbose@redhat.com>

fbcdc08722aa8ed17c4b114e01fbb37c02cfb2fe 13-Jan-2015 Sumit Bose <sbose@redhat.com>

sysdb: fix group members with overridden names Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

b52b26176c92f3b06dba5598428c70c0cde13fd1 17-Dec-2014 Sumit Bose <sbose@redhat.com>

IPA: do not try to add override gid twice By default user and group overrides use the same attribute name for the GID and this cause SSSD machinery to add the same value twice which cause an error in ldb_add() or ldm_modify(). Related to https://fedorahosted.org/sssd/ticket/2514 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

cd5033e86bb4065d75188e2b6ef287a4421344c8 25-Nov-2014 Sumit Bose <sbose@redhat.com>

views: allow view name change at startup Currently some manual steps are needed on a FreeIPA to switch from one view to another. With this patch the IPA provider checks at startup if the view name changed and does the needed steps automatically. Besides saving the new view name this includes removing the old view data and marking the user and group entries as invalid. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

2fe140d3a41e1ac66400069d35adc9379348c1e5 25-Nov-2014 Sumit Bose <sbose@redhat.com>

sysdb: add sysdb_invalidate_overrides() Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

fe2ab0d67fe8c66fb6352e9d8f845bb46d1848cb 25-Nov-2014 Sumit Bose <sbose@redhat.com>

sysdb: add sysdb_delete_view_tree() Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

ab355eced46b5f488ed62a79a7f2e5ac2b6a574c 05-Nov-2014 Sumit Bose <sbose@redhat.com>

Views: apply user SSH public key override With this patch the SSH public key override attribute is read from the FreeIPA server and saved in the cache with the other override data. Since it is possible to have multiple public SSH keys this override value does not replace any other data but will be added to existing values. Fixes https://fedorahosted.org/sssd/ticket/2454 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

1a9f66352070d71a6b998c5afbc268ba6fddc51c 05-Nov-2014 Sumit Bose <sbose@redhat.com>

sysdb_add_overrides_to_object: add new parameter and multi-value support With the new parameter an attribute list other than the default one can be used. Override attributes with multiple values (e.g. SSH public keys) are now supported as well. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

e087497ad7648e81a1b4d0752e07c2fb6fcfe2b1 22-Oct-2014 Pavel Reichl <preichl@redhat.com>

Fix debug messages - trailing '.' Fix debug messages where '\n' was wrongly followed by '.'. Reviewed-by: Sumit Bose <sbose@redhat.com>

727d46f4dace666c809310b3f685eef387023f65 20-Oct-2014 Pavel Březina <pbrezina@redhat.com>

Add sysdb_search_[user|group]_override_attrs_by_name Reviewed-by: Sumit Bose <sbose@redhat.com>

d2f4551519698809e73a029c49599e1f67e6bdd4 20-Oct-2014 Sumit Bose <sbose@redhat.com>

sysdb: add sysdb_getgrnam_with_views and sysdb_getgrgid_with_views Reviewed-by: Pavel Březina <pbrezina@redhat.com>

ba88f3617e5a56bba19a0d65d35069d8e4d0c89c 20-Oct-2014 Sumit Bose <sbose@redhat.com>

sysdb: add sss_view_ldb_msg_find_element/attr_as_string/uint64 Override-aware replacements for the corresponding ldb_msg_find_* calls. First it is check if an override value is available before the original value is returned. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

89b065cb85f57e80760ce4d4b1215b533e249e92 20-Oct-2014 Sumit Bose <sbose@redhat.com>

sysdb: add sysdb_getpwnam/uid_with_views() View-aware drop-in replacements for sysdb_getpwnam() and sysdb_getpwuid(). Reviewed-by: Pavel Březina <pbrezina@redhat.com>

d70023a7fa95c8c12683de965a76ec38a6234ae5 20-Oct-2014 Sumit Bose <sbose@redhat.com>

sysdb: add overide lookup calls sysdb_search_user_override_by_name() and sysdb_search_group_override_by_name() search for overrides in the given view. sysdb_add_overrides_to_object() adds the data from the override object to the original object and makes them available for further processing. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

9da27cbc7532f775afc411d809735760dd5294a7 16-Oct-2014 Sumit Bose <sbose@redhat.com>

sysdb: sysdb_apply_default_override The default view is special in the sense that it is the baseline for every other view and that it always applies even if there is no view defined. To avoid useless additional processing the default view overrides are written directly to the corresponding cached object. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

ca49ae1eee321751681e99f3ebe2547211db3bf6 16-Oct-2014 Sumit Bose <sbose@redhat.com>

sysdb: add sysdb_store_override Reviewed-by: Pavel Březina <pbrezina@redhat.com>

2ef62c64e7f07c8aced3f72850008ecb72860162 16-Oct-2014 Sumit Bose <sbose@redhat.com>

sysdb: add sysdb_update_view_name() Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>