History log of /sssd-io/Makefile.am
Revision Date Author Comments Expand
c1208b485924964a7a4fcf19562964acb47fc214 05-Apr-2018 Justin Stephenson <jstephen@redhat.com>

CONFDB: Add passwd_files and group_files options Add new options to the files provider allowing an administrator to configure the files provider to read and monitor multiple or non-standard passwd and group file sources. These options default to /etc/passwd and /etc/group when unset. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

cbcb2dab1ba06c65d64910b733f4480b5cf5d090 09-Mar-2018 Sumit Bose <sbose@redhat.com>

TESTS: remove NSS test databases NSS databases with the certificates from the test CA will be automatically generated. The static databases are not needed anymore. Related to https://pagure.io/SSSD/sssd/issue/3436 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

19f5dd0b8dc4eff3373a0ac9ea17c2440628fd4c 09-Mar-2018 Sumit Bose <sbose@redhat.com>

TESTS: simple CA to generate certificates for test To avoid issue with certificate lifetimes a simple OpenSSL based CA is used to generate certificates for tests. To make management easy all related data is kept in src/tests/test_CA. Since some header files will be generated the generation of the needed files is added to BUILT_SOURCES as other generated code. Related to https://pagure.io/SSSD/sssd/issue/3436 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

3b0356f3bd82e78dffd38ebdc206b555d00dde2f 23-Feb-2018 Lukas Slebodnik <lslebodn@redhat.com>

intg: Build with optimisations and debug symbols We override CFLAGS for macro KCM_PEER_UID. Such change also remove standard CFLAGS (-O2 -g) and therefore it was not possible to debug processes in gdb unless environment variable CFLAGS was set. But we should test optimized code by default and let developers override default with environment variable CFLAGS and not vice versa. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>

60a715a0dd79873d2d2607eab8fdfaf0ffd2e7d3 09-Feb-2018 Hristo Venev <hristo@venev.name>

providers: Move hostid from ipa to sdap, v2 In the ldap provider, all option names are renamed to ldap_host_*. In the ipa provider the names haven't been changed. Host lookups for both ipa and ldap are handled in the ldap provider. sss_ssh_knownhostsproxy works but hostgroups are still only available in the ipa provider. I've also added some documentation for the ldap provider. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

b61304a9f0f6bcc099cb855bc5bde13c4024da1a 06-Feb-2018 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Fix using of libdlopen_test_providers.so in tests libdlopen_test_providers.la was missing in libsss_ad_tests.la which caused linked failures with linker flag -defs and therefore had to be added to some tests (ad_access_filter_tests) Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

7ad9f9c7c8b40e74647de455e454894a257bc0de 06-Feb-2018 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Add missing libs found by -Wl,-z,defs It is not possible to fully build sssd with -Wl,-z,defs because we are using sssd_be as a "library" in some cases e.g. src/providers/krb5/.libs/libsss_krb5_common_la-krb5_init_shared.o: In function `krb5_child_init': src/providers/krb5/krb5_init_shared.c:38: undefined reference to `_dp_opt_get_bool' src/providers/krb5/krb5_init_shared.c:47: undefined reference to `_dp_opt_get_string' src/providers/krb5/krb5_init_shared.c:94: undefined reference to `_dp_opt_get_cstring' Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

fb22e59d23c8c3eefc2769b8dc6e7533497711a5 25-Jan-2018 Lukas Slebodnik <lslebodn@redhat.com>

Remove legacy script for upgrading sssd.conf The script was mainly required to upgrade sssd.conf from version 1 to version 2 which was done in sssd-0.6. All currently supported linux distribution have at least sssd >= 1.8 and require 2nd version of sssd.conf. Therefore upgrade does not make any sense. There was an attempt to port this file to python3 as part of ticket#2017 3 years ago. But it does not work and nobody noticed that due to missing code coverage. sh# ls -l /etc/sssd/sssd.conf -rw-------. 1 root root 5372 Jan 24 21:09 /etc/sssd/sssd.conf sh# python3 -m SSSDConfig.sssd_upgrade_config ERROR: a bytes-like object is required, not 'str' sh# ls -l /etc/sssd/sssd.conf -rw-------. 1 root root 0 Jan 24 21:09 /etc/sssd/sssd.conf Summary: The script does not make any sense today, it is not used by anyone and it does not worth to keep it in upstream anymore. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>

20a9c55ada9401385c79d25e8073fadd0297e411 25-Jan-2018 Lukas Slebodnik <lslebodn@redhat.com>

Remove unnecessary script for upgrading debug_levels Older versions of SSSD <= 1.5 would take a debug_level value set in the [sssd] section as authoritative for all other sections where not explicitly overridden. The script update_debug_levels.py could be used to make the new version of sssd produce the same logs as the old versions did, by explicitly adding debug_level to all domains and services that did not have it set already. The change was done 7 years ago and people get used to new behaviour The script was never installed together with sssd and therefore does not have any usage anymore. Lets remove it. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

3ee8659bc6a77a78bc6c61b9650a36bd18ea95c8 21-Nov-2017 Jakub Hrozek <jhrozek@redhat.com>

TOOLS: Add a new sssctl command access-report Resolves: https://pagure.io/SSSD/sssd/issue/2840 Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

fe189c1ab7bbb983f0fb3807dd905cc3a45cfcc1 21-Nov-2017 Michal Židek <mzidek@redhat.com>

Revert "BUILD: Disable tests with know failures" This reverts commit 44bc6e8f49eec9e7ab9a952845bffcc0fd3b3a44. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

44bc6e8f49eec9e7ab9a952845bffcc0fd3b3a44 16-Nov-2017 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Disable tests with know failures Temporary workaround for: https://pagure.io/SSSD/sssd/issue/3563 Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

06c2300353faf3983e38fecb1d6afe1f6cc8fe32 13-Nov-2017 Sumit Bose <sbose@redhat.com>

pam: add prompt string for certificate authentication A new certificate attribute is added which contains a string which is used in the certificate selection list displayed to the user. The Subject-DN of the certificate is used here because it is present in all certificate and in general differs for certificate with different usage. libsss_certmap is used to extract the subject-DN from the certificate and convert it into a string. Related to https://pagure.io/SSSD/sssd/issue/3560 Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Tested-by: Scott Poore <spoore@redhat.com>

0bdd8800c16f39b8fe308d20694ad905c669dff3 13-Nov-2017 Sumit Bose <sbose@redhat.com>

PAM: handled multiple certs in the responder This patch refactors the handling of the certificate and the attributes to address the certificate on the Smartcard (module name, token name and key id). Instead of using individual variables the values are put into a new struct cert_auth_info. Since the new struct can be used as a list the PAM responder can now handle multiple certificates on the Smartcard and can send the needed data to pam_sss with multiple SSS_PAM_CERT_INFO messages. Unit tests are added to confirm the expected behavior. Related to https://pagure.io/SSSD/sssd/issue/3560 Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Tested-by: Scott Poore <spoore@redhat.com>

b495522f3eadde9ad4bb8d125fd70b0d5f07596a 10-Nov-2017 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Properly expand variables in sssd-ifp.service systemd[1]: [/usr/lib/systemd/system/sssd-ifp.service:9] Path '-@environment_file@' is not absolute, ignoring. sh-4.2# systemctl cat sssd-ifp.service # /usr/lib/systemd/system/sssd-ifp.service [Unit] Description=SSSD IFP Service responder Documentation=man:sssd-ifp(5) After=sssd.service BindsTo=sssd.service [Service] Environment=DEBUG_LOGGER=--logger=files EnvironmentFile=-@environment_file@ Type=dbus BusName=org.freedesktop.sssd.infopipe ExecStart=/usr/libexec/sssd/sssd_ifp --uid 0 --gid 0 --dbus-activated ${DEBUG_LOGGER} Resolves: https://pagure.io/SSSD/sssd/issue/3433 Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

e54db68cbb9c12d8a6867f2c7766fb2115ab0997 06-Nov-2017 Sumit Bose <sbose@redhat.com>

nss-idmap: add timeout version of old sss_nss_* calls Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

5e6622722e84d594298a8324f3685a1bda2b5868 06-Nov-2017 Sumit Bose <sbose@redhat.com>

nss-idmap: add nss like calls with timeout and flags This patch adds new calls to libsss_nss_idmap to get NSS like user and group information directly from SSSD without using the system's NSS interfaces. Additionally a timeout and a flags options are added which are not available for system's NSS. Related to https://pagure.io/SSSD/sssd/issue/2478 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

7449b236523409cc8766fb957d6cba051fdfb483 06-Nov-2017 Sumit Bose <sbose@redhat.com>

sss_client: create nss_common.h This patch makes sss_nss_getpw_readrep() and sss_nss_getgr_readrep() calls which parse SSSD's replies for user and group requests available to other components. Related to https://pagure.io/SSSD/sssd/issue/2478 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

a7277fecf7a65ab6c83b36f009c558cdfbf997d2 03-Nov-2017 Lukas Slebodnik <lslebodn@redhat.com>

SYSTEMD: Replace parameter --debug-to-files with ${DEBUG_LOGGER} Users can set variable DEBUG_LOGGER in environment files (/etc/sysconfig/sssd or /etc/default/sssd; depending on the distribution) to override default logging to files. e.g. DEBUG_LOGGER=--logger=stderr DEBUG_LOGGER=--logger=journald Resolves: https://pagure.io/SSSD/sssd/issue/3433 Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

f34a8330c1615511795847b0a1454249d782db2a 19-Oct-2017 Alexey Kamenskiy <alexey.kamenskiy@chinanetcloud.com>

LDAP: Add support for rhost access control This patch implements verification of pam_rhost against rules stored in LDAP entry of a user. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>

da19eaea902744ec3cb41f87fa93fadb767f90e7 25-Sep-2017 Justin Stephenson <jstephen@redhat.com>

SSSCTL: Replace sss_debuglevel with shell wrapper The sss_debuglevel binary is replaced by a shell wrapper calling sssctl debug-level as part of merging sss_debuglevel into sssctl. The wrapper will redirect sss_debuglevel to the sssctl debug-level command performing the same task. The sss_debuglevel(8) man page is updated to indicate that sss_debuglevel is deprecated and functionality exists now in sssctl. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Michal Židek <mzidek@redhat.com>

d2c614143870e6efd4b3ab20c3a55cf714595256 25-Sep-2017 Justin Stephenson <jstephen@redhat.com>

SSSCTL: Move sss_debuglevel to sssctl debug-level Move code from sss_debuglevel to sssctl_logs.c and add new debug-logs sssctl command to perform the same task of changing debug level dynamically. POPT_CONTEXT_KEEP_FIRST Flag added to poptGetContext call in sssctl_debug_level() to fix argument parsing. Resolves: https://pagure.io/SSSD/sssd/issue/3057 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Michal Židek <mzidek@redhat.com>

1f331476e7d33bb03cc35a2a9064ee1cc5bed6cf 22-Sep-2017 Sumit Bose <sbose@redhat.com>

sssd_client: add mutex protected call to the PAC responder SSSD's plugin for MIT Kerberos to send the PAC to the PAC responder currently uses sss_pac_make_request() which does not protect the communication with the PAC responder with a mutex as e.g. the NSS and PAM clients. If an application using threads loads this plugin via libkrb5 in different threads and is heavily processing Kerberos tickets with PACs chances are that two threads try to communicate with SSSD at once. In this case one of the threads will miss a reply and will wait for it until the default client timeout of 300s is passed. This patch adds a call which uses a mutex to protect the communication which will avoid the 300s delay mentioned above. Resolves: https://pagure.io/SSSD/sssd/issue/3518 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

f2e70ec742cd7aab82b74d7e4b424ba3258da7aa 14-Sep-2017 Sumit Bose <sbose@redhat.com>

IPA: fix handling of certmap_ctx This patch fixes a use-after-free in the AD provider part and initializes the certmap_ctx with data from the cache at startup. Related to https://pagure.io/SSSD/sssd/issue/3508 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

1182dd93a5a6bb18943284273f7fd59b83468843 08-Sep-2017 Justin Stephenson <jstephen@redhat.com>

CONTRIB: Add DP Request analysis script Run this script using stap as root and Ctrl-C to print the summary report stap -v /usr/share/sssd/systemtap/dp_request.stp This script will use the data provider request probe markers to provide elapsed time of each request and more information about the slowest request in the summary report. Resolves: https://pagure.io/SSSD/sssd/issue/3061 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

d46d59e78600aa72176df7217c94743b7e71881a 08-Sep-2017 Justin Stephenson <jstephen@redhat.com>

DP: Add Generic DP Request Probes Add the ability to analyze performance and monitor Data Provider requests at a high-level, probes fire when a request is sent and when a request is completed. Request name, domain, target, method, and return code information is passed as target variables to the systemtap probe tapsets which can be used in systemtap scripts. Resolves: https://pagure.io/SSSD/sssd/issue/3061 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

cfe87ca0c4fded9cbf907697d08fa0e6c8f8ebce 06-Sep-2017 Justin Stephenson <jstephen@redhat.com>

SELINUX: Use getseuserbyname to get IPA seuser The libselinux function getseuserbyname is more reliable method to retrieve SELinux usernames then functions from libsemanage `semanage_user_query` and is recommended by libsemanage developers. Replace get_seuser function with getseuserbyname. Resolves: https://pagure.io/SSSD/sssd/issue/3308 Reviewed-by: Michal Židek <mzidek@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Petr Lautrbach <plautrba@redhat.com>

a20fb9cbd5f42a6ca895aea1b84347fdfea34b89 05-Sep-2017 Sumit Bose <sbose@redhat.com>

certmap: add OpenSSL implementation The OpenSSL 1.1 API is used but there is a short macro block which should added the needed compatibility if and older OpenSSL version is used. Related to https://pagure.io/SSSD/sssd/issue/3050 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

9ef185255126b9ed415fa334f585a11c5be4fb1a 01-Sep-2017 Jakub Hrozek <jhrozek@redhat.com>

SECRETS: Do not link with c-ares Since we started using libcurl for the proxy provider, there is no point in initializing or linking against c-ares. If we want to explicitly use a resolver in the future, we should use libcurl callbacks. Reviewed-by: Simo Sorce <simo@redhat.com> Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

b4e45531b3e98efce868d8a01ebd2dbe54348217 28-Aug-2017 Sumit Bose <sbose@redhat.com>

tests: add unit tests for krb5 localauth plugin Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

f982039c75ec064894deb676ae53ee57de868590 28-Aug-2017 Fabiano Fidêncio <fidencio@redhat.com>

DESKPROFILE: Introduce the new IPA session provider In order to provide FleetCommander[0] integration, a session provider has been introduced for IPA. The design of this feature and more technical details can be found at [1] and [2], which are the design pages of both freeIPA and SSSD parts. As there's no way to test freeIPA integration with our upstream tests, no test has been provided yet. Is also worth to mention that the name "deskprofile" has been chosen instead of "fleetcmd" in order to match with the freeIPA plugin. It means that, for consistence, all source files, directories created, options added, functions prefixes and so on are following the choice accordingly. [0]: https://wiki.gnome.org/Projects/FleetCommander [1]: https://github.com/abbra/freeipa-desktop-profile/blob/master/plugin/Feature.mediawiki [2]: https://docs.pagure.org/SSSD.sssd/design_pages/fleet_commander_integration.html Resolves: https://pagure.io/SSSD/sssd/issue/2995 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

Makefile.am contrib/sssd.spec.in src/confdb/confdb.h src/config/SSSDConfig/__init__.py.in src/config/SSSDConfig/sssd_upgrade_config.py src/config/SSSDConfigTest.py src/config/cfg_rules.ini src/config/etc/sssd.api.conf src/config/etc/sssd.api.d/sssd-ipa.conf src/man/sssd-ipa.5.xml src/man/sssd.conf.5.xml src/providers/data_provider/dp.h src/providers/data_provider/dp_target_auth.c src/providers/data_provider/dp_targets.c src/providers/ipa/ipa_common.c src/providers/ipa/ipa_common.h src/providers/ipa/ipa_deskprofile_config.c src/providers/ipa/ipa_deskprofile_config.h src/providers/ipa/ipa_deskprofile_private.h src/providers/ipa/ipa_deskprofile_rules.c src/providers/ipa/ipa_deskprofile_rules.h src/providers/ipa/ipa_deskprofile_rules_util.c src/providers/ipa/ipa_deskprofile_rules_util.h src/providers/ipa/ipa_init.c src/providers/ipa/ipa_opts.c src/providers/ipa/ipa_session.c src/providers/ipa/ipa_session.h src/responder/ifp/ifp_components.c
5b93634c7f0e34f69b4cf8fb9b2e77b9179024a7 28-Aug-2017 Fabiano Fidêncio <fidencio@redhat.com>

UTIL: move {files,selinux}.c under util directory files.c has at least one function that will be re-used for the new session provider that's about to be added. Also, a few other functions may be added and files.c seems the right place for those. selinux.c has been moved together with files.c as the latter takes advantage of some functions from the former and we do not want to always link agains the tools code. The public functions from files.c got a "sss_" prefix and it has been changed whenever they're used. Last but not least, all the places that included "tools/tools_util.h" due to the functions on files.c had this include removed (as they were already including "util/util.h". Related: https://pagure.io/SSSD/sssd/issue/2995 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

9a18f78f38e274f4906af6ef8e1a82d844fde4cc 28-Aug-2017 Fabiano Fidêncio <fidencio@redhat.com>

IPA: Make ipa_hbac_sysdb_save() more generic Although there's no change in the ipa_hbac_sysdb_save() itself, its name has been changed to ipa_common_entries_and_groups_sysdb_save() and its been split out from HBAC related files and moved to the newly created ipa_rules_common.[ch] files, which will also be used in the future for new backend modules. ipa_rules_common.[ch] is not exactly the best name for those files, IMO, but I really cannot come up with something better. Related: https://pagure.io/SSSD/sssd/issue/2995 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

3996e391054a1c02ab62e1541ae21a8204bd5d0a 03-Aug-2017 AmitKumar <amitkuma@redhat.com>

Moving headers used by both server and client to special folder These are the header files which are used by both client and server: src/util/io.h src/util/murmurhash3.h src/util/util_safealign.h This patch is about moving these header files to special folder (src/shared). It will be easier to identify these headers when looking for them in the src tree. util_safalign.h is renamed as safalign.h because util_ namespace is appropriate when this file belonged to the util's folder which is no longer the case. Resolves: https://pagure.io/SSSD/sssd/issue/1898 Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

1b3425d8cbc5697f7321ba364e38ef4c5ed9f2b4 03-Aug-2017 Fabiano Fidêncio <fidencio@redhat.com>

INTG: Add --with-session-recording=/bin/false to intgcheck's configure Let's ensure that running `make intgcheck-*` doesn't fail when done locally. As --with-session-recording=/bin/false is now set in the Makefile.am, there's no need to set it in contrib/ci/configure.sh. Thus, the option has been removed from there. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

382a972a80ac571cdbf70d88571f6de49fe1cd23 27-Jul-2017 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

CACHE_REQ: Pull sessionRecording attrs from initgr After entires are retrieved by cache_req for user info requests (except initgr), overlay them with sessionRecording attribute retrieved from an initgr request made additionally for each entry. Do not do additional initgr requests with selective session recording enabled, if we don't have any group names to match against in session recording configuration. Only do user name matches instead. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

5ea60d18ddb8eaff25d274c22c7db7df57b6ec4d 27-Jul-2017 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

DP: Add session recording conf loading Add session recording configuration loading to the data provider initialization. To be used for matching users and groups with session recording enabled. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

29dd456102dc995aa59a56483363087071bb84d6 27-Jul-2017 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

RESPONDER: Add session recording conf loading Add session recording configuration loading to the common responder initialization. To be used for substituting the user shell when session recording is enabled. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

99b96048b79b0228c3f7c431ea12010f7bd5b362 27-Jul-2017 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

UTIL: Add session recording conf management module Add an util module for loading session recording configuration. To be used by responders and data provider. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

614545382c4ac75d85fb8c80917cc675bc0ec580 25-Jul-2017 Lukas Slebodnik <lslebodn@redhat.com>

KCM: Modify krb5 snippet file kcm_default_ccache The file kcm_default_ccache must enable KCM ccache by default without any modification of the file. /etc/krb5.conf.d/ is fedora/el7 specific and it is not allowed to enable or start systemd services in scriptlets. It would result in broken krb5 configuration. Therefore krb5 configuration snippet was moved from /etc/krb5.conf.d/ -> /usr/share/sssd-kcm. And each downstream distribution should enable systemd services + change krb5 configuration in it's own way. Reviewed-by: Stephen Gallagher <sgallagh@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

c377d4d604f1e7b35c484711f1084b7a761772b6 24-Jul-2017 Sumit Bose <sbose@redhat.com>

idmap_error_string: add missing descriptions Related to https://pagure.io/SSSD/sssd/issue/1960 Related to https://pagure.io/SSSD/sssd/issue/1938 Related to https://pagure.io/SSSD/sssd/issue/1844 Related to https://pagure.io/SSSD/sssd/issue/1593 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

537103f296b7112d9fd505af941a6d83d7902eb1 31-May-2017 Michal Židek <mzidek@redhat.com>

TESTS: Add unit tests for cfg validation Add infrastructure for unit tests for validators. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

d82ffa52dd4c3bb11115b1687edc189284797329 25-May-2017 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Fix build without ssh cache_req_host_by_name_lookup should be used only by ssh responder. But we cannot rely on this fact and therefore we should return ERR_INTERNAL instead of EOK to catch mis-usage of the cache_req plugin autoreconf -if ./configure --without-ssh make check CCLD sssd_nss src/responder/common/cache_req/plugins/cache_req_host_by_name.o: In function `cache_req_host_by_name_lookup': src/responder/common/cache_req/plugins/cache_req_host_by_name.c:48: undefined reference to `sysdb_get_ssh_host' collect2: error: ld returned 1 exit status make: *** [Makefile:14285: sssd_nss] Error 1 src/tests/cmocka/test_utils-test_sss_ssh.o: In function `test_textual_public_key': src/tests/cmocka/test_sss_ssh.c:78: undefined reference to `sss_ssh_format_pubkey' src/tests/cmocka/test_sss_ssh.c:82: undefined reference to `sss_ssh_format_pubkey' src/tests/cmocka/test_sss_ssh.c:86: undefined reference to `sss_ssh_format_pubkey' src/tests/cmocka/test_sss_ssh.c:89: undefined reference to `sss_ssh_format_pubkey' src/tests/cmocka/test_sss_ssh.c:92: undefined reference to `sss_ssh_format_pubkey' src/tests/cmocka/test_utils-test_sss_ssh.o:src/tests/cmocka/test_sss_ssh.c:95: more undefined references to `sss_ssh_format_pubkey' follow collect2: error: ld returned 1 exit status Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

02bb4f87413c634599ad1d8f384d97605ee53771 24-May-2017 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Link libwbclient with libdl dlopen-tests cannot catch it because it has to be linked with libdl sh$ grep dlopen src/sss_client/libwbclient/ src/sss_client/libwbclient/wbc_pwd_sssd.c: ctx->dl_handle = dlopen("libnss_sss.so.2", RTLD_NOW); sh$ nm --dynamic --undefined-only .libs/libwbclient.so | grep dlopen U dlopen Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

1732c40287be0ff918e42ae0045aafeee91b3c7b 23-May-2017 Lukas Slebodnik <lslebodn@redhat.com>

INTG: Do not use configure time option enable-files-domain The implicit_files was started with each test even though was not required. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>

ec9ac22d699a17d590b1d4ba9ba3750eb719f340 23-May-2017 Sumit Bose <sbose@redhat.com>

test: make sure p11_child is build for pam-srv-tests Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

4a9160e2b3b9c531e2b4a7884f49bfbb4a07a992 10-Apr-2017 Sumit Bose <sbose@redhat.com>

sssctl: integrate pam_test_client into sssctl Reviewed-by: Pavel Březina <pbrezina@redhat.com>

9be97c9cc69e5e6e568d7e21f61a46c3ae2dc387 10-Apr-2017 Sumit Bose <sbose@redhat.com>

pam_test_client: add InfoPipe user lookup Related to https://pagure.io/SSSD/sssd/issue/3292 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

40ff10d73063949ca699670ca212e96b809d5fcd 10-Apr-2017 Sumit Bose <sbose@redhat.com>

sss_sifp: update method names Related to https://pagure.io/SSSD/sssd/issue/3292 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

435b3678de25d22eb8a6e892109d26c32f0760a4 10-Apr-2017 Sumit Bose <sbose@redhat.com>

pam_test_client: add SSSD getpwnam lookup Related to https://pagure.io/SSSD/sssd/issue/3292 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

78a08d30b5fbf6e1e3b589e0cf67022e0c1faa33 06-Apr-2017 Michal Židek <mzidek@redhat.com>

selinux: Do not fail if SELinux is not managed Previously we failed if semanage_is_managed returned 0 or -1 (not managed or error). With this patch we only fail in case of error and continue normally if selinux is not managed by libsemanage at all. Resolves: https://fedorahosted.org/sssd/ticket/3297 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

84fecc2fd535030bc56b5046ba2a1ba95c46bc34 03-Apr-2017 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Fix compilation of libsss_certmap with libcrypto CC src/lib/certmap/libsss_certmap_la-sss_cert_content_nss.lo src/lib/certmap/sss_cert_content_nss.c:25:18: fatal error: cert.h: No such file or directory #include <cert.h> ^ compilation terminated. Reviewed-by: Sumit Bose <sbose@redhat.com>

df99d709c8cbef3c378c111944d83b7345e4c1ea 30-Mar-2017 Pavel Březina <pbrezina@redhat.com>

secrets: use tcurl in proxy provider We switch from http-parser to libcurl for an http client. This gaves us many features for free such as tls and http basic authentication support instead of implementing it on our own. Resolves: https://pagure.io/SSSD/sssd/issue/3192 Reviewed-by: Simo Sorce <simo@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

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

CACHE_REQ: Make use of domainResolutionOrder domainResolutionOrder has been introduced in the previous commits and allows the admin to set up a specific order which the domains will be resolved during a lookup and with this patch we can take advantage of this. In order to have it working a new structure has been added (struct domain_resolution_order) to the responder context and will be used by the cache_req to perform the lookups based on this list. As the ipaDomainResolutionOrder may be set globally on IPA or per View, SSSD does respect the following precedence order: View > Globally. The way the list is built is quite simple, basically having the domains present on ipaDomainResolutionOrder as the first domains (in that specific order) and then appending the remaining domains to this list. The final result is a completely flat list with all the domains respecting the specified order (it's important to remember that the domains not specified won't follow any specific order, they're just "random" based on the domains list present in the responder context. 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>

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

SYSDB/TESTS: Add tests for the domain's resolution order methods Introduce a new and small set of tests for these new helper methods that are going to be used in different parts of the code in the follow-up patches. 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>

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

SYSDB: Add methods to deal with the domain's resolution order In the following-up patches those newly introduced methods will be used to deal with the domainResolutionOrder attribute. The sysdb_update_domain_resolution_order() method is purposely not checking whether a value has changed or not before writing to sysdb and while may not be optimal, the readability of the code has increased a lot by keeping it as simple as possible. Tests for these new methods are part of the next commit. 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>

8e785c7478e1a79179842106a62f3f85118b6690 28-Mar-2017 Lukas Slebodnik <lslebodn@redhat.com>

intg: fix configure failure with strict cflags The warning -Wstrict-prototypes is a part of AM_CFLAGS which was appended for CFLAGS in make target intgcheck-prepare. And combination with strict CFLAGS in environment variable (e.g. -Werror) caused failures. sh$ CFLAGS="-Werror" make intgcheck-prepare checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/home/build/sssd/ci-build-debug/intg/bld': configure: error: C compiler cannot create executables configure:3719: checking whether the C compiler works configure:3741: gcc -g3 -O2 -Werror -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wundef -Werror-implicit-function-declaration -Winit-self -Wmissing-include-dirs -fno-strict-aliasing -std=gnu99 -DKCM_PEER_UID=1000 conftest.c >&5 conftest.c:11:1: error: function declaration isn't a prototype [-Werror=strict-prototypes] main () ^~~~ cc1: all warnings being treated as errors Reviewed-by: Pavel Březina <pbrezina@redhat.com>

2b5518eeaacc6245cfa77ee4a7086f16208060fc 27-Mar-2017 Jakub Hrozek <jhrozek@redhat.com>

KCM: Queue requests by the same UID In order to avoid race conditions, we queue requests towards the KCM responder coming from the same client UID. Reviewed-by: Michal Židek <mzidek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

cac0db2f8004ae88b9263dc3888a11a2d3d3d114 27-Mar-2017 Jakub Hrozek <jhrozek@redhat.com>

KCM: Store ccaches in secrets Adds a new KCM responder ccache back end that forwards all requests to sssd-secrets. Reviewed-by: Michal Židek <mzidek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

1ec4198f38d34a1f82a2db55d8c9782a434fb55f 27-Mar-2017 Jakub Hrozek <jhrozek@redhat.com>

KCM: Implement KCM server operations Implements the actual KCM server operations. On a high level, each operation unmarhalls the needed data from the input buffer, calls into the ccache db and marshalls a response. Only the operations that are also implemented by the MIT client are implemented by our KCM server. Resolves: https://pagure.io/SSSD/sssd/issue/2887 Reviewed-by: Michal Židek <mzidek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

70fe6e2bb398b8669ad1aebeaf0abcbffc307475 27-Mar-2017 Jakub Hrozek <jhrozek@redhat.com>

KCM: Add a in-memory credential storage Implements a simple back end for the ccache module that lets the KCM server store credentials directly in memory. Reviewed-by: Michal Židek <mzidek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

bea0dc79faf609de8603cb42f190adae544bc8fb 27-Mar-2017 Jakub Hrozek <jhrozek@redhat.com>

KCM: Implement an internal ccache storage and retrieval API In order for the KCM server to work with ccaches stored in different locations, implement a middle-man between the KCM server and the ccache storage. This module has asynchronous API because we can't assume anything about where the ccaches are stored. Reviewed-by: Michal Židek <mzidek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

b9c563c29243291f40489bb0dcbf3946fca72d58 27-Mar-2017 Jakub Hrozek <jhrozek@redhat.com>

KCM: Initial responder build and packaging Adds the initial build of the Kerberos Cache Manager responder (KCM). This is a deamon that is capable of holding and storing Kerberos ccaches. When KCM is used, the kerberos libraries (invoked through e.g. kinit) are referred to as a 'client' and the KCM deamon is referred to as 'server'. At the moment, only the Heimdal implementation of Kerberos implements the KCM server: https://www.h5l.org/manual/HEAD/info/heimdal/Credential-cache-server-_002d-KCM.html This patch adds a KCM server to SSSD. In MIT, only the 'client-side' support was added: http://k5wiki.kerberos.org/wiki/Projects/KCM_client This page also describes the protocol between the client and the server. The client is capable of talking to the server over either UNIX sockets (Linux, most Unixes) or Mach RPC (macOS). Our server only implements the UNIX sockets way and should be socket-activated by systemd, although can in theory be also ran explicitly. The KCM server only builds if the configuration option "--with-kcm" is enabled. It is packaged in a new subpackage sssd-kcm in order to allow distributions to enable the KCM credential caches by installing this subpackage only, without the rest of the SSSD. The sssd-kcm subpackage also includes a krb5.conf.d snippet that allows the admin to just uncomment the KCM defaults and instructs them to start the socket. The server can be configured in sssd.conf in the "[kcm]" section. By default, the server only listens on the same socket path the Heimdal server uses, which is "/var/run/.heim_org.h5l.kcm-socket". This is, however, configurable. The file src/responder/kcm/kcm.h is more or less directly imported from the MIT Kerberos tree, with an additional sentinel code and some comments. Not all KCM operations are implemented, only those that also the MIT client implements. That said, this KCM server should also be usable with a Heimdal client, although no special testing was with this hybrid. The patch also adds several error codes that will be used in later patches. Related to: https://pagure.io/SSSD/sssd/issue/2887 Reviewed-by: Michal Židek <mzidek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

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

nss-idmap: add sss_nss_getlistbycert() This patch adds a getlistbycert() call to libsss_nss_idmap to make it on par with InfoPipe. Related to https://pagure.io/SSSD/sssd/issue/3050 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

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

sysdb: add certmap related calls Add sysdb calls to write and read data for the certificate mapping library to the cache. Related to https://pagure.io/SSSD/sssd/issue/3050 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@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>

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

certmap: add placeholder for OpenSSL implementation Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

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

certmap: add new library libsss_certmap With this library it would be possible to map certificates and users not only by adding the full certificate to the user's LDAP object but by adding e.g. only parts like the issuer and subject name. Additionally the library is also able to flexible select/match certificates based on values in the certificate. Details about mapping and matching rules can be found in the included man page. Related to https://pagure.io/SSSD/sssd/issue/3050 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

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

split_on_separator: move to a separate file To be able to include split_on_separator() without additional dependencies (only talloc), it is moved into a separate file. Related to https://pagure.io/SSSD/sssd/issue/3050 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

91b0592cdab22915dff27ceae6d8e49c608aea4a 14-Mar-2017 Jakub Hrozek <jhrozek@redhat.com>

TESTS: test the curl wrapper with a command-line tool In order to test the curl integration code, this patch adds a command-line tool and tests that it's possible to drive a conversation with the secrets responder using the tool. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

ca90f2102a43a3d49a2ef26610d7b4ff3062a823 14-Mar-2017 Jakub Hrozek <jhrozek@redhat.com>

UTIL: Add a libtevent libcurl wrapper Adds a request that enables the caller to issue an asynchronous request with libcurl. Currently only requests towards UNIX sockets are supported. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

9a9b5e115b079751422be22fd252c0b283611c62 14-Mar-2017 Jakub Hrozek <jhrozek@redhat.com>

UTIL: Add a generic iobuf module The KCM responder reads bytes and writes bytes from a buffer of bytes. Instead of letting the caller deal with low-level handling using the SAFEALIGN macros, this patch adds a new iobuf.c module with more high-level functions. The core is a iobuf struct that keeps track of the buffer, its total capacity and a current read or write position. There are helper function to read or write a generic buffer with a set length. Later, we will also add convenience functions to read C data types using the SAFEALIGN macros. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

7cd226414c7bcdd32f05416df64ebda3ac869bd7 14-Mar-2017 Pavel Březina <pbrezina@redhat.com>

CACHE_REQ: Move result manipulation into a separate module This patch is preparing the field for coming up patches where new lookup logic will be added. Taking this into consideration let's move the result manipulation code into a separate module and focus purely in the lookups logic in the main module. Related: https://pagure.io/sssd/sssd/issue/3001 Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

9c0c83eecf963416effee67dab55711234373fde 02-Mar-2017 Fabiano Fidêncio <fidencio@redhat.com>

SYSTEMD: Don't mix up responders' socket and monitor activation Let's ensure that in case a responder is explicitly configured in the sssd.conf its socket won't even start. The patchset introduces a new binary that will be distributed and will be called before starting the responders' sockets, ensuring the sockets will only start in case the responder is supposed to be socket-activated and its been configured accordingly. Otherwise the responders' socket startup will fail with a quite helpful debug message leading the admins to choose between using systemd or not and what has to be done to achieve their desire. This suggestion came from Sumit Bose. The reason for adding a new binary instead of a simple python script is to avoid dragging unnecessary dependencies to sssd-common package. Resolves: https://pagure.io/SSSD/sssd/issue/3300 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

54039570d26e29444c398aa4ad6ba638f1713566 02-Mar-2017 Sumit Bose <sbose@redhat.com>

cache_req: use own namespace for UPNs If the UPN use the same domain name as the configured domain an unsuccessful lookup by name will already create an entry in the negative cache. If the lookup by UPN would use the same namespace the lookup will immediately be finished because there would already be an entry in the negative cache. Resolves: https://pagure.io/SSSD/sssd/issue/3313 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

76b6d7fb9f31f7836158d248161aec3558098659 27-Feb-2017 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Enable the files domain for all integration tests This is done to make sure that enabling the files domain doesn't break existing functionality as well as making it possible to even that the implicit domain, since all integration tests use the same configuration. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

ee6c7e8b589497119ec1ee40e99611f362111600 15-Feb-2017 Jakub Hrozek <jhrozek@redhat.com>

MONITOR: Use the common inotify code to watch resolv.conf The monitor code used its own inotify callbacks to watch for changes to resolv.conf. Instead of keeping this duplicated code around, let's use the shared inotify module that also powers the files provider. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

c71e0a6710418991d759a329b8dcb77c7ad3e16e 15-Feb-2017 Jakub Hrozek <jhrozek@redhat.com>

FILES: Add the files provider Adds a new provider type "files". The provider watches the UNIX password and group databases for changes using inotify and propagates its contents to the sysdb. The files provider is only built on platforms that support the inotify interface, polling or loading the entries on-deman is not supported. During initialization, the files are loaded from the environment variables SSS_FILES_PASSWD and SSS_FILES_GROUP, defaulting to /etc/passwd and /etc/group respectively. Loading the files from environment variables is mostly implemented for tests that need to load nss_wrapped files. The files provider is a bit different from other provider types in the sense that it always enumerates full contents of the database. Therefore, the requests from Data Provider are always just replied to with success. Enumerating the contents is done in full at the moment, all users and all groups are removed and added anew. Modifying the passwd and group databses should be rare enough for this to be justified and we can optimize the code later. Since with large databases, the cache update might take a bit of time, we signal the responders to disable the files domain once we receive the inotify notification and re-enable the files domain after the update is finished. The idea is that the NSS configuration would still contain "files" after "sss" so that if the domain is disabled, libc would fall back to a direct "files" lookup. Resolves: https://fedorahosted.org/sssd/ticket/3262 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

8cfb42e1985550e99585d311f68087d414932806 15-Feb-2017 Jakub Hrozek <jhrozek@redhat.com>

UTIL: Add a generic inotify module Adds a reusable module for watching files using the Linux-specific inotify(7) interface. Adds the possibility to watch the file's parent directory as well to make it possible to watch moves into the directory and allow watching file that doesn't exist at the time the watch is created. This interface is needed to implement the files provider, so this commit is related to: https://fedorahosted.org/sssd/ticket/2228 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

b3ee4be9e1794fa823696d70d4958f3b0269939c 15-Feb-2017 Jakub Hrozek <jhrozek@redhat.com>

DP: Add internal DP interface to set domain state Adds functions to the interface Data Provider publishes towards back ends that allows the back ends to notify responders that a domain has been enabled or disabled. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

205a0b9e9234327730fa808be95b2e1db7ffee95 15-Feb-2017 Jakub Hrozek <jhrozek@redhat.com>

RESPONDER: A sbus interface to reset negatively cached users and groups Adds two new responder sbus interface functions: ResetNegcacheUsers and ResetNegcacheGroups. These functions can be called by a Data Provider to signal to a responder that it should drop its negative cache. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

c109f063b4469818fd335b8b509f0458e7b33b0a 15-Feb-2017 Jakub Hrozek <jhrozek@redhat.com>

RESPONDER: Add a responder sbus interface to set domain state Adds a generic responder s-bus interface that all responders implement. The interface currently contains methods that make it possible for a sssd domain to be marked as active or inconsistent by a back end. In the future, this commit will be superseded by sbus signals. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

e5d8b0e10238490c5d199063c0a258ba53c2ac65 08-Feb-2017 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Fix linking of test_sdap_initgr There was a linking fialure on debian: /usr/bin/ld: src/tests/cmocka/test_sdap_initgr-test_sdap_initgr.o: undefined reference to symbol 'hash_iterate@@DHASH_0.4.3' //usr/lib64/libdhash.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status This patch adds some missing libraries and remove unnecessary libraries. Bug was intoduced in commit 0b7ded15e53b3f31f1570c366f04bc41e5761929 Reviewed-by: Michal Židek <mzidek@redhat.com>

a8191ce7ad5364801ad9458c3194075a7ca77b8a 08-Feb-2017 Pavel Březina <pbrezina@redhat.com>

ssh: rewrite ssh responder to use cache_req This is a bigger change since both supported commands could be rewritten for cache_req and the logic could be deleted. I decided to also split the file into more modules and follow similar pattern as with nss responder. Resolves: https://fedorahosted.org/sssd/ticket/1126 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

53c31b83e4d06ea4c2813eec2f1e647a613b4a2b 08-Feb-2017 Pavel Březina <pbrezina@redhat.com>

cache_req: add host by name search Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

0b7ded15e53b3f31f1570c366f04bc41e5761929 08-Feb-2017 Petr Čech <pcech@redhat.com>

TESTS: Tests for sdap_search_initgr_user_in_batch This patch provides tests for core logic of sdap_search_initgr_user_in_batch() function. This function replaces old approach with sysdb_try_to_find_expected_dn() function. Resolves: https://fedorahosted.org/sssd/ticket/3230 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com>

c029f707d4847b01ff64bf3bb1fd46c0b5927cdb 07-Feb-2017 Lukas Slebodnik <lslebodn@redhat.com>

Partially revert "CONFIG: Use default config when none provided" This reverts part of commit 59744cff6edb106ae799b2321cb8731edadf409a. Removed is copying of default configuration into /etc/sssd/sssd.conf Sample configurations is still part of installation. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

c369b062182c746849196e495db467198039edf4 26-Jan-2017 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Fix linking of test_wbc_calls Client code does not anymore depend on libpthread in master. This is a reason why we didn't notice any linking failure in master. But the test should be linked with CLIENT_LIBS. CCLD test_wbc_calls /usr/bin/ld: src/sss_client/test_wbc_calls-common.o: undefined reference to symbol 'pthread_mutexattr_setrobust@@GLIBC_2.12' //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:12460: recipe for target 'test_wbc_calls' failed Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

9222a4fcbeec9d5a6f84aab31a5131f14d4a6430 23-Jan-2017 Fabiano Fidêncio <fidencio@redhat.com>

IFP: Make IFP responder dbus-activatable As part of the effort of making all responders socket-activatable (or, in the IFP case, dbus-activatable), let's make the IFP responder ready for this by providing its systemd's units. Related: https://fedorahosted.org/sssd/ticket/2243 Resolves: https://fedorahosted.org/sssd/ticket/3129 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

f37e795cd16310759dc9741c1ab1323b287a9101 23-Jan-2017 Fabiano Fidêncio <fidencio@redhat.com>

SUDO: Make Sudo responder socket-activatable As part of the effort of making all responder socket-activatable, let's make Sudo responder ready for this by providing its systemd's units. In case the administrators want to use Sudo responder taking advantage of socket-activation they will need to enable sssd-sudo.socket and after a restart of the sssd service, the Sudo socket will be ready waiting for any activity in order to start the Sudo responder. Also, the Sudo responder must be removed from the services line on sssd.conf. The Sudo responder service is binded to the SSSD service, which means that the responder will be restarted in case SSSD is restarted and shutdown in case SSSD is shutdown/crashes. Related: https://fedorahosted.org/sssd/ticket/2243 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

b33c275ebac86695f7a2fa866e5766d469e2c578 23-Jan-2017 Fabiano Fidêncio <fidencio@redhat.com>

SSH: Make SSH responder socket-activatable As part of the effort of making all responder socket-activatable, let's make SSH responder ready for this by providing its systemd's units. In case the administrators want to use SSH responder taking advantage of socket-activation they will need to enable sssd-ssh.socket and after a restart of the sssd service, the SSH socket will be ready waiting for any activity in order to start the SSH responder. Also, the SSH responder must be removed from the services line on sssd.conf. The SSH responder service is binded to the SSSD service, which means that the responder will be restarted in case SSSD is restarted and shutdown in case SSSD is shutdown/crashes. Related: https://fedorahosted.org/sssd/ticket/2243 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

6a7e28f06e4db1fa07e63ee39f3c28446ff56f4e 23-Jan-2017 Fabiano Fidêncio <fidencio@redhat.com>

PAM: Make PAM responder socket-activatable As part of the effort of making all responder socket-activatable, let's make PAM responder ready for this by providing its systemd's units. In case the administrators want to use PAM responder taking advantage of socket-activation they will need to enable sssd-pam.socket and after a restart of the sssd service, the PAM socket will be ready waiting for any activity in order to start the PAM responder. Also, the PAM responder must be removed from the services line on sssd.conf. The PAM responder service is binded to the SSSD service, which means that the responder will be restarted in case SSSD is restarted and shutdown in case SSSD is shutdown/crashes. PAM responder, differently from the others, is a special case as it has two sockets and its private sockets must be owned by root and must have a specifc permission (0600). It's not new, though, and it's following what has been already done in the project.. Related: https://fedorahosted.org/sssd/ticket/2243 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

e4093605339062548364d338c811431673bdfe25 23-Jan-2017 Fabiano Fidêncio <fidencio@redhat.com>

PAC: Make PAC responder socket-activatable As part of the effort of making all responder socket-activatable, let's make PAC responder ready for this by providing its systemd's units. In case the administrators want to use PAC responder taking advantage of socket-activation they will need to enable sssd-pac.socket and after a restart of the sssd service, the PAC socket will be ready waiting for any activity in order to start the PAC responder. Also, the PAC responder must be removed from the services line on sssd.conf. The PAC responder service is binded to the SSSD service, which means that the responder will be restarted in case SSSD is restarted and shutdown in case SSSD is shutdown/crashes. Related: https://fedorahosted.org/sssd/ticket/2243 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

40e9ad2bf250cc3bfcdec7fb96031e2771160f69 23-Jan-2017 Fabiano Fidêncio <fidencio@redhat.com>

NSS: Make NSS responder socket-activatable As part of the effort of making all responders socket-activatable, let's make the NSS responder ready for this by providing its systemd's units. In case the administrators want to use NSS responder taking advantage of socket-activation they will need to enable sssd-nss.socket and after a restart of the sssd service, the NSS socket will be ready waiting for any activity in order to start the NSS responder. Also, the NSS responder must be removed from the services line on sssd.conf. The NSS responder service is binded to the SSSD service, which means that the responder will be restarted in case SSSD is restarted and shutdown in case SSSD is shutdown/crashes. Is quite important to mention that NSS responder will always run as root. The reason behind this is that systemd calls getpwnam() and getgprnam() when "User="/"Group=" is set to something different than "root". As it's done _before_ starting NSS responder, the clients would end up hanging for a few minutes (due to "default_client_timeout"), which is something that we really want to avoid. Related: https://fedorahosted.org/sssd/ticket/2243 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

61cd5c8307be4c4ac53028c4499b8bdd78e322b6 23-Jan-2017 Fabiano Fidêncio <fidencio@redhat.com>

AUTOFS: Make AutoFS responder socket-activatable As part of the effort of making all responders socket-activatable, let's make the AutoFS responder ready for this by providing its systemd's units. In case the administrators want to use AutoFS responder taking advantage of socket-activation they will need to enable sssd-autofs.socket and after a restart of the sssd service, the AutoFS socket will be ready waiting for any activity in order to start the AutoFS responder. Also, the AutoFS responder must be removed from the services line on sssd.conf. The AutoFS responder service is binded to the SSSD service, which means that the responder will be restarted in case SSSD is restarted and shutdown in case SSSD is shutdown/crashes. Related: https://fedorahosted.org/sssd/ticket/2243 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

0b78b4e32955ced0f35c6d4685bd277bb03d04cb 21-Jan-2017 Sumit Bose <sbose@redhat.com>

libwbclient-sssd: wbcLookupSid() allow NULL arguments Some caller might not be interested in some of the values wbcLookupSid() returns and just pass NULL. Currently 'net ads user info' does this because it is not interested in the domain. wbcLookupSid() should handle this gracefully. Resolves: https://fedorahosted.org/sssd/ticket/3273 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

d4063e9a21a4e203bee7e0a0144fa8cabb14cc46 09-Jan-2017 Victor Tapia <victor.tapia@canonical.com>

MONITOR: Create pidfile after responders started Resolves: https://fedorahosted.org/sssd/ticket/3080 Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

929bb1170931d7aafac4dc0572ce18747c919a56 02-Jan-2017 Lukas Slebodnik <lslebodn@redhat.com>

intg: Generate tmp dir with lowercase This is a workaround for buggy python-requests 2.12.4. It cannot handle uppercase letters in file path. The manual page MKTEMP(1) says that the parameter --dry-run is unsafe. It is not critical for our use-case in CI but we should revert the patch after fixed version of puython-request will be released Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

075d89886666d3b608355d8f235b411051a9d22e 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

nss: remove the old code Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

8d5292227a8d1ab9c6aa5b88d8ac8655cd1223e5 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

nss: make nss responder tests work with new code There were few type of changes that were require for tests to work: 1) When calling "get by name" commands, a name is parsed with sss_parse_inp. Returned value is now mocked. 2) When calling "get by upn" commands, a name is parsed with sss_parse_inp and negative cache is not hit in the first run since cache_req knows it may be upn since it is not equal to any known domain. Returned value of sss_parse_inp is now mocked to return ERR_DOMAIN_NOT_FOUND and negative cache hits are checked to be 0. 3) Lookups by certificate or sid do not require name parsing so those have separate mock functions. 4) Sometime the test fail since different number of mocked functions is called due to changes in the code. Where possible, will_return_always() is used, otherwise number of mocked values was fixed. 5) In SID by name lookups, we set nss_test_ctx->tctx->done to false on the beggining of for cycle, since the code now contains tevent calls and withough it only a first request proceed into tevent_loop in test_ev_loop() because the first finished request sets it to true. Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

4049b63f8c67ada17b453463b0451ca6be3d5de4 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

nss: rewrite nss responder so it uses cache_req Given the size of the current nss responder it was quite impossible to simply switch into using the cache_req interface, especially because most of the code was duplication of cache lookups. This patch completely rewrites the responder from scratch. The amount of code was reduced to less than a half lines of code with no code duplication, better documentation and better maintainability and readability. All functionality should be intact. *Code organization* All protocol (parsing input message and send a reply) is placed in nss_protocol.c. Functions that deals with creating a reply packet are placed into their specific nss_protocol_$object.c files. All supported commands are placed into nss_cmd.c. Functions that deals with cache req are in nss_get_object.c and nss_enum.c. *Code flow for non-enumeration* An nss_getby_$input-type is called for each non-enumeration command. This function parses the input message, creates a cache_req_data structure and issues nss_get_object that calls cache_req. When this request is done nss_getby_done make sure a reply is sent to the client. *Comments on enumeration* I made some effort to make sure enumeration shares the same code for users, groups, services and netgroups. Netgroups now uses nss negative cache instead of implementing its own. Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

a5a3bbb0bbaeb8946c228c2fb7f0cf450595dd3e 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

utils: add sss_ptr_hash module We often work with <string, pointer> type of hash table throughout sssd. This module creates and maintains such hash table and makes sure that hash entry is destroyed when original value is freed. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

3be2628d8aba6aeb99ac1484da990f1fad8169ec 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

cache_req: add object by id This request returns either user or group object. Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

488518dde58724daa13b9216a0f1af6e0ba5401f 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

cache_req: add object by name This request returns either user or group object. Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

7a2ca8d776df685bddbb64370181fb32d776f676 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

cache_req: return well known objects in object by sid Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

6b159f14f69134bba8510a6b50ab62493a23a73f 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

cache_req: add support for netgroups Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

0ae7e46a3990c47873fca879a9395e3ce00d9150 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

cache_req: add support for services enumeration Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

c2fc9459c31cb1192ab3c15ce4df1c150e99bf95 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

cache_req: add support for service by port Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

2e13817e64ff1e0e47dc844be501f2d3ab299f34 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

cache_req: add support for service by name Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

12d771585a84a7523a5b7d9cf502d4bcddecb9b9 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

cache_req: add group enumeration Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

a79acee185654d110c0e35ba351368d664e4e53d 19-Dec-2016 Pavel Březina <pbrezina@redhat.com>

cache_req: add user enumeration Resolves: https://fedorahosted.org/sssd/ticket/3151 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

167b05b28d6b969230973646bee2f1c1f49205d2 28-Nov-2016 Sumit Bose <sbose@redhat.com>

krb5: add tests for common functions Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

99b2352f909c548811617389641a9ccc3e17bc53 24-Nov-2016 Fabiano Fidêncio <fidencio@redhat.com>

BUILD: Drop libsss_config libsss_config has been used only by OpenLMI and the project has been deprecated making, then, no sense to keep the support on SSSD. Distros that, for some reason, are still packing and distributing OpenLMI can stick to SSSD 1.14 branch. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

d2f93542650c2f9613043acfa8e2f368972a70cd 24-Nov-2016 Howard Guo <hguo@suse.com>

sss_client: Defer thread cancellation until completion of nss/pam operations The client code is not cancellation-safe, an application which has cancelled an NSS operation will experience subtle bugs, hence thread cancellation is deferred until completion of client operations. Resolves: https://fedorahosted.org/sssd/ticket/3156 Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Florian Weimer <fweimer@redhat.com>

6d11fdcd8ef05000dd20b3431f8491790f99a802 07-Nov-2016 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Fix linking with librt The posix realime extensions defines timer_* functions but it does not mention library with these functions. http://www.unix.org/version2/whatsnew/realtime.html The autoconf macro AC_SEARCH_LIBS firstly check the function timer_create with no libraries, then for each library listed in 2nd parameter. Possible libraries librt and libposix4 were used in nspr for similar detection. Reviewed-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>

13adcd07000ba3ca1422c6ee863df17d70e2b14c 22-Oct-2016 Sorah Fukumori <her@sorah.jp>

BUILD: Fix installation without samba winbindplugindir is defined only when BUILD_SAMBA is on. Also the file doesn't exist when BUILD_SAMBA is off, so installation will fail. Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

4117ae3230f6744c255b0309e86d519d7e41d2d7 21-Oct-2016 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Fix build without samba The test test_ad_subdom should be compiled only if samba build is enabled. In file included from src/tests/cmocka/test_ad_subdomains.c:39:0: ./src/providers/ad/ad_subdomains.c:35:17: fatal error: ndr.h: No such file or directory #include <ndr.h> ^ compilation terminated. Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

8f1316a0c677f211eaaa1346e21a03446b8c4fb1 20-Oct-2016 Lukas Slebodnik <lslebodn@redhat.com>

crypto: Port libcrypto code to openssl-1.1 EVP_MD_CTX and EVP_CIPHER_CTX are opaque in openssl-1.1 Reviewed-by: Tomas Mraz <tmraz@redhat.com>

4169fb26ea2ff93c19ecdad6e09382732ea5deeb 20-Oct-2016 Pavel Březina <pbrezina@redhat.com>

cache_req: switch to new code This patch switch the old switch-based cache req code to the new plugin-based. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

f4f2edba5c555773d7c9adfa95562b96b0c0cdb2 11-Oct-2016 Pavel Březina <pbrezina@redhat.com>

sssctl: use systemd D-Bus API If systemd is used we leverage it's D-Bus API instead of running systemctl. Resolves: https://fedorahosted.org/sssd/ticket/3056 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

bc1e74e5f0f69d7ed9a7ad8455de59c979816431 26-Sep-2016 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: intgcheck need to fail if pytest fails Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

1773fdad2730f3f910782781fa286f402ce36cca 22-Sep-2016 Lukas Slebodnik <lslebodn@redhat.com>

SSSDConfig: Do not fail with nonexisting domains/services dict.keys() returns iterator in python3 and not list Chaging data in dictionary while using iterator fails with "RuntimeError: dictionary changed size during iteration" https://fedorahosted.org/sssd/ticket/3107 Reviewed-by: Michal Židek <mzidek@redhat.com>

6ad1f2da4055e2cfe9bf8c79b79e408dba171691 21-Sep-2016 Lukas Slebodnik <lslebodn@redhat.com>

TESTS: Add simple test for double semicolon Reviewed-by: Pavel Březina <pbrezina@redhat.com>

4f2509f8d23d9e921f07b2ead63392ae82ad3a38 19-Sep-2016 Petr Čech <pcech@redhat.com>

MAKEFILE: Fixing CFLAGS in some tests Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

4229ffb929bd7029f8b94d92099032d3350f5cf4 29-Aug-2016 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Remove leftover after sysdb refactoring Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

9639cf410dd6ba9670748535811f061e0c475bc6 29-Aug-2016 Fabiano Fidêncio <fidencio@redhat.com>

BUILD: Fix typo in intgcheck-run rule During the review process "intgcheck-build" ended up being merged to the "intgcheck-prepare" rule. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

01d970a8afa6ffed82b3e8dda96e08118222e16e 29-Aug-2016 Fabiano Fidêncio <fidencio@redhat.com>

BUILD: Clean up prerelease targets Clean up the pre-release targets in order to avoid lines exceeding 80 characters. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

6159c33125f8ee82e88d495ea2aa5d00018ea844 29-Aug-2016 Fabiano Fidêncio <fidencio@redhat.com>

BUILD: Add a few more targets for intg tests Running "make intgcheck" has been proven to be a bit painful (mainly when the developer is just writing down a single test case), as it cleans up the build directory and fireis a new build before, finally, run the tests. In order to make it a little less painful, let's break the whole operation into 3 new targets: intgcheck-{prepare,run,clean}. As expected, "make intgcheck" calls these 3 new operations in the same order they were presented, not changing then the current behavior. Each operation will trigger the previous one in case there is no "$$prefix" directory created and the directory is _only_ created in the very first operation (intghcheck-prepare). A note must be done about how to run a simple test file or a simple test from a test file when running "make intgcheck-run". The option always been here but only makes sense now that we have the intgcheck split in a few useful steps. See the examples below (and for more detailed information, check the py.test documentation): #Run a single file make intgcheck-run INTGCHECK_PYTEST_ARGS="-k test_netgroup.py" #Run a single test from a single file make intgcheck-run INTGCHECK_PYTEST_ARGS="-k test_add_empty_netgroup" Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

f49724cd6b3e0e3274302c3d475e93f7a7094f40 26-Aug-2016 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Allow to read private pipes for root Root can read anything from any directory even with permissions 000. However SELinux checks discretionary access control (DAC) and deny access if access is not allowed for root by DAC. The pam_sss use different unix socket /var/lib/sss/pipes/private/pam for user with uid 0. Therefore root need to be able read content of directory with private pipes. type=AVC msg=audit(08/19/2016 10:58:34.081:3369) : avc: denied { dac_read_search } for pid=20257 comm=vsftpd capability=dac_read_search scontext=system_u:system_r:ftpd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:ftpd_t:s0-s0:c0.c1023 tclass=capability type=AVC msg=audit(08/19/2016 10:58:34.081:3369) : avc: denied { dac_override } for pid=20257 comm=vsftpd capability=dac_override scontext=system_u:system_r:ftpd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:ftpd_t:s0-s0:c0.c1023 tclass=capability Resolves: https://fedorahosted.org/sssd/ticket/3143 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

733100a12138a701d0ae7ef5af2b04b08e225033 17-Aug-2016 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Ship systemd service file for sssd-secrets Adds two new files: sssd-secrets.socket and sssd-secrets.service. These can be used to socket-acticate the secrets responder even without explicitly starting it in the sssd config file. The specfile activates the socket after installation which means that the admin would just be able to use the secrets socket and the sssd_secrets responder would be started automatically by systemd. The sssd-secrets responder is started as root, mostly because I didn't think of an easy way to pass the uid/gid to the responders without asking about the sssd user identity in the first place. But nonetheless, the sssd-secrets responder wasn't tested as non-root and at least the initialization should be performed as root for the time being. Reviewed-by: Fabiano Fidêncio <fabiano@fidencio.org> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

b3a22ee1d91aa4ed1544475be16ec2b7cf886180 17-Aug-2016 Jakub Hrozek <jhrozek@redhat.com>

UTIL: Use sss_atomic_read_s in generate_csprng_buffer There was a bug in generate_csprng_buffer() where if we read the exact amount of bytes from /dev/urandom, we would always return EIO. Instead, let's reuse the existing code from sss_atomic_read_s() which fixes this bug and reduces code duplication. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Fabiano Fidêncio <fabiano@fidencio.org>

e4d18b748fd8298b5cc6b6687ca05ffffa20c574 17-Aug-2016 Petr Cech <pcech@redhat.com>

TESTS: Adding tests for ad_enabled_domains option There is special logic around ad_enabled_domains option: * option is disabled by default * master domain is always added to enabled domains Resolves: https://fedorahosted.org/sssd/ticket/2828 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

04e870d99e72aa3160bdb6ab05d986fb4005c3ed 16-Aug-2016 Pavel Březina <pbrezina@redhat.com>

DP: Remove old data provider interface Reverse data provider interface is moved to a better location in NSS responder. All responders now can have an sbus interface defined per data provider connection. The unused old data provider interface is removed. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

e07d700ed9daf0cf96607fa2d72978cb2431b794 16-Aug-2016 Pavel Březina <pbrezina@redhat.com>

PROXY: Do not abuse data provider interface We want to use custom interface for proxy provider so we do not abuse the data provider one. This way we gain more control over it and we can remove the old interface entirely. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

439e08cdc5c83b3e5835cb0435983f1da2ffbaf1 16-Aug-2016 Pavel Březina <pbrezina@redhat.com>

sbus: add utility function to simplify message and reply handling This patch adds the ability to hook DBusMessage to a talloc context to remove the need of calling dbus_message_unref(). It also provides an automatical way to detect error in a reply so the caller does not need to parse it manually and the whole code around DBusError can be avoided. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

c777f575b0ec0c48ce3b85ea2c5cc298db02450e 10-Aug-2016 Jakub Hrozek <jhrozek@redhat.com>

SIMPLE: Make the DP handlers testable To make it possible to call the whole DP handler in the unit test, not just the evaluator part. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

7fe7073ad2c84946a699528a3bb79f7803c96b69 25-Jul-2016 Sumit Bose <sbose@redhat.com>

tests: add tests for netlogon_get_domain_info Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

e088912418fd4db750f2097dfde8ef9b77303f05 07-Jul-2016 Michal Židek <mzidek@redhat.com>

sssctl: Add config-check command Fixes: https://fedorahosted.org/sssd/ticket/2269 sssctl sconfig-check command allows to call SSSD config file validators on demand. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

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

TESTS: Convert the tests to use qualified names for ldb lookups The timestamp cache tests look into ldb to check the timestamps. This patch converts the lookups to qualified names to make sure the lookups actually match. Reviewed-by: Sumit Bose <sbose@redhat.com>

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

PAM: Use qualified names internally in the PAM responder The name is converted from whatever we receive on input to the internal format before processing the data further. Reviewed-by: Sumit Bose <sbose@redhat.com>

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

NSS: Fix NSS responder to cope with fully-qualified usernames Adds a utility function sized_output_name() which wraps the output_name() function and returns the sized_struct structure. This function is used when formatting the output name for the client, but also when saving/deleting the memory cache entries. Its sister function sized_member_name() is very similar, but infers the domain name from memberuid or ghost attribute. Because all names internally are used in the same format, the logic to append domain or format the usename for output in the fill_XXX() family of functions is much simpler. In general, adding a domain suffix no longer relies in the domain being a subdomain, but only the dom->fqnames The parse_member() function was removed because it is no longer required. The nss test was amended to store names in the internal fqdn format on input and checks for either shortnames or qualified names with the right format created using sss_tc_fqname() on output. Reviewed-by: Sumit Bose <sbose@redhat.com>

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

TESTS: Fix the nested group tests to cope with FQDNs Reviewed-by: Sumit Bose <sbose@redhat.com>

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

TESTS: Convert the simple access provider to cmocka Using a cmocka-based test allows us to initialize the domain using the common helper functions which in turn allows us to set different properties with confdb, same as sssd itself does. Reviewed-by: Sumit Bose <sbose@redhat.com>

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

TESTS: Amend sysdb_view tests for the FQDN schema Reviewed-by: Sumit Bose <sbose@redhat.com>

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

TESTS: Fix sysdb tests to work with the new format The sysdb tests now user the qualified name to store users and groups. To avoid the sysdb interface being tied too tightly to our specific format, all names are constructed using a function, not hardcoded. Just swapping the functions that create or parse the names for a different format should not make the test fail. Reviewed-by: Sumit Bose <sbose@redhat.com>

338af078fcc18126df939f20182acea7a646b7c8 07-Jul-2016 Michal Zidek <mzidek@redhat.com>

TESTS: Fix the ldap_id_cleanup test for using qualified names in sysdb Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

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

BUILD: Temporarily disable unit and integration tests until we fix them to cope with qualified names in sysdb Many tests use and rely on non-qualified usernames. To avoid huge commits, we will fix them one-by-one. To avoid test failures in the branch, disable all the tests first. Reviewed-by: Sumit Bose <sbose@redhat.com>

8f2a34cc6964a1f80a1434e05315a7ae0bb5774e 29-Jun-2016 Simo Sorce <simo@redhat.com>

Secrets: Add Proxy backend Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

625bb2ddf15e8f305a53afa44e87f2146fa930af 29-Jun-2016 Simo Sorce <simo@redhat.com>

Secrets: Add encryption at rest Generates a master key file if it doesn't exist and encrypts secrets using the master key contained in the file. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

1dd679584241a0f9b29072c7eed1c5c5e4a577e4 29-Jun-2016 Simo Sorce <simo@redhat.com>

Add initial providers infrastructure. Also adds support for the basic LOCAL provider that stores data on the local machine. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

a8d1a344e580f29699aed9b88d87fc3c6f5d113b 29-Jun-2016 Simo Sorce <simo@redhat.com>

Secrets: Add initial responder code for secrets service Start implementing the Secrets Service Reponder core. This commit implements stratup and basic conenction handling and HTTP parsing (using the http-parser library). Signed-off-by: Simo Sorce <simo@redhat.com> Related: https://fedorahosted.org/sssd/ticket/2913 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

e5911e72198df96ec7cfe486ff66363c2297a5f7 29-Jun-2016 Simo Sorce <simo@redhat.com>

Responders: Add support for socket activation Add helper that uses systemd socket activation if available to accept a pre-listining socket at startup. Related: https://fedorahosted.org/sssd/ticket/2913 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

75ba524d356fed615a9c92152f64aebf0bdaf9c2 29-Jun-2016 Simo Sorce <simo@redhat.com>

Util: Add watchdog helper The watchdog uses a kernel timer to issue a signal to the process. It checks if the ticker is not being reset by the main event loop, which would indicate that the process got stuck. At the same time it sets a tevent timer to clear the watchdog ticker, so that the watchdog handler is kept happy. If the watchdog detects that the timer event failed to reset the watchdog for three times in a row then the process is killed. Normally the monitor will detect the child terminated and will rescheduled it. Related: https://fedorahosted.org/sssd/ticket/2921 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>

c42ca36247022490ad65a33c453cb5e43900dbe9 27-Jun-2016 Lukas Slebodnik <lslebodn@redhat.com>

Prepare ini schema with rules for validation Resolves: https://fedorahosted.org/sssd/ticket/2028 Reviewed-by: Michal Židek <mzidek@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

cca497b4cbbbf05c4f9181b7d8113cde81754831 27-Jun-2016 Michal Židek <mzidek@redhat.com>

confdb: Make it possible to use config snippets Resolves: https://fedorahosted.org/sssd/ticket/2247 Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

e157b9f6cb370e1b94bcac2044d26ad66d640fba 27-Jun-2016 Pavel Březina <pbrezina@redhat.com>

sssctl: new tool Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

bf83a0faacf16196ab9bd37dcf6190b4209ccaf7 27-Jun-2016 Pavel Březina <pbrezina@redhat.com>

DP: Add org.freedesktop.sssd.DataProvider.Failover Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

586fa3571753ab4a607d40fc31503fc0e8effd70 27-Jun-2016 Pavel Březina <pbrezina@redhat.com>

DP: Add org.freedesktop.sssd.DataProvider.Backend Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

d2d8f342cd5e90bb9fd947c448492225f959aa86 27-Jun-2016 Pavel Březina <pbrezina@redhat.com>

sss_tools: create confdb if not exist So tools (especially sssctl) may be run even when databases where removed. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

aea1d5c0ca9bb1470759b024c8b97b6c1f577193 27-Jun-2016 Pavel Březina <pbrezina@redhat.com>

sss_tools: add test if sssd is running Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

36e262020c80479baa09b2c4c8dd045c7a0f32a1 27-Jun-2016 Pavel Březina <pbrezina@redhat.com>

sss_sifp: bump version to 1:0:1 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

7f0b01bf0a8f5c5b3ef145e81511b6db2cb4f98f 27-Jun-2016 Pavel Březina <pbrezina@redhat.com>

IFP: new header file that contains interface definitions To be shared across tools and libs. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

d36f4db9bb5efc63b94190cca25adb08ee56971c 23-Jun-2016 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Add a unit test for timestamps caches Reviewed-by: Sumit Bose <sbose@redhat.com>

6e9d7cbe43fdfc866b18f9ef0779bbfc10ad6f3a 23-Jun-2016 Jakub Hrozek <jhrozek@redhat.com>

SYSDB: Move sysdb initialization into a new module sysdb_init.c The sysdb initialization was in the sysdb.c module. With adding initialization of the timestamp cache, this module would become too big with too many private functions meant only for initialization. This patch only moves code around, there are no functional changes to the initialization. Reviewed-by: Sumit Bose <sbose@redhat.com>

1d1a0a019d8d4d9ab0f51ada03604cd2cada287e 21-Jun-2016 Sumit Bose <sbose@redhat.com>

Add winbind idmap plugin With this plugin winbind can use the same id-mapping as SSSD which makes it possible to run both together in a consistent way. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

83a79d93035c2d75a1941f3b54426119174044a0 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

RESPONDER: New interface for client registration This is just a beginning of new responder interface to data provider and it is just to make the client registration work. It needs further improvement. The idea is to take the existing interface and make it work better with further extensions of data provider. The current interface has several disadvantages such as it is originally build only for account requests and doesn't take different set of output parameters. It also doesn't work well with integration into tevent-made responders. Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

dea636af4d1902a081ee891f1b19ee2f8729d759 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

DP: Switch to new interface Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

Makefile.am src/providers/ad/ad_access.c src/providers/ad/ad_access.h src/providers/ad/ad_autofs.c src/providers/ad/ad_common.h src/providers/ad/ad_id.c src/providers/ad/ad_id.h src/providers/ad/ad_init.c src/providers/ad/ad_subdomains.c src/providers/ad/ad_subdomains.h src/providers/ad/ad_sudo.c src/providers/backend.h src/providers/data_provider/dp_custom_data.h src/providers/data_provider/dp_iface.c src/providers/data_provider/dp_iface.h src/providers/data_provider/dp_target_auth.c src/providers/data_provider/dp_target_autofs.c src/providers/data_provider/dp_target_hostid.c src/providers/data_provider/dp_target_id.c src/providers/data_provider/dp_target_subdomains.c src/providers/data_provider/dp_target_sudo.c src/providers/data_provider_be.c src/providers/data_provider_req.c src/providers/data_provider_req.h src/providers/ipa/ipa_access.c src/providers/ipa/ipa_access.h src/providers/ipa/ipa_auth.c src/providers/ipa/ipa_auth.h src/providers/ipa/ipa_autofs.c src/providers/ipa/ipa_common.h src/providers/ipa/ipa_hbac_common.c src/providers/ipa/ipa_hostid.c src/providers/ipa/ipa_hostid.h src/providers/ipa/ipa_id.c src/providers/ipa/ipa_id.h src/providers/ipa/ipa_init.c src/providers/ipa/ipa_selinux.c src/providers/ipa/ipa_selinux.h src/providers/ipa/ipa_subdomains.c src/providers/ipa/ipa_subdomains.h src/providers/ipa/ipa_subdomains_ext_groups.c src/providers/ipa/ipa_subdomains_id.c src/providers/ipa/ipa_subdomains_server.c src/providers/ipa/ipa_sudo.c src/providers/krb5/krb5_auth.c src/providers/krb5/krb5_auth.h src/providers/krb5/krb5_common.h src/providers/krb5/krb5_init.c src/providers/ldap/ldap_access.c src/providers/ldap/ldap_auth.c src/providers/ldap/ldap_common.c src/providers/ldap/ldap_common.h src/providers/ldap/ldap_id.c src/providers/ldap/ldap_init.c src/providers/ldap/sdap_access.h src/providers/ldap/sdap_autofs.c src/providers/ldap/sdap_autofs.h src/providers/ldap/sdap_idmap.c src/providers/ldap/sdap_online_check.c src/providers/ldap/sdap_sudo.c src/providers/ldap/sdap_sudo.h src/providers/proxy/proxy.h src/providers/proxy/proxy_auth.c src/providers/proxy/proxy_client.c src/providers/proxy/proxy_id.c src/providers/proxy/proxy_init.c src/providers/simple/simple_access.c src/providers/simple/simple_access_check.c src/responder/autofs/autofssrv_dp.c src/responder/common/responder_dp.c src/responder/ssh/sshsrv_dp.c src/responder/sudo/sudosrv_dp.c src/tests/cmocka/test_nested_groups.c src/tests/simple_access-tests.c
62370340092503baeaf6587d7ffe4fe25bd9582d 20-Jun-2016 Pavel Reichl <preichl@redhat.com>

DP TESTS: Add unit tests for dp_builtin.c Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

49c467733ca65c9b77b9c33f38cdc223a99562e1 20-Jun-2016 Pavel Reichl <preichl@redhat.com>

DP TESTS: Add unit tests for dp_request.c Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

b9d83e10cec267ae11fee64a30f42a12bbf7abe4 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

DP TESTS: Add unit tests for dp_request_table.c Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

3e5e98aae4b14f5447c561ff5b0d854b74046312 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

DP TESTS: Mock data_provider Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

a1bf79449204ce9a5392b9d09b953a6bdf53a122 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

DP: Add callback for backward compatibility Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

d3dee2a07f1a8ee9ae6f94e149ced754ef76c248 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

DP: Introduce new interface for backend Terminology: * Backend: Implemenation of domain * Data Provider: interface between backend and responders * Module: ldap/ipa/ad/... dlopened library that implements dp interface * Target: id/autofs/sudo/... functionality of module Benefits over current code: * data provider is a black box completely separated from backend * method handlers are just simple tevent requests on backend side * no need of spy on be_client * simplified and error proof adding of new responders * simplified adding of new methods * reply to D-Bus message is completely handled by DP code * each target can have several methods defined * properties can be added on objects * each method can have output parameters * modules now support constructor * improved debugging * clear memory hierarchy * ability to chain requests * type safe private data Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

Makefile.am src/providers/backend.h src/providers/data_provider/dp.c src/providers/data_provider/dp.h src/providers/data_provider/dp_builtin.c src/providers/data_provider/dp_builtin.h src/providers/data_provider/dp_client.c src/providers/data_provider/dp_custom_data.h src/providers/data_provider/dp_flags.h src/providers/data_provider/dp_iface.c src/providers/data_provider/dp_iface.h src/providers/data_provider/dp_iface.xml src/providers/data_provider/dp_iface_generated.c src/providers/data_provider/dp_iface_generated.h src/providers/data_provider/dp_methods.c src/providers/data_provider/dp_modules.c src/providers/data_provider/dp_private.h src/providers/data_provider/dp_request.c src/providers/data_provider/dp_request.h src/providers/data_provider/dp_request_reply.c src/providers/data_provider/dp_request_table.c src/providers/data_provider/dp_responder_iface.h src/providers/data_provider/dp_sbus.c src/providers/data_provider/dp_targets.c
cc2d77d5218c188119fa954c856e858cbde76947 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

Rename dp_backend.h to backend.h Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

Makefile.am src/p11_child/p11_child_nss.c src/providers/ad/ad_access.c src/providers/ad/ad_gpo.c src/providers/ad/ad_gpo_child.c src/providers/ad/ad_srv.c src/providers/ad/ad_subdomains.h src/providers/backend.h src/providers/be_dyndns.c src/providers/be_ptask.c src/providers/be_refresh.c src/providers/data_provider_be.c src/providers/data_provider_callbacks.c src/providers/data_provider_fo.c src/providers/ipa/ipa_auth.h src/providers/ipa/ipa_dyndns.h src/providers/ipa/ipa_subdomains.h src/providers/ipa/selinux_child.c src/providers/krb5/krb5_auth.h src/providers/krb5/krb5_child.c src/providers/krb5/krb5_common.c src/providers/krb5/krb5_common.h src/providers/ldap/ldap_access.c src/providers/ldap/ldap_child.c src/providers/ldap/ldap_common.h src/providers/ldap/sdap.h src/providers/ldap/sdap_access.c src/providers/ldap/sdap_access.h src/providers/ldap/sdap_async.h src/providers/ldap/sdap_async_sudo.c src/providers/ldap/sdap_autofs.c src/providers/ldap/sdap_dyndns.c src/providers/ldap/sdap_dyndns.h src/providers/ldap/sdap_sudo.c src/providers/ldap/sdap_sudo.h src/providers/ldap/sdap_sudo_shared.h src/providers/proxy/proxy.h src/providers/proxy/proxy_child.c src/providers/simple/simple_access.c src/providers/simple/simple_access_check.c src/tests/cmocka/test_be_ptask.c src/tests/cmocka/test_data_provider_be.c
0429e21a45aa26c133cb4d8285a60446a0611e44 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

Rename dp_dyndns.c to be_dyndns.c Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

892ddeb5190dd5c1ffa26a95142a10a0034fc5e3 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

Rename dp_dyndns.h to be_dyndns.h Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

38b2bd97e41388995594126ea4e6b7c55ea0eb5c 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

Rename dp_refresh.c to be_refresh.c Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

50c2a57dea6d38a4f6753a917a5d745b07036325 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

Rename dp_refresh.h to be_refresh.h Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

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>

e7ccfb139388c947ec2dee16cfe3005f5643b90d 10-Jun-2016 Petr Cech <pcech@redhat.com>

RESPONDERS: Negative caching of local users This patch adds new option 'neg_cache_locals_timeout' into section of NSS responder. It allows negative caching of local groups and users. Default value is 0 which means no caching. Resolves: https://fedorahosted.org/sssd/ticket/2928 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

c23ea7772113a163139a7b7669303e9e80dc1d09 10-Jun-2016 Jakub Hrozek <jhrozek@redhat.com>

CONTRIB: Add a systemstap script to measure nested group code performance When all the dependencies are installed, run the script using systemtap: You'll see an output such as: # stap /usr/share/sssd/systemtap/nested_group_perf.stp ^CTime spent in group sssd_be searches: 600 Time spent in sdap_nested_group_send/recv: 65 ms (ratio: 10.83%) Time spent in zero-level sysdb transactions: 6813 ms (ratio: 1135.50%) Breakdown of sdap_nested_group req (total: 65 ms) sdap_nested_group_process req: 64 sdap_nested_group_process_split req: 22 sdap_nested_group_check_cache: 21 sdap_nested_group_sysdb_search_users: 10 sdap_nested_group_sysdb_search_groups: 9 ldap request breakdown of total 60 sdap_nested_group_deref req: 24 sdap_deref_search_send req 24 processing deref results: 0 sdap_nested_group_lookup_user req: 18 sdap_nested_group_lookup_group req: 0 Time spent refreshing unknown members: 18 Breakdown of results processing (total 6813) Time spent populating nested members: 10 Time spent searching ldb while populating nested members: 5 Time spent saving nested members: 110 Time spent writing to the ldb: 678 ms Please note that since the script is supposed to be used in scenarios such as tracing "id" performance, which typically involve multiple group requests. Therefore, the variables are not zeroed out and you need to interrupt the script manually with Ctrl+C. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

41291f19dbc5bf14f20729959b852fa605fcc02d 10-Jun-2016 Jakub Hrozek <jhrozek@redhat.com>

CONTRIB: Add a systemtap script to analyze the performance of the 'id' command Run this script using "stap" as root: sudo stap /path/to/sssd/contrib/systemtap/id_perf.stp It is not required to restart the script between successive id runs, the variables are cleared when systemtap detects id had started or finished. You should see output as this one: Total run time of id was: 112 ms Number of zero-level cache transactions: 9 Time spent in level-0 sysdb transactions: 84 ms Time spent writing to LDB: 80 ms Number of LDAP searches: 13 Time spent waiting for LDAP: 11 ms LDAP searches breakdown: Number of user requests: 1 Time spent in user requests: 15 Number of group requests: 6 Time spent in group requests: 71 Number of initgroups requests: 1 Time spent in initgroups requests: 20 Unaccounted time: 17 ms sysdb transaction breakdown: 1 hits of transaction sysdb_transaction_commit+0x6b [libsss_util.so] sdap_save_users+0x2d2 [libsss_ldap_common.so] sdap_get_users_done+0x186 [libsss_ldap_common.so] sdap_search_user_process+0x2d9 [libsss_ldap_common.so] generic_ext_search_handler+0x22f [libsss_ldap_common.so] sdap_get_and_parse_generic_done+0x6f [libsss_ldap_common.so] sdap_get_generic_op_finished+0x806 [libsss_ldap_common.so] sdap_process_message+0x3c4 [libsss_ldap_common.so] sdap_process_result+0x33a [libsss_ldap_common.so] sdap_ldap_next_result+0x2f [libsss_ avg:14 min: 14 max: 14 sum: 14 5 hits of transaction sysdb_transaction_commit+0x6b [libsss_util.so] sdap_nested_done+0x2c8 [libsss_ldap_common.so] sdap_nested_group_done+0x9b [libsss_ldap_common.so] 0x7f47a6320be4 [libtevent.so.0.9.26+0x4be4] avg:9 min: 9 max: 11 sum: 49 1 hits of transaction sysdb_transaction_commit+0x6b [libsss_util.so] sdap_nested_done+0x2c8 [libsss_ldap_common.so] sdap_nested_group_done+0x9b [libsss_ldap_common.so] sdap_nested_group_process_done+0x1dc [libsss_ldap_common.so] sdap_nested_group_single_done+0x112 [libsss_ldap_common.so] sdap_nested_group_recurse_done+0x95 [libsss_ldap_common.so] 0x7f47a6320be4 [libtevent.so.0.9.26+0x4be4] avg:11 min: 11 max: 11 sum: 11 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

630f3ff08c1d17c7900b9bde814922f775ca2703 10-Jun-2016 Jakub Hrozek <jhrozek@redhat.com>

LDAP: Decorate the hot paths in the LDAP provider with systemtap probes During performance analysis, the LDAP provider and especially its nested group code proved to be the place where we spend the most time during account requests. Therefore, I decorated the LDAP provider with systemtap probes to be able to observe where the time is spent. The code allows passing of search properties (base, filter, ...) from marks to probes. Where applicable, the probes pass on these arguments to functions and build a human-readable string representation. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

8c829226ce0cf98c35ffce39a66f9645cff65767 10-Jun-2016 Jakub Hrozek <jhrozek@redhat.com>

STAP: Add helper functions to for human-readable account request representation The caller of the systemtap script would be able to see what kind of account request sssd received with a string representation, not just the cryptic hexadecimal number. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

6dcbfe52d5e64205c0d922f3e89add066b42c496 10-Jun-2016 Jakub Hrozek <jhrozek@redhat.com>

SYSDB: Add systemtap probes to track sysdb transactions Actually adds marks for sysdb transactions that receive the transaction nesting level as an argument. The nesting is passed on from probes to marks along with a human-friendly description. The transaction commit is decorated with two probes, before and after. This would allow the caller to distinguish between the time we spend in the transaction (which might be important, because if a transaction is active on an ldb context, even the readers are blocked before the transaction completes) and the time we spend commiting the transaction (which is important because that's when the disk writes occur) The probes would be installed into /usr/share/systemtap/tapset on RHEL and Fedora. This is in line with systemtap's paths which are described in detail in "man 7 stappaths". Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

29c5542feb4c45865ea61be97e0e84a1d1f04918 10-Jun-2016 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Add build infrastructure for systemtap scripts Adds infrastructure that generatest the probes.h and probes.o from the dtrace probes.d file. The probes.d file is empty except for the provider name in this commit, its content will be added with later commits that actually add some content. The probes.d file is always distributed in the tarball so that distributions can optionally enable systemtap support. The generation is done using the "dtrace" command because the probes.d file is compatible with the Solaris dtrace format. Please see "man 1 dtrace" for more information on the dtrace format and the command line tool. In order to make libtool happy, a fake libtool object is generated. This hunk was taken from the libvirt code. The AM_V_GEN macro is used to make the build compatible with the silent build configuration. To enable systemtap probing, configure sssd with: --enable-systemtap In order to do so, the 'dtrace' command-line utility must be installed. On Fedora and RHEL, this package is installed as part of the "systemtap-sdt-devel" package. You'll also want the 'systemtap' package installed as well as the matching versions of kernel-devel and kernel-debuginfo on your machine. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

53f1b03f4e61ebe21df0c2fd05e09e0504fd8881 10-Jun-2016 Jakub Hrozek <jhrozek@redhat.com>

UTIL: Add a PROBE macro into probes.h The macros are inspired by very similar macros in libvirt code. Adds a macro PROBE that can be used by SSSD developers to add systemtap marks to code. These marks, when coupled with a location in a binary can be in turn used to call probes. The mark can be called like this: PROBE(PROBE_NAME, arguments) This is cleaner than using the SSSD_$(PROBE_NAME) directly as it directly shows that a probe is being called at that place. If the systemtap tracing is disabled, they would expand to an empty macro. If the systemtap tracing is enabled, the systemtap probe will be called. The overhead of calling the probes is close to zero. As one of the systemtap developers explained to me: """ STAP_PROBE() macros cost apprx. one nop in the executable, so apprx. no cost at all. The more the merrier. Only when activated by a stap script do we generally think of it like a microsecond of time. """ The probe arguments can be used in the probes to be printed or passed on to functions. There was an issue in case a string argument was NULL. This commit adds a helper macro to deal with NULL-strings as if they were empty (""). This file would be included by any source file that wants to call the PROBE() macro. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

9c88f837ffacf6548c13825589b327de1a5525f3 09-Jun-2016 Sumit Bose <sbose@redhat.com>

nss-idmap: add sss_nss_getnamebycert() Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

1a45124f3f300f9afdcb08eab0938e5e7d0534d9 09-Jun-2016 Sumit Bose <sbose@redhat.com>

NSS: add SSS_NSS_GETNAMEBYCERT request Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

56c9f8731173eae841a05f31bb03d311076a8485 11-May-2016 Petr Cech <pcech@redhat.com>

RESPONDERS: Negcache in resp_ctx preparing Preparation for initialization of negative cache in common responder. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

59744cff6edb106ae799b2321cb8731edadf409a 11-May-2016 Stephen Gallagher <sgallagh@redhat.com>

CONFIG: Use default config when none provided This patch makes SSSD possibly useful "out of the box" by allowing packagers to provide a default config file located in $LIBDIR/sssd/conf that will be copied by the monitor to /etc/sssd if no file already exists in that location. This will make it possible to have SSSD set up to have distribution-specific default configuration, such as enabling the proxy provider to cache /etc/passwd (such as in the provided example in this patch). Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

9face844e3063b61ab19e1d82bbf3d9f9de76ac7 05-May-2016 Petr Cech <pcech@redhat.com>

TEST: Removing duplication of mock_rctx There were duplicaton of mock_rctx(). Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

91d312000e6ded4a93327c137b10c5beda55f65c 21-Apr-2016 Sumit Bose <sbose@redhat.com>

build: move ndr_krb5pac check to the other Samba checks Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

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

TESTS: Test of sysdb_search_sudo_rules There are tests functions of sysdb_sudo_rules. Resolves: https://fedorahosted.org/sssd/ticket/2081 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

d0d7de66c9494621c1bc12384e41e5e38a77fbeb 13-Apr-2016 Sumit Bose <sbose@redhat.com>

PAC: only save PAC blob into the cache Resolves https://fedorahosted.org/sssd/ticket/2158 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

63b8e826f62d2e8930c872de7d4cc8b5bc15d4a4 13-Apr-2016 Sumit Bose <sbose@redhat.com>

AD: process PAC during initgroups request If there is a recently attached PAC blob in the cached user entry the PAC data is used to update the group memberships data of the user. If there is no PAC attached or if it is too old the other configured methods will be used. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

cce3e8526176ce2fe9baa5bda1bb457b996b7bcf 13-Apr-2016 Sumit Bose <sbose@redhat.com>

SDAP: make some AD specific calls public Make sdap_ad_tokengroups_get_posix_members() and sdap_ad_resolve_sids_send() reusable. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

444a82bd6d68c6f23e05d523ff92d328f6b2ec05 01-Apr-2016 Lukas Slebodnik <lslebodn@redhat.com>

CI: Use make check instead of make-check-wrap make-check-wrap had to be used due to missing LOG_COMPILER on rhel6 which is enabled with parallel test harness Reviewed-by: Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

558ec7d717735bb16c210c675c2cc5bee1da4576 23-Mar-2016 Lukas Slebodnik <lslebodn@redhat.com>

UTIL: Move debug part from util.h -> new debug.h Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

af820c9fc6aa1768e2e6b0df78fb489dbb1b28d0 14-Mar-2016 Pavel Březina <pbrezina@redhat.com>

mock domain: reset ldb errors After ldb connect ldb context contains the following error: "NULL Base DN invalid for a base search" This comes from internal ldb function ldb_set_default_dns() which runs base search on NULL dn to discover records similar to what rootDSE provides. However, tdb backend considers this an error and sets the message above. This may break memory leak checks in tests when we do push/pop on test_ctx which is a indirect parent of ldb_context. The error message is allocated when push is called but it is freed by other ldb queries and therefore not preset during the push phase and thus the leak check fails. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

de5fa34860886ad68fba5e739987e16c342e8f14 12-Mar-2016 Lukas Slebodnik <lslebodn@redhat.com>

libipa_hbac: Ensure we always build with C90 libipa_hbac is also used by external projects such as pam_hbac: https://github.com/jhrozek/pam_hbac In order to make sure we don't use C99 features in the libipa_hbac code in the future, this patch adds an explicit -std=c89 flag to CFLAGS. Signed-off-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

e0c86d21388bffe2e3919e780780c40d96186abb 12-Mar-2016 Jakub Hrozek <jhrozek@redhat.com>

libipa_hbac: Move the library to src/lib/ipa_hbac Moving the library to the lib directory will force maintainers to think twice about changes, because it would be obvious this is a library. Also don't use includes from sssd source tree paths, but add the util path to Makefile's CFLAGS so that other projects can copy the hbac_evaluator.c file verbatim. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

c6bda70d6131b5e8cd760ad690fae001d1765547 11-Mar-2016 Jakub Hrozek <jhrozek@redhat.com>

tests: Add a unit test for the external groups resolution Adds a test that tests a complex nested group hierarchy. Also defines the talloc chunk for group members to 1 to make sure the realloc branch is always tested. Unit test for: https://fedorahosted.org/sssd/ticket/2522 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

62bda5f75bda6b77aea30d708c74efaf725d9367 10-Mar-2016 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Remove unused include directories We do not have the "include" directory in git and such directory is not generated by autotools in build directory either. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

5dbf360f2d6b0281c32f1bba6ebf5cc834c1716e 09-Mar-2016 Simo Sorce <simo@redhat.com>

Util: Move socket setup in a common utility file Other components may need to connect sockets, the code here is generic enough that with minimal modifications can be used for non-ldap connections too. So create a sss_sockets.c/h utility file with all the non-ldap specific socket setup functions and make them available for other uses. Resolves: https://fedorahosted.org/sssd/ticket/2968 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

b590f44c06158485357d69cc5b24d5af05f1bb95 24-Feb-2016 Petr Cech <pcech@redhat.com>

TEST_TOOLS_COLONDB: Add tests for sss_colondb_* There are three functions at API of colondb wrapper: * sss_colondb_open() * sss_colondb_readline() * sss_colondb_writeline() This patch adds tests for all of them. We test those cases: * open nonexisting file for read * open nonexisting file for write * open existing empty file for read * open existing file with records for read * open existing empty file for write * open existing file with records for write * write to empty file * write to file with existing records * sss_colondb_open() * sss_colondb_readline() * sss_colondb_write_line() * write to empty file and read it Resolves: https://fedorahosted.org/sssd/ticket/2764 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

6499d0b915209b670f8e337c4fe76a8be9fa6576 28-Jan-2016 Simo Sorce <simo@redhat.com>

Util: Improve code to get connection credentials Adds support to get SELINUX context and make code more abstract so that struct ucred (if availale) can be used w/o redefining uid,gid,pid to int32. Also gives a layer of indirection that may come handy if we want to improve the code further in the future. Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com> Reviewed-by: Michal Židek <mzidek@redhat.com>

7ac503a73a26abe49f9f7d175c74df705380898d 21-Jan-2016 Pavel Březina <pbrezina@redhat.com>

MAKE: Do not compile generated header files Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

8babbeee01e67893af4828ddfc922ecac0be4197 20-Jan-2016 Pavel Reichl <preichl@redhat.com>

IDMAP: Add support for automatic adding of ranges Resolves: https://fedorahosted.org/sssd/ticket/2188 Reviewed-by: Sumit Bose <sbose@redhat.com>

5f7cd30c865046a7ea69944f7e07c85b4c43465a 19-Jan-2016 Sumit Bose <sbose@redhat.com>

AD: add task to renew the machine account password if needed AD expects its clients to renew the machine account password on a regular basis, be default every 30 days. Even if a client does not renew the password it might not cause issues because AD does not enforce the renewal. But the password age might be used to identify unused machine accounts in large environments which might get disabled or deleted automatically. With this patch SSSD calls an external program to check the age of the machine account password and renew it if needed. Currently 'adcli' is used as external program which is able to renew the password since version 0.8.0. Resolves https://fedorahosted.org/sssd/ticket/1041 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

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

IPA SUDO: Implement full refresh Reviewed-by: Sumit Bose <sbose@redhat.com>

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

IPA SUDO: Implement sudo handler Resolves: https://fedorahosted.org/sssd/ticket/XXXX Reviewed-by: Sumit Bose <sbose@redhat.com>

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

SDAP: use ipa_get_rdn() in nested groups Reviewed-by: Sumit Bose <sbose@redhat.com>

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

IPA: add ipa_get_rdn and ipa_check_rdn To exploit knowledge of IPA LDAP hierarchy. 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>

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

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

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

SDAP: Add request that iterates over all search bases We often need to iterate over many search bases but we always use mostly copy&paste iterator. This will reduce code duplication and simplify code flow. Reviewed-by: Sumit Bose <sbose@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>

291a6c8af9759e41cec6f332cb72606ca90768c3 14-Dec-2015 Pavel Březina <pbrezina@redhat.com>

KRB5: Mark globals in krb5_opts.h as extern To avoid collisions when we want to work with them elsewhere in the code. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

676bf6dda60776d9db79dad1c2506c0e57bb5503 14-Dec-2015 Pavel Březina <pbrezina@redhat.com>

IPA: Mark globals in ipa_opts.h as extern To avoid collisions when we want to work with them elsewhere in the code. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

9e6f8d1c66b4b3543bab67d807bd26f1d6256c75 14-Dec-2015 Pavel Březina <pbrezina@redhat.com>

AD: Mark globals in ad_opts.h as extern To avoid collisions when we want to work with them elsewhere in the code. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

f7ea0b1d46197275c87bdc73a6e38a6fd7f855ee 14-Dec-2015 Pavel Březina <pbrezina@redhat.com>

LDAP: Mark globals in ldap_opts.h as extern To avoid collisions when we want to work with them elsewhere in the code. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

03b859510dc13a13a456ca4aa94c0561a0e9684c 26-Nov-2015 Jakub Hrozek <jhrozek@redhat.com>

AD: Add autofs provider https://fedorahosted.org/sssd/ticket/1632 Adds the possibility to configure: autofs_provider = ad The AD autofs provider uses the rfc2307 (nis*) attribute maps. This is different (at the moment) from using autofs_provider=ldap with ldap_schema=ad. Reviewed-by: Ondrej Valousek <ondrejv2@fedoraproject.org> Reviewed-by: Pavel Březina <pbrezina@redhat.com>

544a20de7667f05c1a406c4dea0706b0ab507430 26-Nov-2015 Sumit Bose <sbose@redhat.com>

p11: enable ocsp checks This patch enables the Online Certificate Status Protocol in NSS and adds an option to disable it if needed. To make further tuning of certificate verification more easy it is not an option on its own but an option to the new certificate_verification configuration option. Resolves https://fedorahosted.org/sssd/ticket/2812 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

5484044ea7bb632b915f706685fce509f6eacc48 26-Nov-2015 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Only install polkit rules if the directory is available Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

3be9e26dcd169d44ae105f1b8a0674464c700b77 20-Nov-2015 Sumit Bose <sbose@redhat.com>

p11: allow p11_child to run completely unprivileged To only operation of p11_child which requires special privileges is the communication to pcscd which handles the Smartcard access. pcscd uses policy-kit for access control so access can easily be configured by dropping config snippets into the right directory. If SSSD is configured to run as un-privileged user this patch creates the needed config snippet for policy-kit and installs it in a suitable directory. As a result p11_child does not have to be installed with SETUID or SETGID bits set. Resolves https://fedorahosted.org/sssd/ticket/2755 by making it obsolete Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

f43825305e7e4a266d3c3885ed0c53d991d37019 05-Nov-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Remove sudo doxygen file There aren't any documented files in directory src/sss_client/sudo/ Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

2d5d7761ef2b0d43c39dadf877b87aae19231036 04-Nov-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Fix doc directory for sss_simpleifp make all docs && make install DESTDIR=`pwd`/_instdir will not install doxygen generated files for sss_simpleifp because directory was wrong Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

f1b9f9370b50a3d001722737f2538f5d3bb40e9c 04-Nov-2015 Michal Židek <mzidek@redhat.com>

tests: Run intgcheck without libsemanage For now the libsemanage can not be used inside intgcheck tests. See the tracking ticket for this issue: https://fedorahosted.org/sssd/ticket/2859 Reviewed-by: Michal Židek <mzidek@redhat.com>

bf0002fa68e9c06f0569cf75b1b8ef85bb1c2697 12-Oct-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Avoid symlinks with python modules We need to use different names for python{2,3} modules if we want to build them in the same time with automake (prefix _py2 and _py3). But resulting name need to correspond with name of module because it is used in C import function. We used symbolic links for that purpose but it breaks debian python tools which rename the real modules making symbolic links to point nowhere Resolves: https://fedorahosted.org/sssd/ticket/2814 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

a4ed6c3a56b68f0deb27f291df510c3ba735f836 08-Oct-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Remove unused variable TEST_MOCK_OBJ Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

8f61739e0de45ce2ee3be436fc91ef12a1a1c4f3 08-Oct-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Link crypto_tests with existing library It's not necessary to bundle libsss_crypto to crypto_tests. We can link it directly. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

69b46c32357ccf1aab9c0bd6d1afa33a8724ad77 08-Oct-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Link just libsss_crypto with crypto libraries It should prevent such failures as in commit 73ec8fdfddb2d4bf99977f758eec80e1b1ee8542 BUILD: Link test_data_provider_be with -ldl Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

65ce66c43141f7e5c8482a8f8e7e217a23791588 01-Oct-2015 Petr Cech <pcech@redhat.com>

HBAC: Better libhbac debugging Added support for logging via external log function. Log provides information about rules evaluating (HBAC_DBG_INFO level) and additionally can describe rules (HBAC_DBG_TRACE level). Resolves: https://fedorahosted.org/sssd/ticket/2703 Reviewed-by: Pavel Reichl <preichl@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Michal Židek <mzidek@redhat.com>

73ec8fdfddb2d4bf99977f758eec80e1b1ee8542 30-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Link test_data_provider_be with -ldl The module data_provider_be.o uses uncfion dlsym and thus need to be linked with -ldl. /usr/bin/ld: src/providers/test_data_provider_be-data_provider_be.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5' /usr/lib64/libdl.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:10461: recipe for target 'test_data_provider_be' failed It was not a problem when sssd was compiled with NSS because it contains -ldl among its flags. NSS_LIBS='-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl ' However the compilation failed when sssd was compiled with libcrypto Reviewed-by: Michal Židek <mzidek@redhat.com>

f3d84d2b6f95ac68142a8f2dd757a83eddeb1abd 24-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Remove unused variable SSSD_UTIL_OBJ It was removed as part of commit fe2091327ff44f80d6681c261494e4432404e9ba Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

a801d42c4637bbdf9664d0d8b913ffcab81b904e 24-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Do not build libsss_ad_common.la as library libsss_ad_common.la was a dynamic library and was linked just with unit tests. It was a workaroud because module libsss_ad.so cannot be linked with tests without portability issues. But it was addted to pkglib_LTLIBRARIES and therefore it was installed with other libraries. This patch changed it and libsss_ad_test.la (old name libsss_ad_common.la) will be compiled only for unit tests (check_LTLIBRARIES) and will not be installed with command "make install". Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

e3c06950bdb0bee6df603b101b30b75ef38439a4 24-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Remove unused variable CHECK_OBJ Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

71493344f59002272c2cc069daa3b6147e9cb0c3 24-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Simplify build of test_data_provider_be It's an alternative solution for https://fedorahosted.org/sssd/ticket/2799 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

d85be8ad409c9efa9cf9e9ab6f9c2d911b01e5c1 23-Sep-2015 Michal Židek <mzidek@redhat.com>

PAM: Make p11_child timeout configurable Ticket: https://fedorahosted.org/sssd/ticket/2773 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Pavel Reichl <preichl@redhat.com>

fb83de0699b16e7d8eca803305e2112795807b4c 22-Sep-2015 Jakub Hrozek <jhrozek@redhat.com>

LDAP: Filter out multiple entries when searching overlapping domains In case domain overlap, we might download multiple objects. To avoid saving them all, we attempt to filter out the objects from foreign domains. We can only do this optimization for non-wildcard lookups. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

2ddacb7212cbc9a250c253330eec87f67e139eb4 22-Sep-2015 Jakub Hrozek <jhrozek@redhat.com>

BUILD: link dp tests with LDB directly to fix builds on Debian https://fedorahosted.org/sssd/ticket/2799 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

99c5f2f6ba0af6ce52be0d82ec2794bacc215742 21-Sep-2015 Jakub Hrozek <jhrozek@redhat.com>

DP: Provide a way to mark subdomain as disabled and auto-enable it later with offline_timeout https://fedorahosted.org/sssd/ticket/2637 Adds a new Data Provider function be_mark_dom_offline() that is a replacement for be_mark_offline(). When called, the function would either set the whole back end offline, just like be_mark_offline or just set the subdomain status to inactive. When a subdomain is inactive, there is a singleton timed task that would re-set the subdomin after offline_timeout seconds. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

6cb5bad3c8e2f35ca9dce1800a506d626f90c079 18-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

LDAP: Sanitize group dn before using in filter Each string should be sanitized(rfc4515) before using ldbsearch. A group dn was not sanitized in the function cleanup_groups. Resolves: https://fedorahosted.org/sssd/ticket/2744 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

3d8b576bf49a79d5776574b96c6ef9535bbc46ac 18-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

Partially revert "LDAP: sanitize group name when used in filter" This reverts commit e2e334b2f51118cb14c7391c4e4e44ff247ef638. + temporary disable unit test Reviewed-by: Pavel Březina <pbrezina@redhat.com>

bee2f31ca5d151b7fe35c509fe7eae24ca4f4451 18-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

test_ipa_subdomains_server: Use unique dorectory for keytabs Resolves: https://fedorahosted.org/sssd/ticket/2694 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

50c9d542e8bf641412debaa82a4dcf67ddb72258 18-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

tests: Use unique name for TEST_PATH We had a cases in patch where two tests were using the same TEST_PATH and therefore they were stepping each other to the same files which caused failures. These failures are not easy to reproduce. This patch uses macro BASE_FILE_STEM for unique name. It should prevent copy&paste problem resulting to intermittent failures. @see also https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

376eaf187c13c2a1eaea0ffbdd970b6b563ab74c 14-Sep-2015 Petr Cech <pcech@redhat.com>

DATA_PROVIDER: BE_REQ as string in log message Add be_req2str() for translation BE_REQ to string. So we will have || Got request for [0x1001][FAST BE_REQ_USER][1][name=celestian] instead of || Got request for [0x1001][1][name=celestian] Function be_req2str() is used in data provider and in responder too. So this patch create new header file data_provider_req.h which delivers function be_req2str() and definitions of BE_REQ_*. Resolves: https://fedorahosted.org/sssd/ticket/2708 Reviewed-by: Pavel Reichl <preichl@redhat.com>

af3a627a3ff5402aad02edc6d48576b3c69458e5 05-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Simplify build of simple_access_tests Link test with existing libraries instead of building all necessary source file on more time. It's not portable to link with libsss_simple.so because it is a dynamic module and not dynamic library. *** Warning: Linking the executable simple_access-tests against the loadable module *** libsss_simple.so is not portable! Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

802909e59daa52c734dbe7f8fa13b0ee23e3e576 05-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Speed up build of some tests Some tests were built with files require for backend $(sssd_be_SOURCES). This automake variable contains 15 files which were build every time for each test. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

1116fbbf0e50827841a6bafd80c027c3d3548c1f 05-Sep-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Build libdlopen_test_providers.la as a dynamic library Module which can be loaded by dlopen but cannot be linked with other binaries. *** Warning: Linking the executable test_xyzp against the loadable module *** libdlopen_test_providers.so is not portable! Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

3b1aa479b377e570c6dff359a1f8099289a2af75 03-Sep-2015 Michal Židek <mzidek@redhat.com>

Makefile.am: Add missing AM_CFLAGS Some targets were missing AM_CFLAGS so it was not possible to compile C99 features in their source code. Reviewed-by: Pavel Reichl <preichl@redhat.com>

cbff3fcdce5b0377a62fbe74f32e476efbf7ca9c 03-Sep-2015 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

TESTS: Add trailing whitespace test Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Pavel Reichl <preichl@redhat.com>

46e36286953de4e5af5e4289b90a529929bdd17c 01-Sep-2015 Petr Cech <pcech@redhat.com>

UTIL: Fixing Makefile.am for util/sss_cli_cmd.h Last patch for ticket 2708 broke make distcheck. This is fix. Resolves: https://fedorahosted.org/sssd/ticket/2708 Reviewed-by: Pavel Reichl <preichl@redhat.com>

11e8f3ecdddf8edd8b1bbe9f41b49ce8b709b92a 31-Aug-2015 Petr Cech <pcech@redhat.com>

UTIL: Function 2string for enum sss_cli_command Improvement of debug messages. Instead of:"(0x0400): Running command [17]..." We could see:"(0x0400): Running command [17][SSS_NSS_GETPWNAM]..." (It's not used in sss_client. There are only hex numbers of commands.) Resolves: https://fedorahosted.org/sssd/ticket/2708 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

23fb01bf67a6058fb508da6d81515e8b18634beb 20-Aug-2015 Pavel Březina <pbrezina@redhat.com>

sss_override: support import and export Resolves: https://fedorahosted.org/sssd/ticket/2737 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

e2e334b2f51118cb14c7391c4e4e44ff247ef638 17-Aug-2015 Pavel Reichl <preichl@redhat.com>

LDAP: sanitize group name when used in filter cleanup_groups() uses DN of group in filter for ldbsearch. But the name might contain characters with special meaning for filtering like - "*()\/" Resolves: https://fedorahosted.org/sssd/ticket/2744 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

9da121c08b785b56733a11fa46e14c708dda62e9 17-Aug-2015 Michal Židek <mzidek@redhat.com>

pam: Incerease p11 child timeout Ticket: https://fedorahosted.org/sssd/ticket/2746 It was timeouting often in CI machines. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

db5f9ab3feb85aa444eab20428ca2b98801b6783 14-Aug-2015 Jakub Hrozek <jhrozek@redhat.com>

IPA: Always re-fetch the keytab from the IPA server Even if a keytab for one-way trust exists, re-fetch the keytab again and try to use it. Fall back to the previous one if it exists. This is in order to allow the admin to re-establish the trust keytabs with a simple sssd restart. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

7bb9ba8688ec1ca930d693eea05e936bc38f6d1b 05-Aug-2015 Sumit Bose <sbose@redhat.com>

krb5 utils: add sss_krb5_realm_has_proxy() Reviewed-by: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

4de84af23db74e13e867985c9093f394c9fa8d51 31-Jul-2015 Sumit Bose <sbose@redhat.com>

ssh: generate public keys from certificate Resolves: https://fedorahosted.org/sssd/ticket/2711 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

a8d887323f83984679a7d9b827a70146656bb7b2 31-Jul-2015 Sumit Bose <sbose@redhat.com>

PAM: add certificate support to PAM (pre-)auth requests Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

45726939a48e605b0166521f94300ae04981a3a7 31-Jul-2015 Sumit Bose <sbose@redhat.com>

Add NSS version of p11_child Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

0d5bb38364a6976e9c85d6349aa13a04d181a090 31-Jul-2015 Sumit Bose <sbose@redhat.com>

utils: add NSS version of cert utils Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

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

TOOLS: add sss_override for local overrides Resolves: https://fedorahosted.org/sssd/ticket/2584 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

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

TOOLS: add common command framework Add general framework to simplify creating "cmd COMMAND [OPTIONS...]" style tools. Preparation for: https://fedorahosted.org/sssd/ticket/2584 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

01ec08efd0e166ac6f390f8627c6d08dcc63ccc4 06-Jul-2015 Jakub Hrozek <jhrozek@redhat.com>

KRB5: Add and use krb5_auth_queue_send to queue requests by default Resolves: https://fedorahosted.org/sssd/ticket/2701 Previously, only the krb5 provides used to queue requests, which resulted in concurrent authentication requests stepping on one another. This patch queues requests by default. Reviewed-by: Sumit Bose <sbose@redhat.com>

88e68607e474ab2ce46c562753ef2e988516d1e9 03-Jul-2015 Lukas Slebodnik <lslebodn@redhat.com>

sss_client: Use initgr mmap cache in client code Resolves: https://fedorahosted.org/sssd/ticket/2485 Reviewed-by: Michal Židek <mzidek@redhat.com>

323943605c88838f1f86a72f891eb28600bb34e2 02-Jul-2015 Lukas Slebodnik <lslebodn@redhat.com>

test_ipa_subdomains_server: Fix build with --coverage It seems that gcc did some optimization and used execve instead of execle when the code was instrumented for coverage analysis. So the exec* function was not wrapped and it tried to call real binary ipa-getkeytab Reviewed-by: Michal Židek <mzidek@redhat.com>

827a016a07d5f911cc4195be89896a376fd71f59 19-Jun-2015 Sumit Bose <sbose@redhat.com>

IFP: add FindByCertificate method for User objects Related to https://fedorahosted.org/sssd/ticket/2596 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

7d8b7d82f0a91ed656320577fc781f24a66db9f8 19-Jun-2015 Sumit Bose <sbose@redhat.com>

sysdb: add sysdb_search_user_by_cert() and sysdb_search_object_by_cert() Related to https://fedorahosted.org/sssd/ticket/2596 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

bf01e8179cbb2be476805340636098deda7e1366 19-Jun-2015 Sumit Bose <sbose@redhat.com>

certs: add PEM/DER conversion utilities Related to https://fedorahosted.org/sssd/ticket/2596 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

d4aa049726ce8c6feeaf6995d4abb4cb5155b9a1 19-Jun-2015 Pavel Březina <pbrezina@redhat.com>

sbus: listen to NameOwnerChanged Resolves: https://fedorahosted.org/sssd/ticket/2326 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

ae7247551b78a05a5397d3c790afad7ef51b0d9d 19-Jun-2015 Pavel Březina <pbrezina@redhat.com>

sbus: add support for incoming signals Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

2b7ef850846029641cc59560c2d8d4ab7254dda5 18-Jun-2015 Pavel Březina <pbrezina@redhat.com>

IFP: Export nodes IFP now exports cached users and groups in introspection. After a user is cached with: dbus-send --print-reply --system \ --dest=org.freedesktop.sssd.infopipe \ /org/freedesktop/sssd/infopipe/Users/ipaldap/397400000 \ org.freedesktop.sssd.infopipe.Cache.Object.Store And Introspection called with: dbus-send --print-reply --system \ --dest=org.freedesktop.sssd.infopipe \ /org/freedesktop/sssd/infopipe/Users \ org.freedesktop.DBus.Introspectable.Introspect The cached users would be visible in the Introspection XML as: <node name="ipaldap/397400000" /> </node> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

d3c82d0170d6d7407549afdadd08aa7e11aeb9a2 18-Jun-2015 Pavel Březina <pbrezina@redhat.com>

IFP: Implement org.freedesktop.sssd.infopipe.Cache[.Object] Resolves: https://fedorahosted.org/sssd/ticket/2338 Example use: $ dbus-send --print-reply --system \ --dest=org.freedesktop.sssd.infopipe \ /org/freedesktop/sssd/infopipe/Users \ org.freedesktop.sssd.infopipe.Users.FindByName \ string:admin object path "/org/freedesktop/sssd/infopipe/Users/ipaldap/397400000" $ dbus-send --print-reply --system \ --dest=org.freedesktop.sssd.infopipe \ /org/freedesktop/sssd/infopipe/Users \ org.freedesktop.sssd.infopipe.Cache.List array [ ] $ dbus-send --print-reply --system \ --dest=org.freedesktop.sssd.infopipe \ /org/freedesktop/sssd/infopipe/Users/ipaldap/397400000 \ org.freedesktop.sssd.infopipe.Cache.Object.Store boolean true $ dbus-send --print-reply --system \ --dest=org.freedesktop.sssd.infopipe \ /org/freedesktop/sssd/infopipe/Users \ org.freedesktop.sssd.infopipe.Cache.List array [ object path "/org/freedesktop/sssd/infopipe/Users/ipaldap/397400000" ] $ dbus-send --print-reply --system \ --dest=org.freedesktop.sssd.infopipe \ /org/freedesktop/sssd/infopipe/Users/ipaldap/397400000 \ org.freedesktop.sssd.infopipe.Cache.Object.Remove boolean true $ dbus-send --print-reply --system \ --dest=org.freedesktop.sssd.infopipe \ /org/freedesktop/sssd/infopipe/Users \ org.freedesktop.sssd.infopipe.Cache.List array [ ] Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

dbfc407eef1d9ba2469687c3ffbe7fd8bb111d94 16-Jun-2015 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Store keytabs in /var/lib/sss/keytabs Make sure the directory is only accessible to the sssd user Reviewed-by: Michal Židek <mzidek@redhat.com>

a5bb518446d5ce565d7ba819590a009cabb0b0b4 16-Jun-2015 Jakub Hrozek <jhrozek@redhat.com>

CONFIG: Add SSS_STATEDIR as VARDIR/lib/sss Reviewed-by: Michal Židek <mzidek@redhat.com>

51b5e1475b3e0b7acac34ed382cfaca8411883a4 14-Jun-2015 Jakub Hrozek <jhrozek@redhat.com>

AD: Rename ad_create_default_options to ad_create_2way_trust_options Related: https://fedorahosted.org/sssd/ticket/2638 Better reflects what's going on in the function. Also adds a unit test. Reviewed-by: Sumit Bose <sbose@redhat.com>

64ea4127f463798410a2c20e0261c6b15f60257f 14-Jun-2015 Jakub Hrozek <jhrozek@redhat.com>

IPA: Fetch keytab for 1way trusts Uses the ipa-getkeytab call to retrieve keytabs for one-way trust relationships. https://fedorahosted.org/sssd/ticket/2636 Reviewed-by: Sumit Bose <sbose@redhat.com>

f4025ea817b3467be1c2e6092014a11fe4547c0d 14-Jun-2015 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Add unit test for the subdomain_server.c module Reviewed-by: Sumit Bose <sbose@redhat.com>

d43c9d18fb263b1ea4071b20e93ce4994583f62f 14-Jun-2015 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Add a common mock_be_ctx function Reduces code duplication between tests. Reviewed-by: Sumit Bose <sbose@redhat.com>

b1a822a16e3ef97e31d167f9e97efec06fc121dc 14-Jun-2015 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Split off keytab creation into a common module This change will make the keytab creating reusable by other tests. Reviewed-by: Sumit Bose <sbose@redhat.com>

89ddc9ed474e9ac2b1e7bccb0a58610babf26cf8 14-Jun-2015 Jakub Hrozek <jhrozek@redhat.com>

IPA: Split two functions to new module ipa_subdomains_utils.c These functions will be later reused by the subdomains_server.c module. Splitting them into a separate subdomains_utils.c module will make sure there are no cyclic dependencies and the functions are testable in isolation. Reviewed-by: Sumit Bose <sbose@redhat.com>

27e89b6925334565c73c407a9ae2809358789c81 14-Jun-2015 Jakub Hrozek <jhrozek@redhat.com>

IPA: Move server-mode functions to a separate module There is already quite a few functions that are server-mode specific and there will be even more with one-way trusts. Split the server-mode specific functions into a separate module. Reviewed-by: Sumit Bose <sbose@redhat.com>

526a15438525417cd701f837d7085b7f8c8a6325 14-Jun-2015 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Add a test for sysdb_subdomains.c The sysdb_subdomains.c module should have its own sysdb test, not share the generic sysdb one. Reviewed-by: Sumit Bose <sbose@redhat.com>

1370bcccaed090f36d75e8a8cebb320ea1612b7e 31-May-2015 Lukas Slebodnik <lslebodn@redhat.com>

PROXY: proxy_child should work in non-root mode According to design page[1], proxy_child should run with root privileges in non-root mode however proxy_child did not have setuid bit. After setting setuid bit proxy_child will be executed with extra privileges. The effective user ID will be 0 but effective group ID will be still the same as egid of sssd_be. Therefore gid of private pipe for proxy_child should be the same. Otherwise proxy_child will fail due to wrong permissions of unix pipe (sbus_client_init -> check_file) [1] https://fedorahosted.org/sssd/wiki/DesignDocs/NotRootSSSD Resolves: https://fedorahosted.org/sssd/ticket/2655 Reviewed-by: Michal Židek <mzidek@redhat.com>

9d453f1e8b28983b363b44c49b7cd701a994fd97 28-May-2015 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

Add integration tests Add "intgcheck" make target. Update CI to use it. The "intgcheck" target configures and builds sssd in a sub-directory, installs it into a prefix in another sub-directory, and then makes the "intgcheck-installed" target from within src/tests/intg in that separate build. The "intgcheck-installed" target in src/tests/intg runs py.test for all tests it can find in that directory, under fakeroot and nss_wrapper/uid_wrapper environments emulating running under root. It also adds the value of INTGCHECK_PYTEST_ARGS environment/make variable to the py.test command line. You can use it to pass additional py.test options, such as specifying a subset of tests to run. See "py.test --help" output. There are only two test suites in src/tests/intg at the moment: ent_test.py and ldap_test.py. The ent_test.py runs tests on ent.py - a module of assertion functions for checking entries in NSS database (passwd and group), for use in actual tests. The ent_test.py suite can be used as ent.py usage reference. The ldap_test.py suite sets up and starts a slapd instance, adds a few user and group entries, configures and starts sssd and verifies that those users and groups are retrieved correctly using various NSS functions. The tests are very basic at the moment. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Michal Židek <mzidek@redhat.com>

62b20154899f847e760d6dfbae6a32fb45b448de 26-May-2015 Lukas Slebodnik <lslebodn@redhat.com>

SSSDConfigTest: Use unique temporary directory Test SSSDConfigTest is executed twice with make check if python2 and python3 are available. Tests are executed in parallel with new automake and therefore it caused sometimes failures e.g. ERROR: testModifyExistingConfig (__main__.SSSDConfigTestValid) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/sssd/src/config/SSSDConfigTest.py", line 215, in testModifyExistingConfig mode = os.stat(of)[ST_MODE] FileNotFoundError: [Errno 2] No such file or directory: '/tmp/testModifyExistingConfig.conf' Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

1270ffe9f3809f2fd488ef4a320d344ae107ab87 26-May-2015 Sumit Bose <sbose@redhat.com>

libwbclient-sssd: update interface to version 0.12 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

a1e4113a5388e34c08459c5b69679c82ac2bddc9 22-May-2015 Pavel Březina <pbrezina@redhat.com>

IFP: add org.freedesktop.sssd.infopipe.Users.User Example calls: dbus-send --print-reply --system --dest=org.freedesktop.sssd.infopipe /org/freedesktop/sssd/infopipe/Users/LDAP_2ePB/10001 org.freedesktop.DBus.Properties.Get string:org.freedesktop.sssd.infopipe.Users.User string:name method return sender=:1.159 -> dest=:1.165 reply_serial=2 variant string "user-1" Resolves: https://fedorahosted.org/sssd/ticket/2150 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

c747b0c875785ce693f70b50bdda0237c4b04e35 22-May-2015 Pavel Březina <pbrezina@redhat.com>

IFP: add org.freedesktop.sssd.infopipe.Users Example calls: dbus-send --print-reply --system --dest=org.freedesktop.sssd.infopipe /org/freedesktop/sssd/infopipe/Users org.freedesktop.sssd.infopipe.Users.FindByName string:user-1 method return sender=:1.159 -> dest=:1.160 reply_serial=2 object path "/org/freedesktop/sssd/infopipe/Users/LDAP_2ePB/10001" dbus-send --print-reply --system --dest=org.freedesktop.sssd.infopipe /org/freedesktop/sssd/infopipe/Users org.freedesktop.sssd.infopipe.Users.FindByID uint32:10001 method return sender=:1.159 -> dest=:1.163 reply_serial=2 object path "/org/freedesktop/sssd/infopipe/Users/LDAP_2ePB/1000 Resolves: https://fedorahosted.org/sssd/ticket/2150 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

364b3572bab5a9649e8f2d4da835d05d3c8ca7a9 22-May-2015 Pavel Březina <pbrezina@redhat.com>

sbus: provide custom error names Errors provided directly by D-Bus are not sufficient to fulfill all our needs. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

ea422c7061072c125eb53b40d7f3ca444d886913 08-May-2015 Sumit Bose <sbose@redhat.com>

PAM: add PAM responder unit test Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

bf6c3f07d653d474da9e43b2b7cced57fc4ea069 08-May-2015 Sumit Bose <sbose@redhat.com>

pam_sss: move message encoding into separate file Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

e5698314b87e147c0223d0d8bcac206733dfae8c 08-May-2015 Sumit Bose <sbose@redhat.com>

pam_sss: add pre-auth and 2fa support Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

bc052ea17d858c19f9cb9c9e2bc602e754f68831 08-May-2015 Sumit Bose <sbose@redhat.com>

utils: add sss_authtok_[gs]et_2fa Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

80b5dbe123ec94c5a8fcb99f9a4953c1513deb58 08-May-2015 Sumit Bose <sbose@redhat.com>

Add leak check and command line option to test_authtok Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

bbd6f73bbad478a450ecfa2933a63de6dc269778 24-Apr-2015 Jakub Hrozek <jhrozek@redhat.com>

tests: Add NSS responder tests for bysid requests Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

1e0fa55fb377db788e065de917ba8e149eb56161 14-Apr-2015 Jakub Hrozek <jhrozek@redhat.com>

selinux: Only call semanage if the context actually changes https://fedorahosted.org/sssd/ticket/2624 Add a function to query the libsemanage database for a user context and only update the database if the context differes from the one set on the server. Adds talloc dependency to libsss_semanage. Reviewed-by: Michal Židek <mzidek@redhat.com>

bad2fc8133d941e5a6c8d8016c9689e039265c61 14-Apr-2015 Lukas Slebodnik <lslebodn@redhat.com>

SDAP: Extract filtering AD group to function Patch remove code duplication. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

077f8c9ca849ec895da3f0a25d15484ead08e99e 24-Mar-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Add missing header file to tarball make distcheck failed due to missing header file. ../src/tests/cmocka/test_ldap_auth.c:33:45: fatal error: tests/cmocka/test_expire_common.h: No such file or directory #include "tests/cmocka/test_expire_common.h" ^ compilation terminated. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

50b8a36b0932a510e825ed1ad8103f81ead2b7d8 23-Mar-2015 Pavel Reichl <preichl@redhat.com>

TESTS: test expiration Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

1d93029624d708119bbf803e6647a2cbb271f001 20-Mar-2015 Sumit Bose <sbose@redhat.com>

sdap: properly handle binary objectGuid attribute Although in the initial processing SSSD treats the binary value right at some point it mainly assumes that it is a string. Depending on the value this might end up with the correct binary value stored in the cache but in most cases there will be only a broken entry in the cache. This patch converts the binary value into a string representation which is described in [MS-DTYP] and stores the result in the cache. Resolves https://fedorahosted.org/sssd/ticket/2588 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

13ec767e6ca3e435e119f1f07bda10eb213383f6 05-Mar-2015 Pavel Reichl <preichl@redhat.com>

SDAP: Lock out ssh keys when account naturally expires Resolves: https://fedorahosted.org/sssd/ticket/2534 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

5a5c5cdeb92f4012fc75fd717bfea06598f68f12 05-Mar-2015 Pavel Reichl <preichl@redhat.com>

UTIL: convert GeneralizedTime to unix time New utility function *sss_utc_to_time_t* to convert GeneralizedTime to unix time. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

cdaa29d2c5724a4c72bfa0f42284ccfac3d5a464 03-Mar-2015 Pavel Reichl <preichl@redhat.com>

SDAP: refactor pwexpire policy Move part of pwexpire policy code to a separate function. Relates to: https://fedorahosted.org/sssd/ticket/2167 Reviewed-by: Sumit Bose <sbose@redhat.com>

8df69bbc58c2f4d3f0b34be9756d9ddf24b1db6d 03-Mar-2015 Jakub Hrozek <jhrozek@redhat.com>

FO: Use SRV TTL in fail over code Resolves: https://fedorahosted.org/sssd/ticket/1884 Removes the hardcoded SRV TTL timeout and uses TTL from the DNS instead. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

192583f964fb86684a9f9d27939c2f417db8ea88 02-Mar-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Uninstall also symbolic links to python bindings Make uninstall did not remove symbolic links and make distcheck did not detect it. As a result of this bug another make install failed. cd /usr/lib64/python2.7/site-packages && \ ln -s _py2sss.so pysss.so ; \ ln -s _py2hbac.so pyhbac.so ; \ ln -s _py2sss_murmur.so pysss_murmur.so ; \ ln -s _py2sss_nss_idmap.so pysss_nss_idmap.so ln: failed to create symbolic link ‘pysss.so’: File exists ln: failed to create symbolic link ‘pyhbac.so’: File exists ln: failed to create symbolic link ‘pysss_murmur.so’: File exists ln: failed to create symbolic link ‘pysss_nss_idmap.so’: File exists Makefile:19361: recipe for target 'install-exec-hook' failed make[4]: *** [install-exec-hook] Error 1 This patch also use argument "-f" with command ln which remove existing destination files before creating symbolic link Reviewed-by: Pavel Reichl <preichl@redhat.com>

bdc2aced1185c4ee36921fa01b8dc01789a63900 25-Feb-2015 Jakub Hrozek <jhrozek@redhat.com>

PAM: print the pam status as string, too On several places, let's add a pam_strerror() call so that it's easier to debug user problems. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>

18372712592b30638772afb5b7e15bfca92c2058 25-Feb-2015 Lukas Slebodnik <lslebodn@redhat.com>

TESTS: Run python tests with all supported python versions This patch add simple bash wrappers for python tests. They are executed either with python2 or python3. Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>

4a5a18f489f4d19aa0571528a7f0c7a8d35ac83f 25-Feb-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Add possibility to build python{2,3} bindings Resolves: https://fedorahosted.org/sssd/ticket/2574 Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>

4e0404ca1b19830dc0f729e59efd5bbd0a9d6103 25-Feb-2015 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Remove unused libraries for pysss.so Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>

772199031f0ec687fa1fefd939206858c440e5a1 17-Feb-2015 Pavel Březina <pbrezina@redhat.com>

IFP: move interface definitions from ifpsrv.c into separate file Number of IFP interfaces will grown up rapidly in the future. It is not convenient to keep it inside ifpsrv.c. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

df4e1db5d41c903ae57fd880acc76a0ad84aa7b2 17-Feb-2015 Pavel Březina <pbrezina@redhat.com>

sbus: use hard coded getters instead of generated Properties are single value of a small number of predefined D-Bus types. There is no need to generate them with codegen. Actually, the source generator for property getters is already quite mess with branching for array, strings and object paths. Adding any more complex type in the future (such as dictionary) would require even more branching or creating a separate path for it. Hard coding the getters will simplify creating new ones for more complex types. This patch also reduces lots of code duplication and creates a simple function for GetAll. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

5594736ea2618bb3e487f47fd199e1d2cf4c58fd 11-Feb-2015 Jakub Hrozek <jhrozek@redhat.com>

RESOLV: Remove obsolete in-tree implementation of SRV and TXT parsing SSSD contained several backwards-compatible definitions of SRV and TXT APIs as well as structures that carry TTL data. These were intended for RHEL-5 and older releases. Since we don't support those upstream, it's better to remove the code -- it has drifted apart from upstream anyway. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

bf54fbed126ec3d459af40ea370ffadacd31c76d 11-Feb-2015 Jakub Hrozek <jhrozek@redhat.com>

RESOLV: Add an internal function to read TTL from a DNS packet Related: https://fedorahosted.org/sssd/ticket/1884 Adds an internal resolver function that reads the TTL for SRV records as specified by RFC-2181. Several internal c-ares definitions are used until c-ares contains a function that exposes all this information via a parsing function. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

3a8f6b575f4019f21c9425a26f1b346c08a197ae 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: move common opath functions from ifp to sbus code These functions are quite general thus they may be part of sbus interface. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

51d65c4ad15c2cc23f38fa09dd6efeb15e4f3e86 23-Jan-2015 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Include python-test.py in the tarball

d87e960c17d7598781cf032d06ba03a3ecadbfa2 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: move iface and object path code to separate file This is done to better distinguish between connection code and interface stuff. It will help with orientation and thus simplify next changes. Preparation for: https://fedorahosted.org/sssd/ticket/2339 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

b3b6189850d50c656d62efbd498789124c033b00 20-Jan-2015 Lukas Slebodnik <lslebodn@redhat.com>

MAKE: Don't include autoconf generated file to tarball Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

44703b84feaafa4f0a4f8df11c5a503dcf48616e 15-Jan-2015 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Cover child_common.c with unit tests The module wasn't tested properly, which made it harder to patch it Reviewed-by: Pavel Březina <pbrezina@redhat.com>

360a4be4266d6a72be99dfd252623dc0527f5b84 09-Jan-2015 Pavel Březina <pbrezina@redhat.com>

responders: new interface for cache request Many areas of responders performs an expiration check and refresh of cached objects during single or multiple domain search. This code is duplicated on many areas of the code with small or none modifications. This interface aims to reduce code duplication between responders, by providing one universal API for requesting cached objects. This API will take care of cache lookup, expiration check, cache refresh, out of band cache request, negative cache in both single and multi domain searches. Reviewed-by: Michal Židek <mzidek@redhat.com>

25d4435998d0446f7699e7ab0874c7a6f610ab58 11-Dec-2014 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Install libsss_crypt after its dependencies A library should not be installed before it's internal dependencies otherwise there is an error in make distcheck. libtool: install: error: relink `libsss_crypt.la' with the above command before installing it It would be sufficient just to change order of libraries in automake variable pkglib_LTLIBRARIES, but it's better to have internal libraries on the one place. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

5a05b6127064c74349f1edae32e5e13032c386fe 08-Dec-2014 Lukas Slebodnik <lslebodn@redhat.com>

UTIL: Fix dependencies of internal sss libraries Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

4d9db278db1197ae84fecb8f269e2de368a6be2a 08-Dec-2014 Lukas Slebodnik <lslebodn@redhat.com>

MAKE: Fix linking of test_child_common Compilation of test_child_common failed with linker flag --as-needned due to cyclic dependencies between libsss_child.so and libsss_util.so CCLD test_child_common ./.libs/libsss_child.so: undefined reference to `sss_hash_create' ./.libs/libsss_child.so: undefined reference to `hash_lookup' ./.libs/libsss_child.so: undefined reference to `BlockSignals' ./.libs/libsss_child.so: undefined reference to `hash_delete' ./.libs/libsss_child.so: undefined reference to `hash_enter' ./.libs/libsss_child.so: undefined reference to `hash_error_string' ./.libs/libsss_child.so: undefined reference to `sss_atomic_io_s' ./.libs/libsss_child.so: undefined reference to `sss_strerror' collect2: error: ld returned 1 exit status This patch is temporary workaround. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

fb3c5cdfcda069a5fbeb7b9d200c0881911364b8 04-Dec-2014 Jakub Hrozek <jhrozek@redhat.com>

Rename test-child to dummy-child Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

9f521c61c17cecd9625ebc1b33c666fa3488622c 04-Dec-2014 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Build test_child even without cmocka Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

e00c2b5ac4963de9521599c88597b7fb97339d0e 03-Dec-2014 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Basic child tests The child_common.c module had no unit tests, yet we need to amend it. Reviewed-by: Sumit Bose <sbose@redhat.com>

eba68b29d934e6ba3879947ab002f1b0a2c24496 02-Dec-2014 Pavel Reichl <preichl@redhat.com>

BUILD: restrict perms. when installing from source Resolves: https://fedorahosted.org/sssd/ticket/2467 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

939d44cef4d202a7ef88250e90c22f6c6a3acc50 02-Dec-2014 Sumit Bose <sbose@redhat.com>

krb5_child: become user earlier The host keytab and the FAST credential cache are copied into memory early at startup to allow to drop privileges earlier. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

96bdf2906c981fe55b1d9a7b6539f2dd710efbf8 02-Dec-2014 Sumit Bose <sbose@redhat.com>

ldap_child: copy keytab into memory to drop privileges earlier Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

a0ab15ceb80290db80c2052520830a95390de385 02-Dec-2014 Sumit Bose <sbose@redhat.com>

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

802385896dc1c4e7b8bbd40dcfe3cd131f68e696 02-Dec-2014 Sumit Bose <sbose@redhat.com>

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

b7088215501c99e40ae71d1c57e0b789bbae2c87 02-Dec-2014 Sumit Bose <sbose@redhat.com>

krb5: do not fail if checking the old ccache failed https://fedorahosted.org/sssd/ticket/2510 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

a5623363d6042290fe652a1ca5ce5a85a821236f 28-Nov-2014 Pavel Březina <pbrezina@redhat.com>

tests: be_ptask Resolves: https://fedorahosted.org/sssd/ticket/1939 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

fa70db6004a099afb7cb55031cd7bacb9e78202e 28-Nov-2014 Pavel Březina <pbrezina@redhat.com>

be_ptask: create a private header file This is done so we gain access to the be_ptask structure in unit tests. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

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

Fix KRB5_CONF_PATH Currently a shell/Makefile variable is used in the definition of KRB5_CONF_PATH for C code. This patch replaces it with a complier macro. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

8eb981dd8bc85aee7a913c6f0096ad47f3382339 20-Nov-2014 Sumit Bose <sbose@redhat.com>

ipa: add split_ipa_anchor() This call extracts the domain and the UUID part from an IPA override anchor. Related to https://fedorahosted.org/sssd/ticket/2481 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

d167039ec78f93828ba65366d86a1ee7774aed3e 18-Nov-2014 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Touch files in DESTDIR Related: https://fedorahosted.org/sssd/ticket/2370 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

0a039d574ed0e91d939efd2c0975f6a425942afd 18-Nov-2014 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Make chown of files to sssd user non-fatal In build environments, we can't assume the sssd user will be created prior to installing the package, so we can't chown the files. RPM will own the files instead in this case. Related: https://fedorahosted.org/sssd/ticket/2370 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

f9ac9aa5760210b8bbd3d4e667dff5f101f99d62 18-Nov-2014 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Use separate chown to make changing ownership to the sssd user non-fatal When the SSSD is built in the build system using a non-root user, the user doesn't exist in the build system and file ownership will be maintained by the downstream packaging instead. We need to make sure that setting the ownership to the sssd user is a separate step from creating the directories in this case in order to make failure to set the ownership non-fatal. Related: https://fedorahosted.org/sssd/ticket/2370 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

2745b0156f12df7a7eb93d57716233243658e4d9 18-Nov-2014 Jakub Hrozek <jhrozek@redhat.com>

KRB5: Move all ccache operations to krb5_child.c The credential cache operations must be now performed by the krb5_child completely, because the sssd_be process might be running as the sssd user who doesn't have access to the ccaches. src/providers/krb5/krb5_ccache.c is still linked against libsss_krb5 until we fix Kerberos ticket renewal as non-root. Also includes a new error code that indicates that the back end should remove the old ccache attribute -- the child can't do that if it's running as the user. Related: https://fedorahosted.org/sssd/ticket/2370 Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

45aeb924ec3ac448bb8d174a5cc061ed98b147c7 18-Nov-2014 Jakub Hrozek <jhrozek@redhat.com>

KRB5: Move ccache-related functions to krb5_ccache.c Add a new module krb5_ccache.c that contains all ccache-related operations. The only user of this module shall be krb5_child.c as the other modules will run unprivileged and accessing the ccache requires either privileges of root or the ccache owner. Related: https://fedorahosted.org/sssd/ticket/2370 Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

a60f4bb6b321298eb4d1c1c33d1897049a83d357 18-Nov-2014 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Install krb5_child as suid if running under non-privileged user If sssd_be is running unprivileged, then krb5_child must be setuid to be able to access the keytab and become arbitrary user. Related: https://fedorahosted.org/sssd/ticket/2370 Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

f3a25949de81f80c136bb073e4a8f504b080c20c 05-Nov-2014 Jakub Hrozek <jhrozek@redhat.com>

IPA: Move setting the SELinux context to a child process In order for the sssd_be process to run as unprivileged user, we need to move the semanage processing to a process that runs as the root user using setuid privileges. Reviewed-by: Michal Židek <mzidek@redhat.com>

936940720b1b0e701a2317abc4c2d05a78338f33 05-Nov-2014 Jakub Hrozek <jhrozek@redhat.com>

LDAP: Drop privileges after kinit in ldap_child After ldap_child initializes privileges using root-owned keytab, it drops privileges to the SSSD user, minimizing the amount of code that runs as root. Reviewed-by: Michal Židek <mzidek@redhat.com>

45414c12aa933a33d9a635cc212c448c858c6bab 05-Nov-2014 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Install ldap_child and as setuid if running under non-privileged user The ldap_child permissions should be 4750, owned by root.sssd, to make sure only root and sssd can execute the child and if executed by sssd, the child will run as root. Reviewed-by: Michal Židek <mzidek@redhat.com>

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

Add test for sysdb_add_overrides_to_object() Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

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

Add parse_attr_list_ex() helper function Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

bc13c352ba9c2877f1e9bc62e55ad60fc000a55d 22-Oct-2014 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Add a config option for sssd user, own private directories as the user Adds a new configure-time option that lets you select the user to run SSSD as. The default is 'root' for backwards compatibility. The directories the deamon stores its private data at are also created as owned by this user during install time. Reviewed-by: Pavel Reichl <preichl@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

ac40d2f2b2b2fc35c95389f5e28febd580bd2b7a 20-Oct-2014 Jakub Hrozek <jhrozek@redhat.com>

SSSD: Add the options to specify a UID and GID to run as Adds new command line options --uid and --gid to all SSSD servers, making it possible to switch to another user ID if needed. So far all code still runs as root. Reviewed-by: Pavel Reichl <preichl@redhat.com>

42ec8af02ecf1937e4db9b1ecc6216022634f0f9 20-Oct-2014 Michal Zidek <mzidek@redhat.com>

util: Move semanage related functions to src/util These functions will be reused by IPA provider. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

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

views: add ipa_get_ad_override_send() Related to https://fedorahosted.org/sssd/ticket/2375 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>

0d01e4f6cc21d8ca0e4fafe59c7cbfa1459fa47e 14-Oct-2014 Sumit Bose <sbose@redhat.com>

sss_nss_idmap: add sss_nss_getorigbyname() This patch adds an interface to the new SSS_NSS_GETORIGBYNAME request of the nss responder to libsss_nss_idmap. The main use case for this new call is to replace sss_nss_getsidbyname() in the extdom plugin on the FreeIPA server to get more information about the given object than just the SID which is not available with the default POSIX interfaces. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

428db8a58c0c149d5efccc6d788f70916c1d34d7 10-Oct-2014 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Add a test to change user IDs Adds a unit test using the nss_wrapper and uid_wrapper libraries that exercises the ability to become another user. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

9df7cddb68c61ef4e0397c196604999c68f4be0d 10-Oct-2014 Jakub Hrozek <jhrozek@redhat.com>

UTIL: Move become_user outside krb5 tree In order for several other SSSD processes to run as a non-root user, we need to move the functions to become another user to a shared space in our source tree. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

87d3b47abba6a40fcf809c85a2b138bc1013d9c5 06-Oct-2014 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Use $(MKDIR_P) in Makefile.am It was suggested by the Fedora automake maintainer to use the autoconf macro $(MKDIR_P) instead of calling "mkdir -p" directly as the macro is more portable and might actually expand to something else than "mkdir -p" on some platforms (usually it would be a variant of install.sh) Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

6398f22526303343193a18e514602f1af6fb29cb 22-Sep-2014 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

CI: Add Valgrind suppression support Add an empty Valgrind suppressions file, use it when invoking Valgrind. This prepares for addition of Valgrind suppressions for current false positives and issues that cannot be fixed, preparing for enforcing Valgrind check. Make Valgrind output a suppression for every error and make it output used suppression names and counts at the end of each run. This simplifies discovery and addition of new suppressions and removal of unused ones. Related to https://fedorahosted.org/sssd/ticket/2428 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

f3c85d900c4663854cc7bbae7d9f77867ed1f69b 08-Sep-2014 Sumit Bose <sbose@redhat.com>

libwbclient: avoid collision with Samba version Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

706d211b5d6e32d11a1c6ffc8065ca8be4d4d8c5 08-Sep-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: bump version to 0:1:0 Interface did not change, only the code. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

a9c287bda3fc2a1e12cef2135ade96945f11ad01 02-Sep-2014 Sumit Bose <sbose@redhat.com>

libwbclient: make build optional Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

b9c8ce2bdd4045782c243605a1b999098bedcffc 02-Sep-2014 Noam Meltzer <tsnoam@gmail.com>

NFSv4 client: add to build system Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Roland Mainz <rmainz@redhat.com>

3ce85a5f5264e7118beb6524e120fd8b53a13da4 02-Sep-2014 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

Add basic support for CI test execution Add basic support for executing continuous integration (CI) tests on RHEL6, RHEL7, Fedora 20, Fedora Rawhide and Debian Testing. This adds two front-end scripts which can be executed either locally by developers, or on a CI server: contrib/ci/run and contrib/ci/clean. The first one will run the tests and the second will wipe out the artifacts. See contrib/ci/README.md for further details. Reviewed-by: Michal Židek <mzidek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

6b5044001e4b0a0caf971a2cf5f27674e0d270f4 02-Sep-2014 Sumit Bose <sbose@redhat.com>

Implement MIT Kerberos localauth plugin The MIT Kerberos localauth pluing interface defines two different calls. The first checks if a given Kerberos principal relates to a given name of a local user (userok). The implementation lets SSSD resolve the principal and the user name and if the returned user entries both have the same UID success is returned. The second translates a given Kerberos principal to a local user name (a2l). Here SSSD is only called once to resolve the principal and the user name is returned. Resolves https://fedorahosted.org/sssd/ticket/1835 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

8a5e793a0576250da80371e53aa3e7eba15cdb63 02-Sep-2014 Sumit Bose <sbose@redhat.com>

Add conditional build for MIT Kerberos localauth plugin This patch adds everything what is needed to build the MIT Kerberos localauth plugin if the used version of MIT Kerberos supports it. It does not implement the plugin. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

885386b7e3f1c3e74b354576b98a092b0835d64e 21-Aug-2014 Sumit Bose <sbose@redhat.com>

libwbclient: SSSD implementation This patch implements the libwbclient API for Samba daemons and utilities. The main purpose is to map Active Directory users and groups identified by their SID to POSIX users and groups identified by their POSIX UIDs and GIDs respectively. The API is not fully implemented because SSSD does not support some AD features like WINS or NTLM. Additionally this implementation has its focus on the file-server use case and hence does not implement some features which might be needed for a domain controller use case. Some API calls are generic and independent of the backend like e.g. converting binary SIDs and GUIDs into a string representation and back or memory allocation and deallocation. These parts are taken from the original Samba sources together with copyright and authors. Files with'_sssd' as part of the name contain the SSSD related calls. Resolves: https://fedorahosted.org/sssd/ticket/1588 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

Makefile.am configure.ac contrib/sssd.spec.in src/sss_client/libwbclient/libwbclient.h src/sss_client/libwbclient/wbc_err_internal.h src/sss_client/libwbclient/wbc_guid.c src/sss_client/libwbclient/wbc_idmap_common.c src/sss_client/libwbclient/wbc_idmap_sssd.c src/sss_client/libwbclient/wbc_pam_sssd.c src/sss_client/libwbclient/wbc_pwd_sssd.c src/sss_client/libwbclient/wbc_sid_common.c src/sss_client/libwbclient/wbc_sid_sssd.c src/sss_client/libwbclient/wbc_sssd_internal.h src/sss_client/libwbclient/wbc_util_common.c src/sss_client/libwbclient/wbc_util_sssd.c src/sss_client/libwbclient/wbclient.exports src/sss_client/libwbclient/wbclient.h src/sss_client/libwbclient/wbclient.pc.in src/sss_client/libwbclient/wbclient_common.c src/sss_client/libwbclient/wbclient_internal.h src/sss_client/libwbclient/wbclient_sssd.c src/tests/dlopen-tests.c
64074e584a56611d7563667e0fcdadd215b0c922 30-Jul-2014 Yassir Elley <yelley@redhat.com>

AD-GPO: add sysdb_gpo support for caching gpo version Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

022c6b90bb37851c0e8704c0e5388ebc113c6470 28-Jul-2014 Lukas Slebodnik <lslebodn@redhat.com>

UTIL: Add functions for replacing whitespaces. Reviewed-by: Pavel Reichl <preichl@redhat.com> Reviewed-by: Michal Židek <mzidek@redhat.com>

462db32918a05097652f8232cd6c8d78a826e63c 28-Jul-2014 Lukas Slebodnik <lslebodn@redhat.com>

test_utils: Use common header file for libsss_util tests. Reviewed-by: Pavel Reichl <preichl@redhat.com> Reviewed-by: Michal Židek <mzidek@redhat.com>

8a8618717c99b7331125fa736b45d9155da797d3 23-Jul-2014 Jakub Hrozek <jhrozek@redhat.com>

Only check GID if ID-mapping Reviewed-by: Sumit Bose <sbose@redhat.com>

32381402a4a9afc003782c9e2301fc59c9bda2a9 20-Jul-2014 Yassir Elley <yelley@redhat.com>

AD-GPO: Store policy settings in local files Reviewed-by: Sumit Bose <sbose@redhat.com>

842f83f8db513214241a0fea076ac160b180e1dd 09-Jul-2014 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Link sdap-tests with openldap libraries sdap-tests uses functions from openldap, but it was not linked with libldap or liblber. sh-4.2$ nm --undefined-only .libs/sdap-tests | grep -E "ldap|ber" U ber_free U ldap_control_create U ldap_err2string U ldap_get_option U ldap_init_fd U ldap_install_tls U ldap_is_ldaps_url U ldap_unbind_ext sdap-tests cannot be linked on platfrms with disabled link_all_deplibs. CCLD sdap-tests /usr/bin/ld: src/providers/ldap/sdap_tests-sdap.o: undefined reference to symbol 'ber_free' /usr/bin/ld: note: 'ber_free' is defined in DSO /lib64/liblber-2.4.so.2 so try adding it to the linker command line /lib64/liblber-2.4.so.2: could not read symbols: Invalid operation clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [sdap-tests] Error 1 Reviewed-by: Pavel Reichl <preichl@redhat.com>

f28b09f887870c10c8c611beee3c17eaa9ef74f3 09-Jul-2014 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Add version symbol files for public libraries. Version symbol files will help package systems to catch backward compatible changes (newly added functions) into library. The difference between libraries libsss_nss_idmap_test.so and libsss_nss_idmap.so is that the 1st library will not be installed and has more exported functions, which are necessary for mocking with cmocka for test sss_nss_idmap-test. Resolves: https://fedorahosted.org/sssd/ticket/2194 Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

1a59af8245f183f22d87d067a90197d8e2ea958d 08-Jul-2014 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Add the DBus service activation The system bus has the ability to start services on demant. This patch adds the sysbus service activation file that, currently, only calls the sss_signal tool to signal the monitor. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

1746e8b8399da2a7a8da4aace186f66055ccfec1 08-Jul-2014 Jakub Hrozek <jhrozek@redhat.com>

TOOLS: New helper tool sss_signal A minimal tool whose only purpose is to signal the monitor with SIGUSR2. The tool will be executed by the system bus in order to provide system activation, so it's packaged in libexec. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

4df1a6a977df74420867d9b1daddcca0eea4b2e1 08-Jul-2014 Jakub Hrozek <jhrozek@redhat.com>

BUILD: dbusintrospectdir is not used anymore We fprintf the introspection data on demand rather than printing an XML file. The directory specification can be removed. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

e592d5f157be869151983bd1b46d6f4f7a29daaf 08-Jul-2014 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Add a unit test for the sdap.c module Covers the sdap_parse_entry function with unit tests so that we know that modifying the function in a later patch will not result in a regression. Reviewed-by: Michal Židek <mzidek@redhat.com>

99f8be128274eba264ea1434a7eb2800bced5902 01-Jul-2014 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: ad_gpo_tests should be built only with samba Reviewed-by: Sumit Bose <sbose@redhat.com>

19d3aba12c70528708be9440aca66038a291f29e 01-Jul-2014 Yassir Elley <yelley@redhat.com>

AD-GPO: Add gpo-smb implementation in gpo_child process Reviewed-by: Sumit Bose <sbose@redhat.com>

6e973aa578a692b2e7597811dfdfdb1a442c85f8 23-Jun-2014 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

build: Allow augmenting TESTS_ENVIRONMENT Add substitution of a special variable "AUX_TESTS_ENVIRONMENT" to the "TESTS_ENVIRONMENT" value, allowing its augmentation from the make command line. This enables wrapping test commands with older versions of Automake, where LOG_COMPILER support is missing. This enables executing "make check" target with Valgrind on RHEL6, like this: make check AUX_TESTS_ENVIRONMENT="libtool --mode=execute valgrind" Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

5377441d7a846461c2d9a7a870cea711360a529a 19-Jun-2014 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

build: Augment systemdconfdir at configure stage Add "/sssd.service.d" to systemdconfdir at configure stage, instead of the make stage. This way, if systemd is not used, systemdconfdir variable stays empty. That in turn, works around the attempt by older versions of Automake to create the installation directory even though no files are installed there [1]. This fixes installation and distcheck target on RHEL6, where an "/sssd.service.d" directory creation would otherwise be attempted. [1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11030 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

c6e39e15178675d0779e0ae855245774a09b4eb5 19-Jun-2014 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

build: Switch back to DISTCHECK_CONFIGURE_FLAGS Switch back to using DISTCHECK_CONFIGURE_FLAGS instead of the AM_-version in Makefile.am, as the latter is not supported by Automake version in RHEL6. Instead, use a special variable AUX_DISTCHECK_CONFIGURE_FLAGS to augment distcheck target configure flags from the command line. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

b5f61c9b3f5ea79bf319c18ff59394070c04d607 18-Jun-2014 Pavel Reichl <preichl@redhat.com>

TESTS: sss_ssh - textual public key format Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

683e1f67d08be7165ea456d4594c4c8a4eddc9b3 03-Jun-2014 Lukas Slebodnik <lslebodn@redhat.com>

PAM: Define compatible macros for some functions. Functions pam_vsyslog and pam_modutil_getlogin are not available in openpam. This patch conditionally define macros for these function if they are not available. Compatible macros use standard functions vsyslog, getlogin Reviewed-by: Sumit Bose <sbose@redhat.com>

d2d21d45a88d0869f860e215c2cf946f032818ca 03-Jun-2014 Lukas Slebodnik <lslebodn@redhat.com>

CONFIGURE: Enhance detection of pam Reviewed-by: Sumit Bose <sbose@redhat.com>

5385172799f6dea59fe1c0ef8f482db59bfc9c5c 03-Jun-2014 Lukas Slebodnik <lslebodn@redhat.com>

MAKE: Remove PAM libraries from libsss_simple libsss_simple does not call any pam function. sh-4.2$ nm --dynamic --undefined-only .libs/libsss_simple.so | grep pam sh-4.2$ echo $? 1 Reviewed-by: Sumit Bose <sbose@redhat.com>

0352c371e743d8dae996123f658b5d32c677614e 30-May-2014 Yassir Elley <yelley@redhat.com>

TEST: Add ad_gpo unit tests Reviewed-by: Sumit Bose <sbose@redhat.com>

534c5427e5216d5d25f9b10925294e803ecf016f 30-May-2014 Lukas Slebodnik <lslebodn@redhat.com>

MAKE: Link libsss_ldap.so with ldap libraries Tests ad_common_tests, test_search_bases, ad_access_filter_tests could not be linked on ubuntu and dlopen test faild as well. Running suite(s): dlopen 0%: Checks: 1, Failures: 1, Errors: 0 src/tests/dlopen-tests.c:143:F:dlopen:test_dlopen_base:0: Error opening libsss_ldap.so: [dlopen() failed: sssd-1.11.90/.libs/libsss_ldap_common.so: undefined symbol: ber_pvt_opt_on] Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

4bd20c075f0f187db0181dc53d00ab6cd47fdb4d 30-May-2014 Jakub Hrozek <jhrozek@redhat.com>

BUILD: Disable dbus tests when running distcheck https://fedorahosted.org/sssd/ticket/2291 The dbus tests that mock an sbus server were failing when make distcheck was ran by a user logged in through the SSSD. The reason was that the libtool wrapper around the test library alters the LD_LIBRARY_PATH and as a consequence, the standard getpwuid_r() calls the dbus server performs would load the in-tree NSS library and not the system one. The-in tree library would then attempt to talk to an in-tree NSS socket, fail, which would fail the getpwuid_r call with an error such as: """ Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry """ This patch adds a new configure-time option called --enable-dbus-tests that is enabled by default and disabled during distcheck. When the option is disabled, the tests that require a mocked dbus server are not compiled at all.

0bb98b7700b1b61f5b0a20b93279d5c2c391007f 29-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: add shortcuts for common use cases https://fedorahosted.org/sssd/ticket/2254 Reviewed-by: Sumit Bose <sbose@redhat.com>

efa6c1f75c4c18bcc148d6e7efd429c2d56499ad 29-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: add support for string dictionary https://fedorahosted.org/sssd/ticket/2254 Reviewed-by: Sumit Bose <sbose@redhat.com>

f43c6a9ae2aea13b7a83fd932139f9352efbfcad 29-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: unit tests https://fedorahosted.org/sssd/ticket/2254 Reviewed-by: Sumit Bose <sbose@redhat.com>

a7e27c11866a48742bb70564b88e15bf15e9367d 29-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: build https://fedorahosted.org/sssd/ticket/2254 Reviewed-by: Sumit Bose <sbose@redhat.com>

8a1fd0633e85221da1fb63451516a70d66c0af31 28-May-2014 Pavel Březina <pbrezina@redhat.com>

IFP: Implement SSSD components Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

590582be38cdbfde387fcc57df92903d48c5a083 28-May-2014 Jakub Hrozek <jhrozek@redhat.com>

IFP: Add ListDomains and FindDomainByName Reviewed-by: Pavel Březina <pbrezina@redhat.com>

8d15291907aaa4d50bb66fdb7a5002fce7ac7bf4 26-May-2014 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

build: Switch to AM_DISTCHECK_CONFIGURE_FLAGS Use AM_DISTCHECK_CONFIGURE_FLAGS in Makefile.am instead of DISTCHECK_CONFIGURE_FLAGS to allow using the latter at build time, upon making distcheck target. In particular, the above would allow specifying --with-test-dir option to help archive test data in CI runs, like this: make distcheck DISTCHECK_CONFIGURE_FLAGS=--with-test-dir=/dev/shm/ci-test-dir Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

b1c4a998f8e217b4ba4cd632f5069d479211c22d 23-May-2014 Yassir Elley <yelley@redhat.com>

AD-GPO: add libsmbclient to makefiles Reviewed-by: Sumit Bose <sbose@redhat.com>

28c155e20d3ebf53581821572c6c3fe1724582c9 23-May-2014 Yassir Elley <yelley@redhat.com>

AD-GPO: Remove dependency on libsamba-security Reviewed-by: Sumit Bose <sbose@redhat.com>

1319e71fd1680ca4864afe0b1aca2b8c8e4a1ee4 22-May-2014 Stef Walter <stefw@redhat.com>

SBUS: Start implementing property access This patch adds the basis of SBUS getters and setters. A new module, sssd_dbus_properties.c would contain handlers for the property methods like Get, Set and GetAll. Type-safe property access works in a similar fashion like type-safe method calls - the invoker calls the getter which returns the primitive type, which is in turn marshalled into variant by the invoker. This patch does not contain the complete functionality, see later patches that continue implementing the getters and setters. Reviewed-by: Stef Walter <stefw@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>

a2e417f38c57ed87c956ddcecf4dafca93842b65 16-May-2014 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Make samba4 libraries optional Samba 4 libraries are necessary for building {ad, ipa} provider, but samba4 needn't be available on older distributions. This patch add possibility to build SSSD without {ad, ipa} provider and thus without Samba 4 libraries. The script configure have new argument --with-samba with default value yes. Reviewed-by: Michal Židek <mzidek@redhat.com>

3fe339bcba0e211cc666bb3afe34e5c8fce85f4f 14-May-2014 Jakub Hrozek <jhrozek@redhat.com>

IFP: Add a GetGroupsList method This patch adds a new method on the bus with the following synopsis: <method name="GetUserGroups"> <arg name="user" type="s" direction="in" /> <arg name="values" type="as" direction="out"/> </method> Its purpose is to return names of groups the user is a member of as a list of strings. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

bbaba8b3ef9bc101863b8687f234f4ee956caacd 14-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_config: build only when IFP is allowed since the IFP responder is currently the only planned consumer. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

80314a6f3ea8d81abe73d501d5b953a256cb2167 14-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_config: unit tests Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

3fc158e59eebbc2f538fe0076a03928d0d4eab9f 14-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_config: build Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

770dc892f867639f36f84455d65be6287935a529 13-May-2014 Jakub Hrozek <jhrozek@redhat.com>

IFP: Per-attribute ACL for users Introduces a new option called user_attributes that allows to specify which user attributes are allowed to be queried from the IFP responder. By default only the default POSIX set is allowed, this option allows to either add other attributes (+attrname) or remove them from the default set (-attrname). Reviewed-by: Pavel Březina <pbrezina@redhat.com>

60cab26b12df9a2153823972cde0c38ca86e01b9 13-May-2014 Yassir Elley <yelley@redhat.com>

Implemented LDAP component of GPO-based access control Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

f92ace4a52602e8c38a34f2392bec3deeac2dddd 13-May-2014 Jakub Hrozek <jhrozek@redhat.com>

IFP: Add utility functions Adds a number of utility functions, most importanly ifp_req_create(). The ifp_req is a structure that will be passed along with the ifp request and would provide easy access to both the sbus_request data and per-responder data, like the ifp_ctx. Also includes a utility function to split a path prefix from a full path and add a ldb_element into a dictionary. These will be reused later. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Stef Walter <stefw@redhat.com>

0161a3c5637a0c0092bf54c436bb3d6508d7df26 13-May-2014 Jakub Hrozek <jhrozek@redhat.com>

SBUS: Add an async request to retrieve the caller ID Adds an async request sbus_get_sender_id_{send,recv} that allows retrieval of UID based on "sender" as returned by dbus_message_get_sender(). The UID is an int64_t to be able to use "-1" to as a fallback value for uknown or error cases. The unit test is added as a standalone one, not part of the sbus_tests because the request, and by extension the unit test relies on being connected to the system bus, which is very unlikely to work in a build system. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Stef Walter <stefw@redhat.com>

d12c95d840ed5de7f34e21002943c48e711a33f4 06-May-2014 Lukas Slebodnik <lslebodn@redhat.com>

TEST: Link ipa_ldap_opt test with openldap libs The test ipa_ldap_opt has undefined symbols from libldap and liblber, but it was not directly linked with openldap libraries. sh-4.2$ nm --undefined-only .libs/ipa_ldap_opt-tests | grep -E "ldap|ber" U ber_free U ldap_err2string It causes linker failure on systems with disabled link_all_deplibs (debian) /usr/bin/ld: src/providers/ldap/ipa_ldap_opt_tests-sdap.o: undefined reference to symbol 'ber_free' /usr/bin/ld: note: 'ber_free' is defined in DSO /lib64/liblber-2.4.so.2 so try adding it to the linker command line /lib64/liblber-2.4.so.2: could not read symbols: Invalid operation clang: error: linker command failed with exit code 1 (use -v to see invocation) Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

fcb8e3f1f49bb34c409d8dbd75889eb72be05517 02-May-2014 Jakub Hrozek <jhrozek@redhat.com>

LDAP: Fix off-by-one bug in sdap_copy_opts The sdap_copy_opts function copied all the arguments except for the sentinel. Reviewed-by: Simo Sorce <simo@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>

7caf7ed4f2eae1ec1c0717b4ee6ce78bdacd5926 22-Apr-2014 Jakub Hrozek <jhrozek@redhat.com>

RESPONDERS: Add a new request sss_parse_inp_send The responders were copying code to parse input and on encountering an uknown domain, send the discover subdomain request. This patch adds a reusable request that can always be called in responders and in case the name can be parsed, just shortcut. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

c440c424443517b12afa8d56f989d92ca6ba56a3 22-Apr-2014 Jakub Hrozek <jhrozek@redhat.com>

TESTS: Split a separate common_mock_resp_dp module Splitting the module would allow responders that test the Data Provider requests to use the mock_rctx/mock_cctx functions without duplicate definitions. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

03a071399ab5fb58d4bb4fa38928413a21ae4d61 22-Apr-2014 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

build: List test extensions List test extensions with TEST_EXTENSIONS [1] in Makefile.am to allow applying separate LOG_COMPILER for binary and Python tests. This is needed to avoid running Python tests under Valgrind as that produces too many interpreter-specific errors which are hard to suppress reliably [2]. Thus a run like this would run only binary tests under Valgrind: make check PY_LOG_COMPILER=env LOG_COMPILER=valgrind Or more briefly: make check LOG_COMPILER=valgrind [1] http://www.gnu.org/software/automake/manual/automake.html#index-TEST_005fEXTENSIONS [2] http://svn.python.org/projects/python/trunk/Misc/README.valgrind Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

1203e462650f035b0df2304075d60b9a99e36715 19-Apr-2014 Stef Walter <stefw@redhat.com>

sbus_codegen_tests: Add test case type-safe handler args This adds a big test case for invoking a handler with all supported basic arguments, and constructing a reply with the same. Lots of tedious code, but worth it to make sure things work well.

c252d148fa8ab50aaaa8bbae7beb4d208025171d 17-Apr-2014 Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>

build: Don't assume systemd implies journald Don't add --with-syslog=journald to extra_distcheck_flags if configured with systemd (--with-initscript=systemd). Add it if configured with journald (--with-syslog=journald) instead. This fixes distcheck target when configured with systemd, but without journald. Don't install journal.conf helping with enabling journald logging, unless configured with journald (--with-syslog=journald), as it would be useless and misleading. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

cc1c033c34b5f816b633d27a21aefbf811a7cf72 16-Apr-2014 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Move duplicated files from providers to libsss_ldap_common.so Files sss_ldap.c, user_info_msg.c were built in libsss_{ad,ipa,ldap}.so. In these two files, there are functions sss_ldap_get_diagnostic_msg, pack_user_info_chpass_error which are needed in libsss_ldap_common.so sss_ldap_get_diagnostic_msg is used in src/providers/ldap/sdap_async.c, src/providers/ldap/sdap_async_connection.c pack_user_info_chpass_error is used in src/providers/ldap/ldap_auth.c Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

6261893e00bd14fdd192ffc9a1379cb9c647d326 16-Apr-2014 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Move file sss_krb5.c into libsss_krb5_common.so Functions from module sss_krb5.c were duplicated in many libraries. e.g. symol check_fast was in libsss_ad.so, libsss_ipa.so, libsss_krb5.so, libsss_ldap.so This patch also remove duplicate files between libsss_ldap.so and libsss_krb5_common.so. libsss_ldap.so has already depended on libkrb5. Now, it will depend on libsss_krb5_common.so Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

12805da52a93c268290cec7b8fbbdbd4ea8abc3e 16-Apr-2014 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Move file find_uid.c into libsss_util.so Functions from module find_uid.c were duplicated in many libraries. e.g. symol check_if_uid_is_active was in libsss_ad.so, libsss_ipa.so, libsss_krb5.so, libsss_ldap.so Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

7fc27c7a3ccbb6aecb8cf4a4a5f91962028cb897 16-Apr-2014 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Link libsss_ldap_common.so to libsss_idmap.so Library libsss_ldap.so does not directly use functions from library libsss_idmap.so. It only call function sdap_idmap_init (from file sdap_idmap.c) which is in library libsss_ldap_common.so sh-4.2$ nm -D --undefined-only /usr/lib64/sssd/libsss_ldap.so | grep idmap U sdap_idmap_init On the other hand, libsss_ldap_common.so uses functions from libsss_idmap but it was not linked to libsss_idmap.so. sh-4.2$ objdump -p /usr/lib64/sssd/libsss_ldap_common.so | grep idmap sh-4.2$ echo $? 1 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

717008c8c3f29f3a1a77266cc72a6cfa616bf295 16-Apr-2014 Benjamin Franzke <benjaminfranzke@googlemail.com>

BUILD: Link libsss_krb5_common.so to libkeyutils.so The symbol add_key (from libkeyutils) is used by function add_user_to_delayed_online_authentication (from file src/providers/krb5/krb5_delayed_online_authentication.c) which is part of libsss_krb5_common.so Fixes following error: [sssd[be[default]]] [load_backend_module] (0x0010): Unable to load ad module with path (/usr/lib64/sssd/libsss_ad.so), error: /usr/lib64/sssd/libsss_krb5_common.so: undefined symbol: add_key -lkeyutils was passed to the libraries libsss_{krb5,ipa,ad}.so, but when compiling with -Wl,--as-needed this flag will be ignored, since it is not used directly. So it was unavailable to libsss_krb5_common.so which actually needs it. This patch removes $(KEYUTILS_LIBS) from those libraries and adds it to libsss_krb5_common.so Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

42c28b9424b6ef8a0021b124773e171dd5defadd 15-Apr-2014 Jakub Hrozek <jhrozek@redhat.com>

SBUS: Generate introspection from the interface meta structure https://fedorahosted.org/sssd/ticket/2234 This patch generates the introspection data from the sbus interface meta structure. The generated XML conforms to http://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format The XML description of the interface also always includes the org.freedesktop.DBus.Introspectable interface, which this patch also allows in the policy settings.

4f6931e854c698dcb1c09f99eb330ce2fb97e7c6 11-Apr-2014 Lukas Slebodnik <lslebodn@redhat.com>

AUTOMAKE: Do not include generated files into tarball sssd.service was assigned to the dist_systemdunit_DATA variable. Automake will install this file into the systemd unit directory after building it if necessary. Automake will also include this generated file in the tarball. As a result, when building sssd from the tarball, the paths needn't be recreated. The files in DATA primaries are added as dependencies to the all target via the internal all-am target. If sssd.service doesn’t exist, make will look for a rule to build it. Since there is such a rule, make will simply execute that rule when I build the all target. Resolves: https://fedorahosted.org/sssd/ticket/2314 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

a203f4a0e7c60d6198f4ce8bf99952cfec5a0351 04-Apr-2014 Lukas Slebodnik <lslebodn@redhat.com>

Makefile: Use alternative method to replace *bindir https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Installation-Directory-Variables.html Most of these variables have values that rely on prefix or exec_prefix. It is deliberate that the directory output variables keep them unexpanded: typically ‘@sbindir@’ is replaced by ‘${exec_prefix}/sbin’, not ‘/usr/local/sbin’. This behavior is mandated by the GNU Coding Standards. Installation directory variables (sbindir, pkgdatadir ...) should be used only in makefiles. Similarly, we should not rely on AC_CONFIG_FILES to replace sbindir and friends in shell scripts and other files; instead, let make manage their replacement. Resolves: https://fedorahosted.org/sssd/ticket/2293 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

0a6fa194bad18f417dc8542d3b8f654f898375c5 04-Apr-2014 Pavel Březina <pbrezina@redhat.com>

IFP: do not create client socket There is no need for client socket in IFP responder, since it uses D-Bus for communication with clients. Resolves: https://fedorahosted.org/sssd/ticket/2290 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

8214510f125879c3b1d247f2ce981ee20b5375d1 04-Apr-2014 Jakub Hrozek <jhrozek@redhat.com>

IFP: Connect to the system bus Related: https://fedorahosted.org/sssd/ticket/2072 Adds the possibility for the InfoPipe responder to connect to the system bus. At the moment, only a dummy method "Ping" is provided. The method only accepts a single string parameter that has to be 'ping'.

cb4d5b588e704114b7090678752d33512baa718e 04-Apr-2014 Jakub Hrozek <jhrozek@redhat.com>

IFP: Re-add the InfoPipe server Related: https://fedorahosted.org/sssd/ticket/2072 This commit only adds the responder and the needed plumbing. No DBus related code is in yet.

03fb48fdaa7ed95ecb38ecc43a6d221ff2cfd950 04-Apr-2014 Jakub Hrozek <jhrozek@redhat.com>

IFP: Fix a typo in the Makefile

a044c9a1012d11a2a75e9976ebf186d2d781d291 03-Apr-2014 Pallavi Jha <pallavikumarijha@gmail.com>

cmocka-unit-test-for-functions-getpwuid*-added Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

054b5d4bb98973698f74d66b14ccd14394b53f10 14-Mar-2014 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Enable additional compiler warnings Reviewed-by: Pavel Reichl <preichl@redhat.com>

f5e47e1d65f80ffdb1893feab18583a74d661214 14-Mar-2014 Stef Walter <stefw@redhat.com>

sbus_tests: Add some testing of dispatch and handler code This starts a DBus server with some handlers, and runs some method calls against it. Note that we don't use the codegen in the sbus_tests, as we sorta want to test this non-codegen related functionality on its own before we run the sbus_codegen_tests. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

d9577dbd92555b0755881e37724019ef9c578404 14-Mar-2014 Stef Walter <stefw@gnome.org>

sbus: Add struct sbus_request to represent a DBus invocation struct sbus_request represents a request from a dbus client being handled by a dbus server implementation. The struct contains the message, connection and method (and in the future teh property) which is being requested. In the future it will contain caller information as well. sbus_request is a talloc memory context, and is a good place to attach any allocations and memory specific to the request. Each handler accepts an sbus_request. If a handler returns EOK, it is assumed that the handler will finish the request. Any of the sbus_request_*finish() methods can be used to complete the request and send back a reply. sbus_request_return_and_finish() uses the same argument varargs syntax as dbus_message_append_args(), which isn't a great syntax. Document it a bit, but don't try to redesign: The marshalling work (will follow this patch set) will remove the need to use varargs for most DBus implementation code. This patch migrates the monitor and data provider dbus code to use sbus_request, but does not try to rework the talloc context's to use it. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

5c36e1f8901a4baff2b51d81d87c2b577f84fef6 10-Mar-2014 Lukas Slebodnik <lslebodn@redhat.com>

Makefile: Add missing library to the dp_opt_tests dp_opt_tests cannot be linked properly if link_all_deplibs is disabled (debian) /usr/bin/ld: src/tests/cmocka/dp_opt_tests-test_dp_opts.o: undefined reference to symbol 'poptFreeContext@@LIBPOPT_0' /usr/bin/ld: note: 'poptFreeContext@@LIBPOPT_0' is defined in DSO /lib64/libpopt.so.0 so try adding it to the linker command line /lib64/libpopt.so.0: could not read symbols: Invalid operation Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

d00ffd2cb4e2f17c75b466178bb645b5c9317909 05-Mar-2014 Pallavi Jha <pallavikumarijha@gmail.com>

Unit-test-for-negcache-module-added Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

d206ccb0362396b9de326ab1c43ed3af9d8b60a3 02-Mar-2014 Sumit Bose <sbose@redhat.com>

config API: prepend source dir search path for tests Instead of appending the search patch in the source directory should be prepended. Otherwise the test might find files installed in the default paths of the system first. As a result the compiled python files in the build directory must be remove in the clean target to make 'make distcheck' pass. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

17f08cbd0f909181536b93d6c12c7cd69995f09e 02-Mar-2014 Sumit Bose <sbose@redhat.com>

config API: read only specific files from schemaplugindir Currently the config API read any file in the schema plugin dir, typically /usr/share/sssd/sssd.api.d. If there are any unexpected files, like e.g. editor copies or backups, the python code might break because it cannot parse the files. With this patch only files matching the pattern '^sssd-.*\.conf$' are read from this directory. Additionally this patch contains a file which will break the config API self test if it is not filtered out correctly. Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>

61804568ce5ede3b1a699cda17c033dd6c23f0e3 02-Mar-2014 Sumit Bose <sbose@redhat.com>

SUDO: AD provider This patch adds the sudo target to the AD provider. The main reason is to cover different default settings in the LDAP and AD provider. E.g. the default for ldap_id_mapping is True in the AD provider and False in the LDAP provider. If ldap_id_mapping was not set explicitly in the config file both components worked with different setting. Fixes https://fedorahosted.org/sssd/ticket/2256 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>

034ffb3c69cd04f03b36b89766c47a7c9bd9b831 26-Feb-2014 Sumit Bose <sbose@redhat.com>

libsss_idmap: bump version-info Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

90afedb00608547ae1f32aa7aafd552c4b306909 26-Feb-2014 Jakub Hrozek <jhrozek@redhat.com>

DP: Provide separate dp_copy_defaults function https://fedorahosted.org/sssd/ticket/2257 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

f69f3581658351003a6d9245045e41d0efb85022 26-Feb-2014 Sumit Bose <sbose@redhat.com>

IPA: refactor idmap code and add test Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

769347ad4d35d43488eb98f980143495b0db415d 24-Feb-2014 Stef Walter <stefw@redhat.com>

sbus: Rework sbus to use interface metadata and vtables Previous commits added support for interface metadata and handler vtables. This commit ports sbus_dbus_connection to use them. Port the internal uses of dbus to use the new scheme in a very minimal way. Further cleanup is possible here. This commit provides basic definitions of the internal dbus interfaces. The interfaces aren't fully defined, as the handlers will continue to unpack manually, and often overload DBus methods with different arguments (which is rather unorthodox, but not the end of the world). Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

fcd8093c58638dc7c4f9cddfc97f273b94ce2ead 24-Feb-2014 Stef Walter <stefw@redhat.com>

sbus: Add sbus_vtable and update codegen to support it Each interface is a vtable structure derived from sbus_vtable, in the sense that it has an sbus_vtable struct as its first argument. This lets us upcast the interface vtable structure to an sbus_vtable and dispatch to it dynamically and cleanly. The interface metadata contains information about which vtable offset in the interface metadata should be dispatched to for a given function. This is a common scheme, not only among dbus implementations, but also compiled languages. Currently all the vtable functions are of type sbus_msg_handler_fn. These are the handlers we are familiar with and perform raw processing of the message. Later commits will introduce type safe handlers that levelage compile checking and automatic argument packing/unpacking. Although this may seem contrived now, the remainder of the dbus infrastructure work will build on this, including ofd.Properties, ofd.ObjectManager, ofd.Introspect, compiler checked type safe unpacking/packing, etc. The codegen now generates vtable structures for each interface along-side the metadata, and fills in vtable offsets appropriately. It is obviously still possible to hand-craft such vtables and metadata if needed for a special case. Once again examples output can be found at: src/tests/sbus_codegen_tests_generated.h Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

b699c4d7f85a5404be1d1ee9450331aea869b886 24-Feb-2014 Stef Walter <stefw@redhat.com>

sbus: Add meta data structures and code generator These metadata structures hold the information about all the details of a DBus interface. They are typically generated from the canonical XML form of the DBus interface, although they may also be hand crafted. Add some handy functions for looking up methods, props, signals, in the metadata of an interface. Currently lookups are just done by looking through an array. If performance becomes an issue (ie: very large interfaces) it would be really easy to sort things and use bsearch(). Later commits will include some definitions using this metadata and related functions. DBus interfaces are defined here: http://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format The introspection data format has become the standard way to represent a DBus interface. For many examples see /usr/share/dbus-1/interfaces/ on a typical linux machine. A word about annotations. These are extra flags or values that can be assigned to anything. So far, the codegen supports this annotation: org.freedesktop.DBus.GLib.CSymbol - An annotation specified in the specification that tells us what C symbol to generate for a given interface or method. By default the codegen will build up a symbol name from the DBus name. It is possible to confuse the code generator into producing invalid C code (with strange method names, for example), but the C compiler catches such silliness right away. Add tests testing basic features of the codegen and poking through the metadata it creates. Also test the metadata lookup functions. Generated code is checked in for easy discovery. An example of the XML interface definitions can be found at: src/tests/sbus_codegen_tests.xml And an example of the generated header can be found here: src/tests/sbus_codegen_tests_generated.h Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>

22091abbe7b4a5667f62603dfd875e9ec6adf789 19-Feb-2014 Alexey Shabalin <shaba@altlinux.ru>

Use KRB5_CFLAGS where appropriate There are cases when MIT Kerberos is installed with includes in a subdirectory of /usr/include (or /usr/local/include). In such case we have to properly use KRB5_CFLAGS to reach them. https://fedorahosted.org/sssd/ticket/2226 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

9542512d7be40f2000298c86d3d2b728f4f0f65a 19-Feb-2014 Stephen Gallagher <sgallagh@redhat.com>

BUILD: Simplify enabling journald on installed systems systemd supports overrides of the standard service file to be placed in /etc/systemd/system/<service>.service.d/ With this patch, we will install a commented-out override file to /etc that will instruct the user on how to enable logging to journald. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

e046ae03d0f55b1c8b0ec2fa6139bf86a3449adf 18-Feb-2014 Pavel Březina <pbrezina@redhat.com>

tests: nested groups unit test Resolves: https://fedorahosted.org/sssd/ticket/2024 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

dc70b11ddc2dfc6ed99cd895f020cd3429278968 18-Feb-2014 Pavel Březina <pbrezina@redhat.com>

tests: prepare makefile for provider related unit tests Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

17d37aecdf397fcb7a1d0c75adebdb25d7be112e 18-Feb-2014 Pavel Březina <pbrezina@redhat.com>

tests: mock sysdb users and groups Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

3f32406640d89face5e79244b4d8dab34adb6c7c 18-Feb-2014 Pavel Březina <pbrezina@redhat.com>

tests: mock SDAP Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

82a4f022ec1cbb9530ffa21d95474152b24acf50 18-Feb-2014 Pavel Březina <pbrezina@redhat.com>

ldap: move domain related content from ldap_common.c to sdap_domain.c Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

ce35bb272d25926b8fa0f9450c8b74064f25c816 18-Feb-2014 Pavel Březina <pbrezina@redhat.com>

ldap: move options related content from ldap_common.c to ldap_options.c Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

25ac7bda643c8872b5a29bc856c374e76a7f8363 18-Feb-2014 Pavel Březina <pbrezina@redhat.com>

sdap: move non async functions from sdap_async.c to sdap_utils.c Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

5bcb59c94ceb86b4ccd280a5a3f47c16fb08aac3 17-Feb-2014 Lukas Slebodnik <lslebodn@redhat.com>

IPA: explicitly link libsss_ipa with selinux library Function selinux_policy_root is used in the module ipa_selinux.c by macro selogin_path, but libsss_ipa.so was not linked with selinux library It was not problem because another libraries depens on selinux.so libsss_ipa.so -> libk5crypto.so -> libkrb5support.so -> libselinux.so We should not rely on dependencies of other libraries. Reviewed-by: Pavel Březina <pbrezina@redhat.com>

17bc702a8aa0858647a628c3e9702f2dd698fd82 12-Feb-2014 Lukas Slebodnik <lslebodn@redhat.com>

Makefile: Remove unused libraries ldap_child, krb5_child do not use any function from libsss_child, libtevent and openldap libraries

b9d8c6172e48a2633ebe196b2e88bebdf9523c20 12-Jan-2014 Stef Walter <stefw@redhat.com>

util: A safe printf for user provided format strings Since the default printf(3) implementation cannot safely be used on user (or admin) provided input, this is a safe implementation. This will be used in later patches by the full_name_format option The implementation came from realmd, but only has libc dependencies. The number of fields is pre-defined, and safe printf fails if an invalid field is accessed. Only string fields are supported, and only flags relevant to string fields are supported. Width and precision work as expected, but precision cannot read from a field. Tests are included, and ported to the check based testing that sssd uses.

461da2984c747708e8badd27fa55ef879f40e712 09-Jan-2014 Pallavi Jha <pallavikumarijha@gmail.com>

cmocka unit test for authtok module added

e33122d1775712bd31cf4a977bcc40843ca0f618 19-Dec-2013 Pavel Březina <pbrezina@redhat.com>

Bump sss_idmap version to 3:0:3 New functions were added.

72ae534f5aef6d2e5d3f2f51299aede5abf9687e 19-Dec-2013 Jakub Hrozek <jhrozek@redhat.com>

AD: Add a utility function to create list of connections ad_id.c and ad_access.c used the same block of code. With the upcoming option to disable GC lookups, we should unify the code in a function to avoid breaking one of the code paths. The same applies for the LDAP connection to the trusted AD DC. Includes a unit test.

cebdc563a094d305b91da5b5af4d95d8e3a1bf27 29-Nov-2013 Pavel Reichl <pavel.reichl@redhat.com>

SSSD: Unit test - sss_ldap_dn_in_search_bases Unit test testing detection of the right domain when processing group with members from several domains Resolves: https://fedorahosted.org/sssd/ticket/2132

f74d7744f1b12fe0492eadfc8cf30afcb4092e40 28-Nov-2013 Lukas Slebodnik <lslebodn@redhat.com>

AUTOMAKE: Don't build libsss_test_common every time Although static library libsss_test_common was used only in tests, it was also built with command "make all" Resolves: https://fedorahosted.org/sssd/ticket/2097

25c394fc9d09aa7f58700e67b942aba86505934a 18-Nov-2013 Lukas Slebodnik <lslebodn@redhat.com>

TESTS: Link libsss_test_common with tevent Static library libsss_test_common calls tevent functions directly (in module common_tev.c), but it was not linked with tevent library.

de38d860e39585486e3ccbb42555196e319c7efd 15-Nov-2013 Sumit Bose <sbose@redhat.com>

Add utility to handle Well-Known SIDs

7a1a56860993475d0025e7411547649abf09d32c 15-Nov-2013 Jakub Hrozek <jhrozek@redhat.com>

Merge ipa_selinux_common.c and ipa_selinux.c Moved unused functions and merged ipa_selinux_common.c into ipa_selinux.c

41402c003fef1e6768f5468dd7ea2e20e16bfa19 11-Nov-2013 Benjamin Franzke <benjaminfranzke@googlemail.com>

BUILD: Use OPENLDAP_CFLAGS instead of LDAP_CFLAGS LDAP_CFLAGS is never defined. OPENLDAP_CFLAGS is set by src/external/ldap.m4. This patch does: sed -i 's/$(LDAP_CFLAGS)/$(OPENLDAP_CFLAGS)/' Makefile.am

c3889e5a101a075defe533d81f5296d5e680f639 11-Nov-2013 Lukas Slebodnik <lslebodn@redhat.com>

BUILD: Explicitly link libsss_ad.so with sasl libs If openldap is not built with sasl support libsss_ad.so will not be linked with libsasl2 although sasl_client_init is called by function ad_sasl_initialize.

16c351625346b3193e1762027e5215ab76042127 11-Nov-2013 Sumit Bose <sbose@redhat.com>

Replace prog_DEPENDENCIES with EXTRA_prog_DEPENDENCIES Automake computes build dependencies of a program automatically but not if prog_DEPENDENCIES is set. In this case only the dependencies given by prog_DEPENDENCIES are used. If the automatically calculated dependencies should be augmented EXTRA_prog_DEPENDENCIES should be used.

654757bcead49427baaeb1b368c0e3433b67c51a 04-Nov-2013 Jan Engelhardt <jengelh@inai.de>

build: fix ordering of linker flags Libraries MUST be specified in LDADD/LIBADD, not LDFLAGS, because LDFLAGS appear earlier in the command line and library order is significant.

f1be4caee5d9681c3f5f6d4b13c8abc8295c901b 30-Oct-2013 Lukas Slebodnik <lslebodn@redhat.com>

Makefile: Remove unused variable TEST_MOCK_OBJ

221619d8e8d7cf269c55482e5f466f6511ed35ad 30-Oct-2013 Lukas Slebodnik <lslebodn@redhat.com>

Makefile: Add missing libraries If sssd is compiled with disabled link_all_deplibs (debian) some test could not be properly linked. This patch add missing libraries

1ce58f139699dd26b8888f4131c996263b6a80a5 25-Oct-2013 Jakub Hrozek <jhrozek@redhat.com>

AD: Add extended access filter https://fedorahosted.org/sssd/ticket/2082 Adds a new option that allows the admin to specify a LDAP access filter that can be applied globally, per-domain or per-forest.

3cbbfb4b05d0eb0a0809704e83589d0075e117a0 25-Oct-2013 Sumit Bose <sbose@redhat.com>

idmap: add sss_idmap_domain_by_name_has_algorithmic_mapping()

939246537b0b9a4af6862c513d3919501ad57d92 25-Oct-2013 Sumit Bose <sbose@redhat.com>

find_subdomain_by_sid: skip domains with missing domain_id

af4ffe1001adcc0a96897e426d26444f07af9aa1 15-Oct-2013 Benjamin Franzke <benjaminfranzke@googlemail.com>

Add CIFS idmap plugin https://fedorahosted.org/sssd/ticket/1534

31ad608192c24eb56cf7a8294f6bfc080893193c 18-Sep-2013 Jakub Hrozek <jhrozek@redhat.com>

AD: async request to retrieve master domain info Adds a reusable async request to download the master domain info.

77c0d1f6074059dafd2293f9c42ea0f9d60f8aad 18-Sep-2013 Jakub Hrozek <jhrozek@redhat.com>

Add journald support

a473fb88e6015cf0ccbd2e9005c7e6acca18f452 17-Sep-2013 Pavel Březina <pbrezina@redhat.com>

util: add sss_idmap_talloc[_free] Remove code duplication.

b49a7d90708e816120ff88ce5a88fa62b35ff795 16-Sep-2013 Simo Sorce <simo@redhat.com>

util: Use systemd-login to check user sessions Use systemd-lgin in preference to check if the user is logged in or not. Fall back to the old method if no systemd-login support is available at compile time or if it returns a fatal error, and can't determine the status of the user on its own. This will allow to consider a user really active (in order to reuse or refresh crdentials) only if it really is logged into the system, and not just if one of the user's processes is stuck around. Resolves: https://fedorahosted.org/sssd/ticket/2084

701f13b5c8e27bcbfc79e77ce7c76d9f768a448c 11-Sep-2013 Lukas Slebodnik <lslebodn@redhat.com>

Adding new header for printf formating macros

a70e88f62e8ba48c5042b881f20ed6586cb135a8 09-Sep-2013 Simo Sorce <simo@redhat.com>

krb5: Use krb5_cc_destroy to remove old ccaches This completely replaces the per-ccache-type custom code to remove old cacches and instead uses libkrb5 base doperations (krb5_cc_destroy) and operating as the user owner. Resolves: https://fedorahosted.org/sssd/ticket/2061

36ccdecd053a9ad88dce86b8c84770dc2aa11d21 09-Sep-2013 Simo Sorce <simo@redhat.com>

tests: Add dlopen test to make sure modules works This tests dlopens and resolves all symbols to make sure there are no missing symbols in our provider modules.

9917c138d9a270deb5820915384fbde751190c2a 09-Sep-2013 Lukas Slebodnik <lslebodn@redhat.com>

AUTOTOOLS: More robust detection of inotify. We checked only header file "sys/inotify" for detection whether inotify works. Some platforms do not have built in inotify, but contain library, which provides inotify-compatible interface. This patch adds more robust detection of inotify in configuration time and appends linker flags to Makefile if inotify is provided by library.

eaa723b4d06b4c1e588df67bef44a84bbfaebf1a 09-Sep-2013 Lukas Slebodnik <lslebodn@redhat.com>

AUTOMAKE: Use portable way to link with gettext Function gettext needn't be included in libc, it can be part of another library. Autotools macro AM_GNU_GETTEXT generate makefile variables (LIBINTL, LTLIBINTL), which contain necessary linker flags. checking for GNU gettext in libc... no checking for iconv... yes checking for GNU gettext in libintl... yes checking whether to use NLS... yes checking where the gettext function comes from... external libintl

ccf340e56364851f2e5b75e52d3d63701b662954 09-Sep-2013 Lukas Slebodnik <lslebodn@redhat.com>

AUTOMAKE: Use portable way to link with dlopen

2db6afe70eee2bbc22aa657a6b6609a9f3eb5d4c 09-Sep-2013 Simo Sorce <simo@redhat.com>

Makefile: Fix sssd_be targets The $(PAM_LIBS) variable should be added to LDADD not LDFLAGS

3275c56e7b5dd36d25e0a971bf90c70179f0ab8f 02-Sep-2013 Lukas Slebodnik <lslebodn@redhat.com>

AUTOMAKE: Add missing escaped newline

1658c567191c35beaddffafdb079abe33248037b 28-Aug-2013 Lukas Slebodnik <lslebodn@redhat.com>

UTIL: Create new wraper header file sss_endian.h Some platform have header file endian.h and anothers have sys/endian.h. We nedd to use conditional build to handle it correctly, therefore new header file sss_endian.h was created.

8ca73915a3bf60331468fed6b3b38652c979f95d 28-Aug-2013 Jakub Hrozek <jhrozek@redhat.com>

LDAP: Move the ldap enum request to its own reusable module The LDAP enumeration was too closely tied to the LDAP identity provider. Because some providers might need special handling such as refresh the master domain record before proceeding with the enumeration itself, this patch splits the request itself to a separate async request and lets the ldap_id_enum.c module only configure this new request. Also move the enum timestamp to sdap_domain to make the enum tracking per sdap domain. The cleanup timestamp will be moved in another patch.

caee9828ee30609e9f433957dbb3d0163390a207 28-Aug-2013 Sumit Bose <sbose@redhat.com>

ipa-server-mode: add IPA group memberships to AD users When IPA trusts an AD domain the AD user or groups can be placed into IPA groups e.g. to put AD users under the control of HBAC. Since IPA group can only have members from the IPA directory tree and the AD users and groups are not stored there a special IPA object called external group was introduced. SIDs of users and groups can be added to the external group and since the external groups are in the IPA directory tree they can be member of IPA groups. To speed things up and to remove some load from the IPA servers SSSD reads all external groups and stores them in memory for some time before rereading the data. Enhances https://fedorahosted.org/sssd/ticket/1962

ac54a88b4b510289a411f334e371282d00e1538d 28-Aug-2013 Simo Sorce <simo@redhat.com>

BUILD: Remove unnecessary patch and configure opts Now that we use the libkrb5 defaults for the default ccname template we do not need the patch that changes the man pages defaults nor the configure options to change sssd defaults anymore. Related: https://fedorahosted.org/sssd/ticket/2036

78395373edc3fcf62847de2c630b656967222901 27-Aug-2013 Stephen Gallagher <sgallagh@redhat.com>

BUILD: Ignore translations when building RPMs When we're running 'make rpms' for development purposes, the nested call to 'make distdir' ends up forcing an update of the translation pot files. With this patch, we'll automatically ignore them during (S)RPM actions.

d35ff4d0db1cd87c94091a85846b46e4732b1eee 07-Aug-2013 Pavel Březina <pbrezina@redhat.com>

add simple access provider init test

48d7840cae22c5ff4d786149b0d8ecee7efb8306 07-Aug-2013 Lukas Slebodnik <lslebodn@redhat.com>

Add script make_srpm.sh to dist tarball.

4b60fd691cc04455810d15da4f7f4044b92b07b3 22-Jul-2013 Alexander Bokovoy <abokovoy@redhat.com>

build: fix dependencies for pysss module https://fedorahosted.org/sssd/ticket/2025

35872dc24058c5e8028cb4082fd405a27835dcd1 19-Jul-2013 Jakub Hrozek <jhrozek@redhat.com>

AD: Set the bool value same as default value in opts https://fedorahosted.org/sssd/ticket/2023 When the option values are copied using dp_opt_copy_map, the .val member is used if it's not NULL. At the same time, the bool options are never NULL, unlike integers or strings that can have special NULL-like values such as NULL_STRING. This effectively means that when copying a bool option, the .val member is always used. But in the AD maps, some .val fields were set differently from the .def_val fields. The effect was that when the AD subdomain provider was initialized from IPA subdomain provider using only the defaults, some options (notably referral chasing) were set to a value that didn't make sense for the AD provider. This patch makes sure that for all boolean option, the .val is always the same as .def_val.

f8a4a5f6240156809e1b5ef03816f673281e3fa0 28-Jun-2013 Jakub Hrozek <jhrozek@redhat.com>

IPA: Initialize server mode ctx if server mode is on This patch introduces a new structure that holds information about a subdomain and its ad_id_ctx. This structure will be used only in server mode to make it possible to search subdomains with a particular ad_id_ctx. Subtask of: https://fedorahosted.org/sssd/ticket/1962

8ff0aba893d8da1a8163ccaf9ad2c5b6bccd121f 28-Jun-2013 Sumit Bose <sbose@redhat.com>

Add ipa_idmap_init() Use the sdap_idmap context for the IPA provider as well. https://fedorahosted.org/sssd/ticket/1961

d064fef06dcbcb5f6c1be03e286b1a3433d6dfd7 28-Jun-2013 Sumit Bose <sbose@redhat.com>

Add cmocka based tests for libsss_idmap This patch implements some unit tests for the recent enhancements to libsss_idmap.

fd98a28d6e94080e52bbedc789b06606a6019b10 12-Jun-2013 Lukas Slebodnik <lslebodn@redhat.com>

Change order of libraries in linking process. It seems that some linkers have problem with wrong order of libraries. This commit only change order.

7b5e7e539ae9312ab55d75aa94feaad549b2a708 10-Jun-2013 Pavel Březina <pbrezina@redhat.com>

providers: refresh expired netgroups https://fedorahosted.org/sssd/ticket/1713

0cf0e2d758d09e9b314ba72ce6638df10b258462 10-Jun-2013 Pavel Březina <pbrezina@redhat.com>

back end: add refresh expired records periodic task https://fedorahosted.org/sssd/ticket/1713 Add new option refresh_expired_interval.

b79e0e50a935d108173ca3062f2afe16103fcb1d 10-Jun-2013 Pavel Březina <pbrezina@redhat.com>

back end: periodical refresh of expired records API https://fedorahosted.org/sssd/ticket/1713

ac47e8854f3bc404f2a35c6682faf621673d6b32 10-Jun-2013 Pavel Březina <pbrezina@redhat.com>

back end: periodic task API https://fedorahosted.org/sssd/ticket/1891

e293fba4f5459f3c2dad254dcc966407d8fc3312 07-Jun-2013 Jakub Hrozek <jhrozek@redhat.com>

rpm: Fold libsss_sudo and libsss_autofs back into the main SSSD package https://fedorahosted.org/sssd/ticket/1845 libsss_sudo and libsss_autofs are separate packages that contain just a single client library with no additional dependencies. This separation comes from the F-17 timeframe where the feature was really just a tech preview so we didn't want it to be packaged in sssd proper. On the other hand users are getting regularly confused about "sudo not working" when all they really miss is the single library. This patch moves the files owned by the libsss_autofs and libsss_sudo packages back to the main sssd package. We also no longer build the libsss_sudo documentation by default and do not ship the header file as it was just a private one.

c51f7a064b0d7ef86110bdeb6dc09fa6c08be7d3 07-Jun-2013 Jakub Hrozek <jhrozek@redhat.com>

Move domain_to_basedn outside IPA subtree The utility function will be reused to guess search base from the base DN of AD trusted domains.

92af6f25864b5c389b57d0f659686801b45ca58c 06-Jun-2013 Sumit Bose <sbose@redhat.com>

Enhance PAC responder for AD users This patch modifies the PAC responder so that it can be used with the AD provider as well. The main difference is that the POSIX UIDs and GIDs are now lookup up with the help of the SID instead of being calculated algorithmically. This was necessary because the AD provider allows either algorithmic mapping or reading the value from attributes stored in AD. Fixes https://fedorahosted.org/sssd/ticket/1558

577ba99b3150404533bd3d859522a2c994b17e76 30-May-2013 Lukas Slebodnik <lslebodn@redhat.com>

Fix compilation with disabled link_all_deplibs. From the Debian patch: ># Do not link against deplibs. This is not needed for shared libs ># on at least ELF systems since those already know which libs they ># need themself. This seems to break a few things and will be fixed ># in a better way in a future upstream version. Overlinking has several issues. An obvious one is performance on startup, a more serious is if one of the lib deps changes soname of something it links against, and you could load two versions to the memory at the same time.. This patch changes dependencies among libsss_util and libsss_child, libsss_crypt, libsss_debug. Library libsss_util no longer depends on any internal library. Each program, which was linked with libsss_util, now directly link necessary libraries (libsss_child, libsss_crypt, libsss_debug) https://fedorahosted.org/sssd/ticket/1928

76637e7a0309e8eb64cd35953fa4a8de39dce218 30-May-2013 Jakub Hrozek <jhrozek@redhat.com>

tests: Link fqnames_tests with libsss_test_common.la

777374243e15c53e7b0a7345e190c1018920be18 30-May-2013 Jakub Hrozek <jhrozek@redhat.com>

Allow flat name in the FQname format https://fedorahosted.org/sssd/ticket/1648 Adds another expansion in the printf format that allows the user to use the domain flat name in the format.

d65f692d7b7639ed8ba0f5cffa4f88b68056739a 30-May-2013 Lukas Slebodnik <lslebodn@redhat.com>

Making order in tests. --removed duplicated test-io --reusing library libsss_test_common in other tests --cmocka test sss_nss_idmap-tests was moved to cmocka dir --moved leak_check.c to libsss_test_common --moved common_tev.c,common_dom.c to libsss_test_common (leak_check.c,common_tev.c,common_dom.c) are test framework independent

071962f5cb3bd8ddf33210640ff62c04f09ce5c3 23-May-2013 Stephen Gallagher <sgallagh@redhat.com>

Remove old hash support from example spec SSSD 1.10 and later will no longer support RHEL 5, so we should be using the native hash algorithm on the newer versions of RPM by default.

574a1c20f114851071ae74112b34488c3d1aeeb3 21-May-2013 Ondrej Kos <okos@redhat.com>

Check NSCD configuration file https://fedorahosted.org/sssd/ticket/1785 nscd.conf file is now checked for the presence of caching settings for databases controlled by SSSD. Syslog warning is now written only if NSCD is running with interfering configuration or if configuration file couldn't be loaded. New configure option added to support non-standard locations --with-nscd-conf=PATH (defaultly set to /etc/nscd.conf) This is just a workaround until the following bugzilla is resolved: https://bugzilla.redhat.com/show_bug.cgi?id=963908

db78f4c750943fcd4b60bca5f3fdfd6cc5d3d4f8 21-May-2013 Ondrej Kos <okos@redhat.com>

Move nscd.c from tools to util Preparation for the following patch which will include the nscd.c in the monitor code due to newly introduced function for checking the nscd configuration file.

2fa8d6655ac37f9bdeb34420000052d921f4a543 14-May-2013 Michal Zidek <mzidek@redhat.com>

Rename SAFEALIGN macros. https://fedorahosted.org/sssd/ticket/1772 SAFEALIGN macros have been renamed in this patch to make it easy to pick the right macro when data is copied from byte buffer to a variable or vice versa. The renamed macros are placed in new header file to avoid code duplication (the old ones were defined in two files, one for the client code and one for the rest of sssd).

4cdaf239d4504966bed8ecd5e3fa07def74c7302 07-May-2013 Sumit Bose <sbose@redhat.com>

AD: read flat name and SID of the AD domain For various features either the flat/short/NetBIOS domain name or the domain SID is needed. Since the responders already try to do a subdomain lookup when and known domain name is encountered I added a subdomain lookup to the AD provider which currently only reads the SID from the base DN and the NetBIOS name from a reply of a LDAP ping. The results are written to the cache to have them available even if SSSD is started in offline mode. Looking up trusted domains can be added later. Since all the needed responder code is already available from the corresponding work for the IPA provider this patch fixes https://fedorahosted.org/sssd/ticket/1468

74e95cfd9d3939dfe9417d79d2f6fc79b361405f 03-May-2013 Jakub Hrozek <jhrozek@redhat.com>

Active Directory dynamic DNS updates https://fedorahosted.org/sssd/ticket/1504 Implements dynamic DNS updates for the AD provider. By default, the updates also update the reverse zone and run periodically every 24 hours.

5a4239490c7fb7d732180a9d40f27f0247c56631 03-May-2013 Jakub Hrozek <jhrozek@redhat.com>

dyndns: new option dyndns_refresh_interval This new options adds the possibility of updating the DNS entries periodically regardless if they have changed or not. This feature will be useful mainly in AD environments where the Windows clients periodically update their DNS records.

04868f1573f4b26ef34610b6d7069172f93bd8ab 03-May-2013 Jakub Hrozek <jhrozek@redhat.com>

Convert IPA-specific options to be back-end agnostic This patch introduces new options for dynamic DNS updates that are not specific to any back end. The current ipa dyndns options are still usable, just with a deprecation warning.

9cb46bc62f22e0104f1b41a423b014c281ef5fc2 03-May-2013 Jakub Hrozek <jhrozek@redhat.com>

Refactor dynamic DNS updates Provides two new layers instead of the previous IPA specific layer: 1) dp_dyndns.c -- a very generic dyndns layer on the DP level. Its purpose it to make it possible for any back end to use dynamic DNS updates. 2) sdap_dyndns.c -- a wrapper around dp_dyndns.c that utilizes some LDAP-specific features like autodetecting the address from the LDAP connection. Also converts the dyndns code to new specific error codes.

c080a11e9e88f35e40aff4e476cabbd971833019 03-May-2013 Sumit Bose <sbose@redhat.com>

Add python interface to libsss_nss_idmap To allow to use libsss_nss_idmap from python applications, e.g. the FreeIPA server, the patch adds pythin bindings to libsss_nss_idmap. The contributed spec file will place the python bindings in a new package called libsss_nss_idmap-python. Alexander Bokovoy <abokovoy@redhat.com> kindly provided the code to check the type of the python objects and loop over the list entries.

2a9af1f71887f02935e2fb6ad5023afba5b6d43e 03-May-2013 Sumit Bose <sbose@redhat.com>

Add client library for SID related lookups This patch add a library for client side lookups for a SID or with a SID through the calls: - sss_nss_getsidbyname - sss_nss_getsidbyid - sss_nss_getnamebysid - sss_nss_getidbysid The library is called libsss_nss_idmap and the contributed spec file will create two new packages libsss_nss_idmap and libsss_nss_idmap-devel.

6eadbf9dab2ad9a9463dc23e91c9e2fc804c1e9b 03-May-2013 Sumit Bose <sbose@redhat.com>

Add SID related calls to the NSS responder The patch adds 4 new calls to the NSS responder: - SSS_NSS_GETSIDBYNAME - SSS_NSS_GETSIDBYID - SSS_NSS_GETNAMEBYSID - SSS_NSS_GETIDBYSID to either return the SIDs of the requested object or map the SID to the name or the POSIX ID of the related object.

b24e4bec819b29f1ec8e77083d4e7610c5dd9c77 03-May-2013 Lukas Slebodnik <lslebodn@redhat.com>

SUDO: IPA provider This patch added auto configuration SUDO with ipa provider and compat tree. https://fedorahosted.org/sssd/ticket/1733

25255e4d0e1517a5d443e8fee22e91862e255702 02-May-2013 Abhishek Singh <abhishekkumarsingh.cse@gmail.com>

Fix segmentation fault in test_io. tests_set_cwd is used and relativepath calculation method is changed and is made general based on basedir.

f427b36b0cecc426856ab3f77a9c684ac355659d 02-May-2013 Sumit Bose <sbose@redhat.com>

Add idmap context to nss context This allows the nss responder to use libsss_idmap to convert between different SID representations.

a679f0167b646cffdae86546ed77e105576991b0 02-May-2013 Pavel Březina <pbrezina@redhat.com>

DNS sites support - add AD SRV plugin https://fedorahosted.org/sssd/ticket/1032

46222e5191473f9a46aec581273eb2eef22e23be 29-Apr-2013 Michal Zidek <mzidek@redhat.com>

libsss_idmap: function to calculate range Calculation of range for domains is moved from sdap_idmap code to sss_idmap code. Some refactoring have been done to allow this move. https://fedorahosted.org/sssd/ticket/1844

7de6e3534fd61c7619ed34a6b1afe7230b5e6504 26-Apr-2013 Ondrej Kos <okos@redhat.com>

DB: Switch to new libini_config API https://fedorahosted.org/sssd/ticket/1786 Since we need to support the old interface as well, the configure scritp is modified and correct ini interface is chosen.

97bc9a1db9730f8a1875a62670c1a11a4c5e0844 22-Apr-2013 Jakub Hrozek <jhrozek@redhat.com>

tests: Link the simple access tests with -ldl In SSSD, we use dlopen() and dlsym() in two files src/providers/data_provider_be.c and src/providers/proxy/proxy_init.c. Hence we should explicitly link with -ldl also in simple_access-tests. SSSD can be compiled with two crypto libraries nss or libcrypto. NSS has dependency nspr which depends on "libdl and libpthread" This is a reason why compilation of test did not fail even if -ldl was not explicitly added to simple_access_tests_LDADD. But libcrypto doesn't depend on libdl, so in this case compilation of tests will not be successful. Upstream nspr 4.9 has two ways have to obtain metainformation about libraries pkg-config and own script nspr-config. First one doesn't list "-ldl" "-lpthread" but second one lists both "-ldl" "-lpthread" That's also why the Ubuntu maintainer found this bug -- Fedora has got patched version of nspr, but Debian (Ubuntu) doesn't

4139a7a731f2831963a42b26aac111422be28792 17-Apr-2013 Jakub Hrozek <jhrozek@redhat.com>

Make leak checks usable in tests that do not utilize check * Remove check-specific failure reporting from common_check.c * Check-specific abstraction over memleak checks * Rename common_check.c to leak_check.c

88275cccddf39892e01682b39b02292eb74729bd 10-Apr-2013 Pavel Březina <pbrezina@redhat.com>

DNS sites support - add IPA SRV plugin https://fedorahosted.org/sssd/ticket/1032

77d165f0629966db65753a3aee84a8b4971673af 10-Apr-2013 Pavel Březina <pbrezina@redhat.com>

DNS sites support - SRV DNS lookup plugin https://fedorahosted.org/sssd/ticket/1032 This plugin mimics the current behaviour. If discovery_domain is set it is the only domain that is tried. If discovery_domain is not set, we try to autodetect domain first and if that fails or SRV lookup on this domain fails, we fallback to SSSD domain name.

f9961e5f82e0ef474d6492371bfdf9e74e208a99 10-Apr-2013 Pavel Březina <pbrezina@redhat.com>

DNS sites support - SRV lookup plugin interface https://fedorahosted.org/sssd/ticket/1032 Introduces two new error codes: - ERR_SRV_NOT_FOUND - ERR_SRV_LOOKUP_ERROR Since id_provider is authoritative in case of SRV plugin choise, ability to override the selected pluging during runtime is not desirable. We rely on the fact that id_provider is initialized before all other providers, thus the plugin is set correctly.

ca261795ce61c41d7e62217ccb2ee913923040ff 10-Apr-2013 Pavel Březina <pbrezina@redhat.com>

resolv: add resolv_get_domain request to resolv utils

ae6c1596225c65bec2a2dabff9eee4e3e0691181 10-Apr-2013 Abhishek Singh <abhishekkumarsingh.cse@gmail.com>

cmocka unittest for io added

a65a64aee968bd2ac18156ced15a1e2509a8acba 10-Apr-2013 Abhishek Singh <abhishekkumarsingh.cse@gmail.com>

cmocka unittest for find_uid added

584eda085e83a428f2c39dadf0d7adeaff5c87f4 03-Apr-2013 Jakub Hrozek <jhrozek@redhat.com>

Init failover with be_res options

755aee449c6311518200c2f11c1aae329a19b038 02-Apr-2013 Pavel Březina <pbrezina@redhat.com>

refactor nested group processing: replace old code https://fedorahosted.org/sssd/ticket/1784

8c294c1cd4d721818a59684cf7f2b36123f79163 20-Mar-2013 Stephen Gallagher <sgallagh@redhat.com>

BUILD: Always run distcheck and RPM tests in /dev/shm Some of the tests (such as the sysdb tests) are highly I/O limited. By running them on a ramdisk, we can significantly speed up the test runs when doing a distcheck or RPM build. https://fedorahosted.org/sssd/ticket/1840

fae99bfe4bfc8b4a12e9c2a0ad01b3684c22f934 20-Mar-2013 Simo Sorce <simo@redhat.com>

ldap: Fallback option for rfc2307 schema Add option to fallback to fetch local users if rfc2307is being used. This is useful for cases where people added local users as LDAP members and rely on these group memberships to be maintained on the local host. Disabled by default as it violates identity domain separation. Ticket: https://fedorahosted.org/sssd/ticket/1020

c0bca1722d6f9dfb654ad78397be70f79ff39af1 19-Mar-2013 Jakub Hrozek <jhrozek@redhat.com>

Resolve GIDs in the simple access provider Changes the simple access provider's interface to be asynchronous. When the simple access provider encounters a group that has gid, but no meaningful name, it attempts to resolve the name using the be_file_account_request function. Some providers (like the AD provider) might perform initgroups without resolving the group names. In order for the simple access provider to work correctly, we need to resolve the groups before performing the access check. In AD provider, the situation is even more tricky b/c the groups HAVE name, but their name attribute is set to SID and they are set as non-POSIX

3a4186ae40d0c3b7be46a4c973166f6048fcfe38 18-Mar-2013 Lukas Slebodnik <lslebodn@redhat.com>

Fix sss_client breakage. Adding missing dependencies for linker. Missing dependency was introduced by commit 22d381367c27910fe82f476a76b9f4ede555e35a in changed file src/sss_client/nss_mc_common.c All function declaration for io.c was moved from util.h to separate file io.h, https://fedorahosted.org/sssd/ticket/1838

7c0f319813a13723ebe8dc85b004565b63d5e44d 13-Mar-2013 Lukas Slebodnik <lslebodn@redhat.com>

Removing unused header file providers.h Header file "providers.h" is not included in any other file and function "dp_process_init" declared in this header file has no implementation. Header file protos.h is not also included in any other file and even hole content is commented out.

22d381367c27910fe82f476a76b9f4ede555e35a 13-Mar-2013 Lukas Slebodnik <lslebodn@redhat.com>

Reuse sss_open_cloexec at other places in code. Functions open_cloexec and openat_cloexec were renamed with prefix "sss_" and moved to separete file. Replacing duplicated code of function sss_open_cloexec everywhere in the source code. https://fedorahosted.org/sssd/ticket/1794

8359bf07a2e6c0181251ce8d5d9160dc57546c55 13-Mar-2013 Stephen Gallagher <sgallagh@redhat.com>

BUILD: Fix up whitespace in Makefile.am

50fe3d79ab12b795a687b676761bef265701626a 11-Mar-2013 Stephen Gallagher <sgallagh@redhat.com>

BUILD: Fix cmocka detection We were not properly detecting that cmocka was unavailable. It was expecting an empty value and getting "no" instead. This patch corrects the expectation, so we will now skip building and running cmocka tests on platforms that do not have it available. Also, we were missing the cmocka header files in the distribution tarball, so 'make distcheck' was failing.

150b76e13b7c4f3ccf1d709bf517ca2af6b2c9a2 08-Mar-2013 Jakub Hrozek <jhrozek@redhat.com>

CMocka based test for the NSS responder

6a6a821866091e0f722808566c25b951aa346d7c 07-Mar-2013 Stephen Gallagher <sgallagh@redhat.com>

BUILD: Include build aliases in the tarball

8bcabb97d988d1602882a1f036aac2eaf5e09234 04-Mar-2013 Simo Sorce <simo@redhat.com>

Add SSSD specific error codes and definitions This code adds a new range of error codes specific to SSSD, It also provides helper functions to print out error defintions like you can do with system error messages and the strerror() function. The sss_strerror() function can accept both the new sssd errors and system errno_t errors falling back to the system strerror() if the error code provide is not a valid SSSD error code.

96453f402831275a39d5fb89c33c9776e148d03f 01-Mar-2013 Stephen Gallagher <sgallagh@redhat.com>

BUILD: Build shared components as an internal shared library There is a large amount of duplicated code being linked into multiple SSSD binaries. Instead of statically linking this code throughout the SSSD, we should instead create private shared libraries for them and drop this code on the system only once.

fa551077410019fb34460dc730950e93b62b2963 04-Feb-2013 Jakub Hrozek <jhrozek@redhat.com>

Don't use srcdir with tests Fixes build with automake 1.13 or newer.

8e5549e453558d4bebdec333a93e215d5d6ffaec 21-Jan-2013 Simo Sorce <simo@redhat.com>

Introduce be_req_terminate() helper Call it everywhere instead of directly dereferencing be_req->fn This is in preparation of making be_req opaque.

225d845476b6136be9b77f528ed986bba7a7f732 21-Jan-2013 Simo Sorce <simo@redhat.com>

Split simple_access_check function out Need to split out the function or new additions to the handler funtion will not allow simple access tests to compile anymore.

7a468783159880f81f7cd9270ee94bf0954d6a56 21-Jan-2013 Simo Sorce <simo@redhat.com>

Move ldap provider access functions It was confusing to see the ldap provider own handler mixed with the generic ldap access code used also by the ipa and ad providers. So move the ldap provider handler code in its own file.

2c0a971010596c122d7a0c0d76c8eb85f16f6d06 15-Jan-2013 Jakub Hrozek <jhrozek@redhat.com>

TOOLS: Refresh memcache after changes to local users and groups

543676afec3c08fdc0a5a794976adc8dfdca974b 15-Jan-2013 Jakub Hrozek <jhrozek@redhat.com>

TOOLS: Split querying nss responder into a separate function The tools query the responder in order to sync the memcache after performing changes to the local database. The functions will be reused by other tools so I split them into a separate functions.

82dc11348718bf8e2ff07da696f91f6703293c24 15-Jan-2013 Jakub Hrozek <jhrozek@redhat.com>

TOOLS: move memcache related functions to tools_mc_utils.c The upcoming patches will link only users of this file with client libs, so it's better to have it separate. There is no functional change in this patch

64af76e2bef2565caa9738f675c108a4b3789237 10-Jan-2013 Simo Sorce <simo@redhat.com>

Change pam data auth tokens. Use the new authtok abstraction and interfaces throught the code.

918b2a5a91f1c551d48f4bffed2a28c36fdb4be1 10-Jan-2013 Simo Sorce <simo@redhat.com>

Add authtok utility functions. These functions allow handling of auth tokens in a completely opaque way, with clear semantics and accessor fucntions that guarantee consistency, proper access to data and error conditions.

34f64327316a7dafbac593bd9e507aa628a3339b 08-Jan-2013 Sumit Bose <sbose@redhat.com>

Add tests for get_gids_from_pac()

e850be1ff2e13bba9812c94c3d102c0a0b570820 18-Dec-2012 Jakub Hrozek <jhrozek@redhat.com>

Add responder_sbus.h to noinst_HEADERS

a9eff330a7fbd231e8cc28a6828a1e5014ddb0d2 13-Dec-2012 Michal Zidek <mzidek@redhat.com>

tools: sss_userdel and groupdel remove entries from memory cache https://fedorahosted.org/sssd/ticket/1659

4f73493faddae72d4e5f5b072a14b30ce475cc9c 04-Dec-2012 Timo Aaltonen <timo.aaltonen@canonical.com>

link sss_ssh_authorizedkeys and sss_ssh_knownhostsproxy with -lpthread There used to be an overlinked dependency that's gone now, so to fix a build error add CLIENT_LIBS to sss_ssh_knownhostsproxy_LDFLAGS. v2: Fix sss_ssh_authorizedkeys linking as well.

42870c7ac3608ffc58f2c9524ad3dfc1401bc1aa 02-Dec-2012 Pavel Březina <pbrezina@redhat.com>

avoid versioning libsss_sudo

7452f1b637276ce582b120f8f5482ae7f3b6bd47 12-Nov-2012 Jakub Hrozek <jhrozek@redhat.com>

Include the auth_utils.h header in the distribution

0a55f903a1da319338fdcf147efa01ed22f9710d 06-Nov-2012 Michal Zidek <mzidek@redhat.com>

util: Added new file util_lock.c

dca03a97f4e1532ee2f2cbd26b1538ab6ccf18f7 26-Oct-2012 Sumit Bose <sbose@redhat.com>

krb5_child: send PAC to PAC responder If the authenticated user comes from a different realm the service ticket which was returned during the validation of the TGT is used to extract the PAC which is send to the pac responder for evaluation.

fc1a05ca545806ff784921c6751129c3d93d27af 12-Oct-2012 Jakub Hrozek <jhrozek@redhat.com>

Remove libsss_sudo.pc and move libsss_sudo.so to libsss_sudo

00516601e579f2ae4a287332966860cb0af152f9 01-Oct-2012 Stephen Gallagher <sgallagh@redhat.com>

BUILD: Include the patch file in the tarball

a3d176d116ceccd6a7547c128fab5df5cdd2c2b6 04-Sep-2012 Michal Zidek <mzidek@redhat.com>

Adding -std=gnu99 flag.

d60a79f0060764929037c18b0f75953a34f7a58e 28-Aug-2012 Jakub Hrozek <jhrozek@redhat.com>

RPM: Switch the default ccache location https://fedorahosted.org/sssd/ticket/1500

86b61156743b7ebdc049450a6f88452890fd9a61 27-Aug-2012 Jakub Hrozek <jhrozek@redhat.com>

Use PTHREAD_MUTEX_ROBUST to avoid deadlock in the client https://fedorahosted.org/sssd/ticket/1460

41be4e3976cf66823ad2c6880671ac7fbafdc640 23-Aug-2012 Pavel Březina <pbrezina@redhat.com>

Clean up cache on server reinitialization https://fedorahosted.org/sssd/ticket/734 We successfully detect when the server is reinitialized by testing the new lastUSN value. The maximum USN values are set to zero, but the current cache content remains. This patch removes records that were deleted from the server. It uses the following approach: 1. remove entryUSN attribute from all entries 2. run enumeration 3. remove records that doesn't have entryUSN attribute updated We don't need to do this for sudo rules, they will be refreshed automatically during next smart/full refresh, or when an expired rule is deleted.

60e51fd2764291df2332f36ff478777627d92b57 15-Aug-2012 Sumit Bose <sbose@redhat.com>

Add python bindings for murmurhash3

71e7918be3ca5d38794a16a17f6b4f19a24d51fc 03-Aug-2012 Pavel Březina <pbrezina@redhat.com>

tests: build sysdb ssh tests conditionally

7197ce636c2b92152f5f6180bef6bda3752d148d 01-Aug-2012 Jakub Hrozek <jhrozek@redhat.com>

Create a domain-realm mapping for krb5.conf to be included When new subdomains are discovered, the SSSD creates a file that includes the domain-realm mappings. This file can in turn be included in the krb5.conf using the includedir directive, such as: includedir /var/lib/sss/pubconf/realm_mappings

6ea6ec5cb7d9985e2730fb9d4657624d10aed4d8 01-Aug-2012 Nick Guay <nguay@redhat.com>

First-boot sss_seed tool

25f8fac2489fd209d603acb2b494f7c72968e9bb 01-Aug-2012 Michal Zidek <mzidek@redhat.com>

Added unit test for sysdb_ssh.c

300c772767c1b12077cac1d148ac89738b058f97 27-Jul-2012 Jan Zeleny <jzeleny@redhat.com>

Write SELinux config files in responder instead of PAM module

2de495aed26bf75a750a76ca73b9f85d341fe1c5 27-Jul-2012 Pavel Březina <pbrezina@redhat.com>

tests: allow changing cwd in all tests

38e2ec1c757955ab557fd95807afa58042d09482 27-Jul-2012 Jan Zeleny <jzeleny@redhat.com>

Renamed session provider to selinux provider

2d257ccf620ce1b611f89cec8f0a94c88c2f2881 10-Jul-2012 Sumit Bose <sbose@redhat.com>

pac responder: limit access by checking UIDs A check for allowed UIDs is added in the common responder code directly after accept(). If the platform does not support reading the UID of the peer but allowed UIDs are configured, access is denied. Currently only the PAC responder sets the allowed UIDs for a socket. The default is that only root is allowed to access the socket of the PAC responder. Fixes: https://fedorahosted.org/sssd/ticket/1382

03532fb1cbb7e8c1d5cf2e93aa3719f926631cab 06-Jul-2012 Stephen Gallagher <sgallagh@redhat.com>

AD: Add manpages and SSSDConfig entries

a4cce2c98eedecb5d3b47da62104634cae268434 06-Jul-2012 Stephen Gallagher <sgallagh@redhat.com>

AD: Add AD access-control provider This patch adds support for checking whether a user is expired or disabled in AD.

effcbdb12c7ef892f1fd92a745cb33a08ca4ba30 06-Jul-2012 Stephen Gallagher <sgallagh@redhat.com>

AD: Add AD identity provider This new identity provider takes advantage of existing code for the LDAP provider, but provides sensible defaults for operating against an Active Directory 2008 R2 or later server.

3441d0c2d11aea0c39b009751a1898333c009674 06-Jul-2012 Stephen Gallagher <sgallagh@redhat.com>

KRB5: Create a common init routine for krb5_child options This will reduce code duplication between the krb5, ipa and ad providers

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

sudo ldap provider: load host filter configuration on init We need to load host information during provider initialization. Currently it loads only values from configuration files, but it is implemented as an asynchrounous request as it will later try to autodetect these settings (which will need to contact DNS).

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

sudo ldap provider: add new timer API

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

sudo provider: remove old timer

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

sudo ldap provider: move async routines to sdap_async_sudo.c

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

sudo responder: discard in-memory cache

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

libsss_sudo: bump version to 2:0:1

e5e8252ec48bfdd4e7529debc705c8e090264b9a 25-Jun-2012 Sumit Bose <sbose@redhat.com>

Build pac responder tests only if pac responder is build

386a66b1aa18a176e6a06fa126556c9590c373b6 21-Jun-2012 Sumit Bose <sbose@redhat.com>

Add support for ID ranges

90fd1bbd6035cdab46faa3a695a2fb2be6508b17 21-Jun-2012 Sumit Bose <sbose@redhat.com>

PAC client: add krb5 authdata plugin

33f8decd07d4364a7bfbb051e8dc2da2424b0d01 21-Jun-2012 Jan Zeleny <jzeleny@redhat.com>

PAC responder: test suite

e3f0014bb64b7e93979948936cf93cf869d3dc44 21-Jun-2012 Jan Zeleny <jzeleny@redhat.com>

PAC responder: add some utility functions

b9e5bd09a5ff7009537a18914dbebcf10498f592 21-Jun-2012 Sumit Bose <sbose@redhat.com>

PAC responder: add basic infrastructure This adds only the basic outline of the PAC responder, it won't support any operations, it will just start and initialize itself.

fd8595874aa06c8057740001ec465ba76b4af142 14-Jun-2012 Jakub Hrozek <jhrozek@redhat.com>

Add a credential cache back end structure To be able to add support for new credential cache types easily, this patch creates a new structure sss_krb5_cc_be that defines common operations with a credential cache, such as create, check if used or remove.

f232789430a080384188d5da89b19d874cf17513 14-Jun-2012 Jakub Hrozek <jhrozek@redhat.com>

Add a krb5_child test tool https://fedorahosted.org/sssd/ticket/1127

d42d371c00c83ae44b9d1c3e88ecbe0e01b112e6 13-Jun-2012 Stephen Gallagher <sgallagh@redhat.com>

LDAP: Add support for AD chain matching extension in initgroups

97ae45d61d921f07e812620e0156aee02b7b83a7 13-Jun-2012 Stephen Gallagher <sgallagh@redhat.com>

LDAP: Add support for AD chain matching extension in group lookups

f1ce53a3b5656361557f80f61dfd42a371230c65 31-May-2012 Stephen Gallagher <sgallagh@redhat.com>

SSSDConfig: Make default config and schema file locations configurable https://fedorahosted.org/sssd/ticket/1008

1467daed400d6c186bd0c99c057c42e764309ff3 31-May-2012 Stephen Gallagher <sgallagh@redhat.com>

SSSDConfig: Make SSSDConfig a package We were polluting the primary Python space with several dependencies. We will now install them their own directory/module.

f39b4b2fd57c0ea4cf2f90b511f2cbce37723ef0 14-May-2012 Sumit Bose <sbose@redhat.com>

Fix libsss_hbac library version

c51a204a40b8f85f7f525edb3e24520916d8b9c7 14-May-2012 Sumit Bose <sbose@redhat.com>

Rename struct dom_sid to struct sss_dom_sid To avoid conflicts with struct dom_sid used by samba the sss_ prefix is added to the struct used by libsss_idmap.

d248b68f90e60a1dd1cca1f694cc51bc3007c8b1 11-May-2012 Jan Engelhardt <jengelh@inai.de>

build: resolve link failure libtool: link: gcc -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -fno-strict-aliasing -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wl,--version-script -Wl,./src/providers/sssd_be.exports -o sssd_be src/providers/data_provider_be.o src/providers/data_provider_fo.o src/providers/data_provider_opts.o src/providers/data_provider_callbacks.o src/providers/fail_over.o src/resolv/async_resolv.o -Wl,--export-dynamic -lpam -lcares ./.libs/libsss_util.a -ltevent -ltalloc -lpopt -lldb -ldbus-1 -lpcre -lini_config -lcollection -ldhash -llber -lldap -ltdb -lunistring -lcrypto /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: src/providers/data_provider_be.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line /lib64/libdl.so.2: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [sssd_be] Error 1 Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

ae8d047122c7ba8123f72b2eac68944868ac37d4 10-May-2012 Stephen Gallagher <sgallagh@redhat.com>

LDAP: Handle very large Active Directory groups Active Directory 2008R2 allows only 1500 group members to be retrieved in a single lookup. However, when we hit such a situation, we can take advantage of the ASQ lookups, which are not similarly limited. With this patch, we will add any members found by ASQ that were not found by the initial lookup so we will end with a complete group listing. https://fedorahosted.org/sssd/ticket/783

505e75ba28b42bb3de7a6d55de825091b70cc2b2 03-May-2012 Stephen Gallagher <sgallagh@redhat.com>

LDAP: Add helper routines for ID-mapping

817b1bcafff27cc67630dd0cbd36df708c05fccc 03-May-2012 Stephen Gallagher <sgallagh@redhat.com>

SYSDB: Add sysdb routines for ID-mapping

b42b5d5aaf4da165582e73ad985fdff6e34e61e4 03-May-2012 Jakub Hrozek <jhrozek@redhat.com>

SSH: Add dp_get_host_send to common responder code Instead of using account_info request, creates a new ssh specific request. This improves code readability and will make the code more flexible in the future. https://fedorahosted.org/sssd/ticket/1176

b6dfbf81c61d4431aaa81687ec53e892f8b71edb 01-May-2012 Sumit Bose <sbose@redhat.com>

Allow different SID representations in libidmap Besides as strings it is now possible to use binary SIDs or a struct containing all SID information. Functions to convert between these formats are added as well.

b35f20cd8ecdc8308a3201e55752fb0443ec6ae4 24-Apr-2012 Jan Cholasta <jcholast@redhat.com>

UTIL: Add HMAC-SHA-1 function

881c4ba834b23ae651ac01db667801f314eb0a5d 24-Apr-2012 Jan Zeleny <jzeleny@redhat.com>

Add ID operations in subdomains

36a12aea020a935ffa40505fa02860c3d921ad0c 24-Apr-2012 Sumit Bose <sbose@redhat.com>

Add s2n extended operation

29be7d76c949b82350c7603cfd362a1fcb47eb1b 24-Apr-2012 Jan Zeleny <jzeleny@redhat.com>

Moved expand_homedir_template() from NSS responder to utility code

81165faf5d951aca69f410713730c26ff048ec44 24-Apr-2012 Sumit Bose <sbose@redhat.com>

IPA: Add get-domains target

c0f9698cd951b7223f251ff2511c4b22a6e4ba60 24-Apr-2012 Jan Zeleny <jzeleny@redhat.com>

Responder part of the subdomain retrieval work

20d0bc6d587f346238062df4da5edfde815e59b1 24-Apr-2012 Jan Zeleny <jzeleny@redhat.com>

Add some utility functions for subdomains

e76d78338026fa47dca32eaf7f5c15eabb1b951a 24-Apr-2012 Jan Zeleny <jzeleny@redhat.com>

Sysdb routines for subdomains

2b7349575770521243a34611e97d73790946a961 20-Apr-2012 Stephen Gallagher <sgallagh@redhat.com>

Fix linker issue with pam_sss

374bf54785365273b20690bd3792c25a44738041 20-Apr-2012 Pavel Březina <pbrezina@redhat.com>

Install and uninstall all documentation Every directory listed in SSSD_DOCS in Makefile.am will be installed as documentation.

9d7d4458d94d0aac0a7edf999368eb18f89cb76a 20-Apr-2012 Jakub Hrozek <jhrozek@redhat.com>

Convert read and write operations to sss_atomic_read https://fedorahosted.org/sssd/ticket/1209

9959c512ac3ba36f7a0db7614f0357ce0bae748f 20-Apr-2012 Jakub Hrozek <jhrozek@redhat.com>

Move atomic io function to a separate module We'll be using it on various places of the SSSD. The function is in its own file to allow using just the one piece without having to drag in the whole util.c module.

65e8f538ad35ba7d86cd9e60a3d86aec34537027 28-Mar-2012 Stephen Gallagher <sgallagh@redhat.com>

Put dp_option maps in their own file There is no functional change due to this patch.

92ae9d2b909d0fd4a522a270157926878b5d0862 28-Mar-2012 Stephen Gallagher <sgallagh@redhat.com>

BUILDSYS: Create common libs for LDAP and KRB5 sources This will eliminate the need for automake to build these files for each backend that consumes LDAP and KRB5 functionality (currently 'ldap', 'krb5' and 'ipa'; soon to include 'ad')

a6098862048d4bb469130b9ff21be3020d6f2c54 27-Mar-2012 Sumit Bose <sbose@redhat.com>

Add idmap library

10eae23e2483733d4ca3c21f15b5bdb3f04c9839 19-Mar-2012 Simo Sorce <simo@redhat.com>

sss_client: shared memory cache group map support

1171986bdc3011555c5b62a9d9ee9f7481f48cdc 19-Mar-2012 Simo Sorce <simo@redhat.com>

sss_client: shared memory cache passwd map support

5f216c753dbd2f2b25a011c5f705ee4f8ad924e6 19-Mar-2012 Simo Sorce <simo@redhat.com>

sss_client: Add common shared memory cache utils

eb2e21b764d03544d8161e9956d7f70b07b75f77 19-Mar-2012 Simo Sorce <simo@redhat.com>

nsssrv: shared memory cache server initialization

5f90993426fa2bdc3b3d994c9e85e0805bb92bbc 19-Mar-2012 Simo Sorce <simo@redhat.com>

util: Helper headers for shared memory cache

bd03e67c9d2fc4ad0275e7a573385ee5b7b9307a 15-Mar-2012 Jan Cholasta <jcholast@redhat.com>

SSH: Allow clients to explicitly specify host alias This change removes the need to canonicalize host names on the responder side - the relevant code was removed.

d10350e1854cd2156567f058f5a76041994e7f2b 09-Mar-2012 Stephen Gallagher <sgallagh@redhat.com>

IPA: Check nsAccountLock during PAM_ACCT_MGMT https://fedorahosted.org/sssd/ticket/1227

cc751fbea9f05c7ce151f4c82afb6585d4b846bb 08-Mar-2012 Stephen Gallagher <sgallagh@redhat.com>

Properly terminate GIT_CHECKOUT Accidentally removed the endif in the patch removing 'make experimental-rpms'

a098b26a2a902cfb2968ca44604f61bf000d8413 08-Mar-2012 Stephen Gallagher <sgallagh@redhat.com>

Build experimental features by default in RPMs

b97595ae059c69b1960a6e7e56d74660388a683b 29-Feb-2012 Jan Zeleny <jzeleny@redhat.com>

Fix the script path

bbb85a2014a200c7a8088cf33a1ddaff75d6655d 29-Feb-2012 Stephen Gallagher <sgallagh@redhat.com>

Fix typo in script name

69437be53a76d2a73b24a97cacd85ad1c0ed103b 28-Feb-2012 Stephen Gallagher <sgallagh@redhat.com>

Include the debug_level upgrade tool in the tarball

a836d70ad64013ec1d407388a9416ecb3d1cc992 27-Feb-2012 Jan Cholasta <jcholast@redhat.com>

SSH: Replace blocking getaddrinfo call in the responder with asynchronous resolver code

748ba184db97b7534254f97018fa04e8aa458fae 27-Feb-2012 Jan Cholasta <jcholast@redhat.com>

SSH: Refactor responder and client common code

8d821f0508f495deb376617c165cbcbf396a058a 23-Feb-2012 Simo Sorce <simo@redhat.com>

pam_sss: keep selinux optional Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

620033ce66f4827be9d508c77483fab0270d9869 07-Feb-2012 Jakub Hrozek <jhrozek@redhat.com>

AUTOFS: IPA provider

e124844907ed6973915e4d56f5442ecd07535a12 07-Feb-2012 Jakub Hrozek <jhrozek@redhat.com>

Make sudo installation path configurable, install into libdir by default

9a3e40dc49c1e38bf58e45be5adff37615f3910b 07-Feb-2012 Jan Cholasta <jcholast@redhat.com>

SSH: OpenSSH known_hosts client

558998ce664055a75595371118f818084d8f2b23 07-Feb-2012 Jan Cholasta <jcholast@redhat.com>

SSH: OpenSSH authorized_keys client

347f7c4d1e8e83fc7ffcaf9524a67e8b3ad5d7c5 07-Feb-2012 Jan Cholasta <jcholast@redhat.com>

SSH: Common client code

e7311aec8d691e5427317442387af1bc8fff3742 07-Feb-2012 Jan Cholasta <jcholast@redhat.com>

SSH: Responder

1a7d1977037864e52858058777af8ff8401547dd 07-Feb-2012 Jan Cholasta <jcholast@redhat.com>

IPA: Add host info handler

c7919a4fe41133cc466aa3d9431bfceee5784e7b 07-Feb-2012 Jan Cholasta <jcholast@redhat.com>

UTIL: Provide base64 encoding and decoding functions

1a853121ca2ba8ede6df429ee76942131ffb0f65 06-Feb-2012 Jan Zeleny <jzeleny@redhat.com>

Session target in IPA provider

ad07ed37b6b51ef134d4524edaf2259e19ac984f 06-Feb-2012 Jan Zeleny <jzeleny@redhat.com>

Separate the host-retrieval code from IPA HBAC to common IPA code

264bbfed9f2cdb05d9e017e9e3307f37edb4c1da 06-Feb-2012 Jan Zeleny <jzeleny@redhat.com>

SELinux support in PAM module

4c11f752e1f10cf5740d53a3206bb795e9e34fe8 06-Feb-2012 Jan Zeleny <jzeleny@redhat.com>

Added some SELinux-related sysdb routines

823a5b3f4375f12b6edae4dd5169ee01771baebe 06-Feb-2012 Jan Zeleny <jzeleny@redhat.com>

Added some SELinux-related utility functions

213ce2a78b1abe3921d8dc13c949a28130d00aec 06-Feb-2012 Jan Zeleny <jzeleny@redhat.com>

Add support for generic IPA config retrieval

71ad247500b417836a1a2edec257a4433a7c415f 06-Feb-2012 Jan Zeleny <jzeleny@redhat.com>

Implemented support for multiple search bases in HBAC rules and services

cc84fd46f356c4a36a721ab135a33ec77c93e34d 06-Feb-2012 Jakub Hrozek <jhrozek@redhat.com>

AUTOFS: LDAP provider

9e80079370ff3b943832adc3c5ef430e64be0a0c 06-Feb-2012 Jakub Hrozek <jhrozek@redhat.com>

AUTOFS: responder

6e8238868a4d17030bb4f01494961d0354a953bf 06-Feb-2012 Jakub Hrozek <jhrozek@redhat.com>

AUTOFS: a command-line test client A very simply binary that can be used to test getting data from the library via SSSD in pretty much the same way SSSD would. A required positional parameter specifies the map name and the tool would print out all the key/value pairs using _sss_getautomntent_r(). You can also specify -n to query a specific key using _sss_getautomntbyname_r().

2cbdd12983eb85eddb90f64cfafb24eae5b448f4 06-Feb-2012 Jakub Hrozek <jhrozek@redhat.com>

AUTOFS: a client library This is the library the autofs client is using. automounter dlopen()s the library so there is no header file, no pkgconfig file and the library is in the libsss_autofs package, not in -devel. The library provides the following interface: * _sss_setautomntent() - select the map for processing * _sss_getautomntent_r() - iterates through key/value pairs in the selected map. The key is usually the mount point, the value is mount information (server:/export) * _sss_getautomntbyname_r() - returns value for a specific key. * _sss_endautomntent() deselect a map, clean up

1f1e6cbc59868f06dee3ab4b3df660fcb77ce1c8 06-Feb-2012 Jakub Hrozek <jhrozek@redhat.com>

AUTOFS: sysdb interface

c636315472e4f87313af7be30b7fbcad4b8ca8a4 04-Feb-2012 Stephen Gallagher <sgallagh@redhat.com>

Build all experimental features during 'make distcheck'

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

ca73004be606fe1a3003f2bc82eede4945fd0f08 31-Jan-2012 Stephen Gallagher <sgallagh@redhat.com>

IPA: Add support for services lookups (non-enum)

796463906a54e259bd5b582ce84af4297a58eafc 31-Jan-2012 Stephen Gallagher <sgallagh@redhat.com>

LDAP: Add support for service lookups (non-enum)

f660877b38e563c4aa0cb1431624069808873fec 31-Jan-2012 Jakub Hrozek <jhrozek@redhat.com>

SUDO: Provide documentation for the SUDO API

2a552e43581c74f51205c7141ec9f6e9542509f8 31-Jan-2012 Stephen Gallagher <sgallagh@redhat.com>

SSSDConfigAPI: Move sssd.api.* to /usr/share/sssd https://fedorahosted.org/sssd/ticket/1158

aec5785126354bd8b192f63fe04ea08dae9c0705 27-Jan-2012 Stephen Gallagher <sgallagh@redhat.com>

PROXY: add support for service lookups (non-enumeration)

8c3a4809b3420657289b42f028a1c9019b112991 27-Jan-2012 Stephen Gallagher <sgallagh@redhat.com>

NSS: Add getservbyname and getservbyport support to the NSS Responder

cc7ee57f3adada83ac657e69636ca995d5b6948e 27-Jan-2012 Stephen Gallagher <sgallagh@redhat.com>

NSS: Add client support for services (non-enumeration)

4c1bf6607060cea867fccf667063c028dfd51e96 27-Jan-2012 Stephen Gallagher <sgallagh@redhat.com>

SYSDB: Add sysdb routines for manipulating service entries

dfea410202f366924f32662a91331660f1c143bb 18-Jan-2012 Jakub Hrozek <jhrozek@redhat.com>

SUDO: include the sources in the IPA provider, too

78e5b91e6b22efbcd0621144b104ac9dfd487e5b 17-Jan-2012 Jakub Hrozek <jhrozek@redhat.com>

Add a new Makefile target to build RPMs with the experimental flag

70e59ed31c5a9c9ed02d9065ddf92be87c887efb 17-Jan-2012 Jakub Hrozek <jhrozek@redhat.com>

Export libsss_sudo as a separate package

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

SUDO Integration - periodical update of rules in data provider https://fedorahosted.org/sssd/ticket/1110 Adds new configuration options: - ldap_sudo_refresh_enabled - enable/disable periodical updates - ldap_sudo_refresh_timeout - rules timeout (refresh period)

5a70b84cb66fb8c7a3fce0e3f2e4b61e0b2ea9d4 09-Jan-2012 Simo Sorce <simo@redhat.com>

util: add murmurhash3 hash function

d844aab866ae237844360cea70e2dccdc90c783d 20-Dec-2011 Stephen Gallagher <sgallagh@redhat.com>

PAM: make initgroups timeout work across multiple clients Instead of timing out the initgroups lookup on a per-cctx basis, we will maintain a hash table of recently-seen users and use this instead. This will allow SSSD to handle user's logging into multiple services simultaneously more graciously, as well as playing nicer with SSH (which makes calls to PAM both before and after a fork). https://fedorahosted.org/sssd/ticket/1063

87c07559af5cfcd2752295ef7c425bd3205f426f 19-Dec-2011 Stephen Gallagher <sgallagh@redhat.com>

Move child_common routines to util

6a9bdb6289bb374d203861cef16f312185725cbc 19-Dec-2011 Pavel Zuna <pzuna@redhat.com>

Add common SIGCHLD handling for providers.

f8c829e72968b574e1c9bda96f4d5f206622358f 16-Dec-2011 Pavel Březina <pbrezina@redhat.com>

SUDO Integration - pseudo client for testing

2827b0d03f7b6bafa504d22a5d7ca39cbda048b3 16-Dec-2011 Pavel Březina <pbrezina@redhat.com>

SUDO Integration - responder

e9eeb4302e0e426c6cc1a4e65b95a6f7066e80b9 16-Dec-2011 Pavel Březina <pbrezina@redhat.com>

SUDO integration - LDAP provider

4af1d1869d659fec84c518c26844132fa1df8f64 16-Dec-2011 Jakub Hrozek <jhrozek@redhat.com>

SUDO Integration - LDAP provider - save sudo rules functions

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

SUDO Integration - sysdb interface

0ef783e186ef1c9f60e61a4e8e54c44cb366fdfe 16-Dec-2011 Pavel Březina <pbrezina@redhat.com>

SUDO integration - client common interface

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

sss_utf8_tolower utility function+unit tests

b32159300fea63222d8dd9200ed634087704ea74 05-Dec-2011 Stephen Gallagher <sgallagh@redhat.com>

Allow using Glib for UTF8 support

be1ef1c62ad13612be5e1f879476c24452a5d6d0 28-Nov-2011 Stephen Gallagher <sgallagh@redhat.com>

Add -fno-strict-aliasing

3a62a99faf8e12965100d0b26fc9e07752bd3e2d 23-Nov-2011 Stephen Gallagher <sgallagh@redhat.com>

Fix broken build due to commit of IPA netgroup support

8b1f2574ce7a964965a18ab047ab09c4694380c4 23-Nov-2011 Jan Zeleny <jzeleny@redhat.com>

Added IPA account info handler Currently it is only handling netgroups by itself, other requests are forwarded to LDAP provider.

e526b608657f229f7486b3aa8c53b0f2c53b42b1 23-Nov-2011 Jan Zeleny <jzeleny@redhat.com>

Added support for fetching netgroups in IPA provider

e369fc08906383e6d5c39832f31bb6600a33f887 22-Nov-2011 Simo Sorce <ssorce@redhat.com>

Set more strict permissions on keyring We want to confine access to the keyring to the current process and not let root easily peek into the keyring contents.

872f2d32d979a1dd2145667487f170fec8b5189a 18-Nov-2011 Stephen Gallagher <sgallagh@redhat.com>

RESPONDER: Ensure that all input strings are valid UTF-8

8b1f525acd20f36c836e827de3c251088961c5d9 14-Oct-2011 Stephen Gallagher <sgallagh@redhat.com>

BUILDSYS: Fix --without-manpages We weren't honoring the --without-manpages option, and this was causing builds to break. Note: 'make dist[check]' will not work if you have configured with --without-manpages because it will not be able to pre-generate the translation files necessary for tarball release.

c2352a73f52f600d95966ebe0b0819649ba923fa 07-Oct-2011 Stephen Gallagher <sgallagh@redhat.com>

SYSDB: New source file for sysdb upgrade routines

8782e92079a2842955e04392d20605453de6d567 08-Sep-2011 Stephen Gallagher <sgallagh@redhat.com>

Improve documentation of libipa_hbac

f1828234a850dd28465425248a83a993f262918f 06-Sep-2011 Pavel Březina <pbrezina@redhat.com>

sss_debuglevel - change the debug levels on the fly https://fedorahosted.org/sssd/ticket/950

4b6a0d0b3d42e5fdb457f47d9adfa5e66b160256 02-Sep-2011 Stephen Gallagher <sgallagh@redhat.com>

Add option to specify the kerberos replay cache dir Adds a configure option to set the distribution default as well as an sssd.conf option to override it. https://fedorahosted.org/sssd/ticket/980

fe60346714a73ac3987f786731389320633dd245 25-Aug-2011 Pavel Březina <pbrezina@redhat.com>

New DEBUG facility - unit tests https://fedorahosted.org/sssd/ticket/925

f26c954658dfd7461f290f0b5d924951a6db219a 15-Aug-2011 Jan Zeleny <jzeleny@redhat.com>

sdap_async_accounts.c split The file has been split in three: sdap_async_users.c sdap_async_groups.c sdap_async_initgroups.c https://fedorahosted.org/sssd/ticket/864

8a07521b413a3b5879f824e1872c5770c92ee5c0 08-Aug-2011 Stephen Gallagher <sgallagh@redhat.com>

Rename sssd.conf to sssd-example.conf This file should not be installed by default. It leads to user confusion. We will instead install it as documentation. Fix incorrect example of entry_cache_nowait_percentage

a72e9289fe001c85a17acd667ca31d692fd99605 01-Aug-2011 Stephen Gallagher <sgallagh@redhat.com>

Add rule validator to libipa_hbac https://fedorahosted.org/sssd/ticket/943

826937ebae068e2ebe59dd37c5f12331f09fe3b9 29-Jul-2011 Stephen Gallagher <sgallagh@redhat.com>

libipa_hbac: Support case-insensitive comparisons with UTF8

72e60fd4eabcfbcdbfe01e8c38b94052bc6c2067 13-Jul-2011 Jakub Hrozek <jhrozek@redhat.com>

Fix python HBAC bindings for python <= 2.4 Several parts of the HBAC python bindings did not work with old Python versions, such as the one shipped in RHEL5. The changes include: * a compatibility wrapper around python set object * PyModule_AddIntMacro compat macro * Py_ssize_t compat definition * Do not use PyUnicode_FromFormat * several function prototypes and structures used to have "char arguments where they have "const char *" in recent versions. This caused compilation warnings this patch mitigates by using the discard_const hack on python 2.4

667db40da4db362d7ca0a1f7f1c4ba40fb71795a 08-Jul-2011 Jakub Hrozek <jhrozek@redhat.com>

Provide python bindings for the HBAC evaluator library

32a5516cc2822cf6ad9950278e3c9701a9389bb4 08-Jul-2011 Stephen Gallagher <sgallagh@redhat.com>

Add new HBAC lookup and evaluation routines

e134a6af42102c8d865e82bf89e0b8c5a40fb5fa 08-Jul-2011 Stephen Gallagher <sgallagh@redhat.com>

Add helper functions for looking up HBAC rule components

4dd615c01357b8715711aad6820ba9595d3ad377 08-Jul-2011 Stephen Gallagher <sgallagh@redhat.com>

Add HBAC evaluator and tests

c355f8df3eabf3c59af3a506fbffb8b0e4ff9fb7 15-Jun-2011 Sumit Bose <sbose@redhat.com>

Add missing libsss_util to proxy provider

fe2091327ff44f80d6681c261494e4432404e9ba 23-May-2011 Stephen Gallagher <sgallagh@redhat.com>

Build sssd utils as a libtool helper library This will speed up the build, as we are not recompiling the same sources multiple times for different binaries. These objects will now be built once and then statically linked in.

e92ecf948387d1687a5e772ac86e606b1b6af957 23-May-2011 Stephen Gallagher <sgallagh@redhat.com>

Build SSSD plugins without a version number The version is both fake and unused, so we'll stop creating the versioned file and use only the unversioned .so. This is safe to do for now because all of the plugins are built at the same time as the interface.

bfbf5cb0f00c60c0f000f56c282377b13b9a89ab 06-May-2011 Sumit Bose <sbose@redhat.com>

Add support for openldap24 package on RHEL 5.7

c737e1444fb186e349e59bfa9dac4995b720b4b1 04-May-2011 Jan Zeleny <jzeleny@redhat.com>

Cache cleaning tool

2a5790216f57e9bdfb2930d52860bb5300366536 12-Apr-2011 Jakub Hrozek <jhrozek@redhat.com>

Provide a configuration option to use systemd unit file https://fedorahosted.org/sssd/ticket/837

21f28bdbab10881b9fb0b890dfa15af429326606 11-Feb-2011 Sumit Bose <sbose@redhat.com>

Make 'make check' look nice again With current libldb releases 'make check' will print a lot of 'unable to dlopen' messages although the test will succeed. This patch place the memberof module into a directory of its own to avoid these messages. Additionally this patch introduces TESTS_ENVIRONMENT which allows us to remove the SYSDB_TEST preprocessor definition.

23e8d84320ae8b76d244764c02e44036e96cd4df 11-Feb-2011 Stephen Gallagher <sgallagh@redhat.com>

Fix module registration with newer LDB libraries.

948c021d50ce26e5935f4909ef7d4c61d28b02b5 23-Dec-2010 Sumit Bose <sbose@redhat.com>

Build and install translated man pages by default

6f51c802311fd81a409a26763ed45b28a3234d0d 22-Dec-2010 Jakub Hrozek <jhrozek@redhat.com>

Make manual pages translatable Utilizes PO4A to extract translatable strings from Docbook XML sources and allows translators to submit ordinary .PO files. PO4A then generates translated Docbook documents that can be used to generate translated end user documentation. https://fedorahosted.org/sssd/ticket/297

7d436b1bd6bcca29aa9874adc11bdfb862139cd8 20-Dec-2010 Sumit Bose <sbose@redhat.com>

Serialize requests of the same user in the krb5 provider

1ce240367a2144500187ccd3c0d32c975d8d346a 08-Dec-2010 Sumit Bose <sbose@redhat.com>

Bye, bye, ipa_timerules It was decided that IPA HBAC will move to a different format to specify time ranges in access control rules. The evaluation based on the old format is not needed anymore.

5843ad321944a028f6dee7e1fd4f9381c4953d07 07-Dec-2010 Sumit Bose <sbose@redhat.com>

Add support for FAST in krb5 provider

52e0894fd65bff4715c88330eb62b28e1635228f 06-Dec-2010 Stephen Gallagher <sgallagh@redhat.com>

Make sure that sss_obfuscate installs as executable

f3f9ce8024d7610439d6c70ddafab1ab025cf8a8 03-Dec-2010 Sumit Bose <sbose@redhat.com>

Add support for automatic Kerberos ticket renewal

c8b8901b05da9e31dba320f305ec20301e928cfb 03-Dec-2010 Sumit Bose <sbose@redhat.com>

Add krb5_renewable_lifetime option

4b0309363dbfb9a1409e082b3a84f17b53a751c1 24-Nov-2010 Stephen Gallagher <sgallagh@redhat.com>

Print correct error messages for dp_err_to_string() All errnum values passed into this function throughout the code are PAM error codes, but we were passing them through strerror() to print them, which is only meaningful for ERRNO error codes. This patch changes dp_err_to_string() to use pam_strerror() and renames it to dp_pam_err_to_string() for clarity. https://fedorahosted.org/sssd/ticket/636

adc4351a04cef89ced2dbb240180e5d00fd8dd3c 15-Nov-2010 Stephen Gallagher <sgallagh@redhat.com>

Sanitize search filters in memberOf plugin

b87233035e26cee919dcf46adaec29ba7fdaa51e 04-Nov-2010 Sumit Bose <sbose@redhat.com>

Make handle_child_* request public I took the opportunity to move everything related to the handling of the krb5_child into a separate file and cleaned the interfaces and related structures a bit.

1e29e68388c2e9c5da9cb0afe997bc1b4e6933be 04-Nov-2010 Sumit Bose <sbose@redhat.com>

Add infrastructure for Kerberos access provider

580374daba2ab2c6075a7d0de9512abff133e2e9 26-Oct-2010 Jakub Hrozek <jhrozek@redhat.com>

Always use uint32_t for UID/GID numbers

13147b598a8409c338abb9472e74bbd606f224bd 26-Oct-2010 Stephen Gallagher <sgallagh@redhat.com>

Improve versioning for automated builds Also changes 'make srpms' and 'make prerelease-srpms' to 'make srpm' and 'make prerelease-srpm', as we are only building one SRPM.

04feeade1f6259368a6b23c6b3ecbad261161659 25-Oct-2010 Sumit Bose <sbose@redhat.com>

Implement netgroups for proxy provider

8715fcb39bd8086cb59d978e9a6ae18aaae1f864 19-Oct-2010 Stephen Gallagher <sgallagh@redhat.com>

Write log opening failures to the syslog If there is a problem with reopening the logs, it can be an audit trail issue.

1b02da77970e5a2a50081ceae048ff09e067c470 18-Oct-2010 Stephen Gallagher <sgallagh@redhat.com>

Fix 'make distcheck' for XML documentation A missing $(srcdir) variable was preventing 'make distcheck' from working if run from a parallel build directory.

15b266d9f14dad26da8678a79019749d0f69532e 13-Oct-2010 Stephen Gallagher <sgallagh@redhat.com>

Rename upgrade_config.py and build it properly Previously, we were just copying the script into the libexec dir during installation. However, this causes problems for packaging multilib on several distributions. https://fedorahosted.org/sssd/ticket/641

619bd403265ce0880989ba6f8324b010949851bc 13-Oct-2010 Sumit Bose <sbose@redhat.com>

Implement netgroup support for LDAP provider

ef39c0adcb61b16f9edc7beb4cdc8f3b0d5a8f15 13-Oct-2010 Stephen Gallagher <sgallagh@redhat.com>

Add netgroup support to the NSS responder

f128b7b865062da662127712935dcc58bd022384 13-Oct-2010 Stephen Gallagher <sgallagh@redhat.com>

Add support for netgroups to NSS sss_client

f1ac7d7859b26f0f36f5e8ffacda609f8ece80e5 13-Oct-2010 Stephen Gallagher <sgallagh@redhat.com>

Rename group.c and passwd.c for clarity Prefixing group.c and passwd.c with "nss_" similar to the way the PAM client sources are prefixed with "pam_"

93109c5f1d85c028ce5cf6e31e2249ca90a7f746 13-Oct-2010 Jakub Hrozek <jhrozek@redhat.com>

Initialize kerberos service for GSSAPI

8cdb7217d221a54feaa7a1f967404c199ae541e5 13-Oct-2010 Sumit Bose <sbose@redhat.com>

Remove unused defines

f0e068c0cee13eea020ab34304b7995849603dda 13-Oct-2010 Sumit Bose <sbose@redhat.com>

Distribute XML sources instead of man-pages

3b1df539835367cb81cd5ff0f9959947d5642e55 09-Oct-2010 Stephen Gallagher <sgallagh@redhat.com>

Add common hash table setup sss_hash_create() produces a dhash table living in the talloc hierarchy.

6480abbd1bba71efa8a834fada6505d1767fabfc 15-Sep-2010 Jakub Hrozek <jhrozek@redhat.com>

Revert "Make ldap bind asynchronous" This reverts 56d8d19ac9d857580a233d8264e851883b883c67

ea38da18fdeff89c9b3241d39d66f82a32113416 15-Sep-2010 Stephen Gallagher <sgallagh@redhat.com>

Remove generated manpages when performing "make clean" Fixes https://fedorahosted.org/sssd/ticket/614

88aeed9a31b734a92630d5e881c960c5f77ba0ce 08-Sep-2010 Jakub Hrozek <jhrozek@redhat.com>

Deobfuscate password in back ends When obfuscated password is used in config file, the LDAP backend converts it back to clear text and uses it to authenticate to the server.

530ba03ecabb472f17d5d1ab546aec9390492de1 08-Sep-2010 Jakub Hrozek <jhrozek@redhat.com>

sss_obfuscate tool A tool to add obfuscated passwords into the SSSD config file

2e6087c6cc903d5164b9a1d5e3d791fd046001d9 08-Sep-2010 Jakub Hrozek <jhrozek@redhat.com>

Fix pysss linking

69aaef8719c5cf33ed1c4090fa313ba281bf8a02 08-Sep-2010 Jakub Hrozek <jhrozek@redhat.com>

Password obfuscation utility functions Adds two utility functions to obfuscate a password and inverse to extract the cleartext password back. So far, only NSS-based implementation is provided.

3b08dec5ee634f83ee18e1753d5ffe0ac5e3c458 08-Sep-2010 Jakub Hrozek <jhrozek@redhat.com>

Move crypto functions into its own subdir A refactoring patch that creates a common util/crypto subdir with per-implementation subdirectories for each underlying crypto library supported by SSSD.

11cfa5797768d920592901bfd9f1df7f240ef0a5 02-Sep-2010 Maxim <kolmax94@gmail.com>

Remove useless /etc/dbus-1/system.d directory from installation Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

d921c1eba437662437847279f251a0a5d8f70127 02-Sep-2010 Maxim <kolmax94@gmail.com>

Add custom pam module dir Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

0d7e647da737b71a7dbbe0bb5f94af18017e5aa9 02-Sep-2010 Maxim <kolmax94@gmail.com>

Add gentoo distrubutions Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

56d8d19ac9d857580a233d8264e851883b883c67 02-Sep-2010 Martin Nagy <mnagy@redhat.com>

Make ldap bind asynchronous Every ldap function that could possibly create a new connection is now wrapped in a tevent_req. If the connection is created, we will call the function again after the socket is ready for writing.

bf5a808fa92007c325c3996e79694badfab201d4 23-Aug-2010 Stephen Gallagher <sgallagh@redhat.com>

Don't build SSSDConfig API when configured with --without-python-bindings

126c9338cf12a3e4404c36bbe4ec14b18f23537c 23-Aug-2010 Maxim <kolmax94@gmail.com>

Fix building sssd

551aa6c36797ed720487f5974dcadabf19e6ff9f 19-Aug-2010 Stephen Gallagher <sgallagh@redhat.com>

Rewrite toplevel Makefile There is no longer a need to have nested Makefiles and configure scripts. This patch combines the src/ Makefile and configure.ac into the root.

ad42d90b7e23978b62e36d6885d5fea0a105d6d0 19-Aug-2010 Stephen Gallagher <sgallagh@redhat.com>

Remove common directory All files formerly in common are now being built individually out of the ding-libs repository. git clone git://git.fedorahosted.org/git/ding-libs.git

Makefile.am common/COPYING common/COPYING.LESSER common/Makefile.am common/README common/collection/COPYING common/collection/COPYING.LESSER common/collection/Makefile.am common/collection/collection.c common/collection/collection.cfg.doxy.in common/collection/collection.h common/collection/collection.pc.in common/collection/collection_cmp.c common/collection/collection_cnv.c common/collection/collection_iter.c common/collection/collection_priv.h common/collection/collection_queue.c common/collection/collection_queue.h common/collection/collection_queue_ut.c common/collection/collection_stack.c common/collection/collection_stack.h common/collection/collection_stack_ut.c common/collection/collection_tools.c common/collection/collection_tools.h common/collection/collection_ut.c common/collection/configure.ac common/collection/m4/.dir common/configure.ac common/dhash/COPYING common/dhash/COPYING.LESSER common/dhash/Makefile.am common/dhash/README common/dhash/configure.ac common/dhash/dhash.c common/dhash/dhash.h common/dhash/dhash.pc.in common/dhash/examples/dhash_example.c common/dhash/examples/dhash_test.c common/dhash/m4/.dir common/ini/COPYING common/ini/COPYING.LESSER common/ini/Makefile.am common/ini/configure.ac common/ini/ini.conf common/ini/ini.d/real.conf common/ini/ini.d/test.conf common/ini/ini_comment.c common/ini/ini_comment.h common/ini/ini_comment_ut.c common/ini/ini_config.c common/ini/ini_config.cfg.doxy.in common/ini/ini_config.h common/ini/ini_config.pc.in common/ini/ini_config_ut.c common/ini/ini_defines.h common/ini/ini_get_array.c common/ini/ini_get_value.c common/ini/ini_list.c common/ini/ini_metadata.c common/ini/ini_metadata.h common/ini/ini_parse.c common/ini/ini_parse.h common/ini/ini_print.c common/ini/m4/.dir common/m4/.dir common/path_utils/COPYING common/path_utils/COPYING.LESSER common/path_utils/Makefile.am common/path_utils/README common/path_utils/configure.ac common/path_utils/m4/.dir common/path_utils/path_utils.c common/path_utils/path_utils.cfg.doxy.in common/path_utils/path_utils.h common/path_utils/path_utils.pc.in common/path_utils/path_utils_ut.c common/refarray/COPYING common/refarray/COPYING.LESSER common/refarray/Makefile.am common/refarray/README common/refarray/configure.ac common/refarray/m4/.dir common/refarray/ref_array.c common/refarray/ref_array.cfg.doxy.in common/refarray/ref_array.h common/refarray/ref_array.pc.in common/refarray/ref_array_ut.c common/trace/Makefile.am common/trace/trace.h configure.ac
e7f6e1953ce07bdcf25571152a3bcd412d8c5ba0 08-Mar-2010 Stephen Gallagher <sgallagh@redhat.com>

Package libcollection documentation into libcollection-devel

7f9938302778ffe87ef6295710c3670a44803f3a 23-Feb-2010 Stephen Gallagher <sgallagh@redhat.com>

Include hour in 'make prerelease-rpms'

1c48b5a62f73234ed26bb20f0ab345ab61cda0ab 18-Feb-2010 Stephen Gallagher <sgallagh@redhat.com>

Rename server/ directory to src/ Also update BUILD.txt

BUILD.txt Makefile.am configure.ac contrib/sssd.spec.in src/Makefile.am src/build_macros.m4 src/conf_macros.m4 src/confdb/confdb.c src/confdb/confdb.h src/confdb/confdb_private.h src/confdb/confdb_setup.c src/confdb/confdb_setup.h src/config/SSSDConfig.py src/config/SSSDConfigTest.py src/config/etc/sssd.api.conf src/config/etc/sssd.api.d/sssd-ipa.conf src/config/etc/sssd.api.d/sssd-krb5.conf src/config/etc/sssd.api.d/sssd-ldap.conf src/config/etc/sssd.api.d/sssd-local.conf src/config/etc/sssd.api.d/sssd-proxy.conf src/config/ipachangeconf.py src/config/setup.py src/config/testconfigs/noparse.api.conf src/config/testconfigs/sssd-badversion.conf src/config/testconfigs/sssd-invalid-badbool.conf src/config/testconfigs/sssd-invalid.conf src/config/testconfigs/sssd-noversion.conf src/config/testconfigs/sssd-valid.conf src/config/upgrade_config.py src/configure.ac src/db/sysdb.c src/db/sysdb.h src/db/sysdb_ops.c src/db/sysdb_private.h src/db/sysdb_search.c src/doxy.config.in src/examples/sssd.conf src/examples/sssdproxytest src/examples/sudo src/external/crypto.m4 src/external/docbook.m4 src/external/krb5.m4 src/external/ldap.m4 src/external/libcares.m4 src/external/libcollection.m4 src/external/libdhash.m4 src/external/libini_config.m4 src/external/libldb.m4 src/external/libpcre.m4 src/external/libpopt.m4 src/external/libtalloc.m4 src/external/libtdb.m4 src/external/libtevent.m4 src/external/pam.m4 src/external/pkg.m4 src/external/platform.m4 src/external/python.m4 src/external/selinux.m4 src/external/sizes.m4 src/krb5_plugin/sssd_krb5_locator_plugin.c src/ldb_modules/memberof.c src/m4/.dir src/man/include/failover.xml src/man/include/param_help.xml src/man/include/upstream.xml src/man/sss_groupadd.8.xml src/man/sss_groupdel.8.xml src/man/sss_groupmod.8.xml src/man/sss_groupshow.8.xml src/man/sss_useradd.8.xml src/man/sss_userdel.8.xml src/man/sss_usermod.8.xml src/man/sssd-ipa.5.xml src/man/sssd-krb5.5.xml src/man/sssd-ldap.5.xml src/man/sssd.8.xml src/man/sssd.conf.5.xml src/man/sssd_krb5_locator_plugin.8.xml src/monitor/monitor.c src/monitor/monitor.h src/monitor/monitor_interfaces.h src/monitor/monitor_sbus.c src/po/LINGUAS src/po/Makevars src/po/POTFILES.in src/po/de.po src/po/es.po src/po/fr.po src/po/it.po src/po/ja.po src/po/nl.po src/po/pl.po src/po/pt.po src/po/sss_daemon.pot src/po/sv.po src/providers/child_common.c src/providers/child_common.h src/providers/data_provider.h src/providers/data_provider_be.c src/providers/data_provider_fo.c src/providers/data_provider_opts.c src/providers/dp_auth_util.c src/providers/dp_backend.h src/providers/dp_sbus.c src/providers/fail_over.c src/providers/fail_over.h src/providers/ipa/ipa_access.c src/providers/ipa/ipa_access.h src/providers/ipa/ipa_auth.c src/providers/ipa/ipa_auth.h src/providers/ipa/ipa_common.c src/providers/ipa/ipa_common.h src/providers/ipa/ipa_init.c src/providers/ipa/ipa_timerules.c src/providers/ipa/ipa_timerules.h src/providers/krb5/krb5_auth.c src/providers/krb5/krb5_auth.h src/providers/krb5/krb5_become_user.c src/providers/krb5/krb5_child.c src/providers/krb5/krb5_common.c src/providers/krb5/krb5_common.h src/providers/krb5/krb5_init.c src/providers/krb5/krb5_utils.c src/providers/krb5/krb5_utils.h src/providers/ldap/ldap_auth.c src/providers/ldap/ldap_child.c src/providers/ldap/ldap_common.c src/providers/ldap/ldap_common.h src/providers/ldap/ldap_id.c src/providers/ldap/ldap_id_cleanup.c src/providers/ldap/ldap_id_enum.c src/providers/ldap/ldap_init.c src/providers/ldap/sdap.c src/providers/ldap/sdap.h src/providers/ldap/sdap_async.c src/providers/ldap/sdap_async.h src/providers/ldap/sdap_async_accounts.c src/providers/ldap/sdap_async_connection.c src/providers/ldap/sdap_async_private.h src/providers/ldap/sdap_child_helpers.c src/providers/providers.h src/providers/proxy.c src/providers/sssd_be.exports src/python/pysss.c src/resolv/ares/ares_data.c src/resolv/ares/ares_data.h src/resolv/ares/ares_dns.h src/resolv/ares/ares_parse_srv_reply.c src/resolv/ares/ares_parse_srv_reply.h src/resolv/ares/ares_parse_txt_reply.c src/resolv/ares/ares_parse_txt_reply.h src/resolv/async_resolv.c src/resolv/async_resolv.h src/responder/common/responder.h src/responder/common/responder_cmd.c src/responder/common/responder_common.c src/responder/common/responder_dp.c src/responder/common/responder_packet.c src/responder/common/responder_packet.h src/responder/nss/nsssrv.c src/responder/nss/nsssrv.h src/responder/nss/nsssrv_cmd.c src/responder/nss/nsssrv_nc.c src/responder/nss/nsssrv_nc.h src/responder/pam/pam_LOCAL_domain.c src/responder/pam/pamsrv.c src/responder/pam/pamsrv.h src/responder/pam/pamsrv_cmd.c src/responder/pam/pamsrv_dp.c src/sbus/sbus_client.c src/sbus/sbus_client.h src/sbus/sssd_dbus.h src/sbus/sssd_dbus_common.c src/sbus/sssd_dbus_connection.c src/sbus/sssd_dbus_private.h src/sbus/sssd_dbus_server.c src/sss_client/common.c src/sss_client/group.c src/sss_client/man/pam_sss.8.xml src/sss_client/pam_sss.c src/sss_client/pam_test_client.c src/sss_client/passwd.c src/sss_client/protos.h src/sss_client/sss_cli.h src/sss_client/sss_nss.exports src/sss_client/sss_pam.exports src/sss_client/sss_pam_macros.h src/sysv/SUSE/sssd src/sysv/sssd src/tests/auth-tests.c src/tests/check_and_open-tests.c src/tests/common.c src/tests/common.h src/tests/fail_over-tests.c src/tests/files-tests.c src/tests/find_uid-tests.c src/tests/ipa_ldap_opt-tests.c src/tests/ipa_timerules-tests.c src/tests/krb5_utils-tests.c src/tests/python-test.py src/tests/refcount-tests.c src/tests/resolv-tests.c src/tests/stress-tests.c src/tests/strtonum-tests.c src/tests/sysdb-tests.c src/tools/files.c src/tools/sss_groupadd.c src/tools/sss_groupdel.c src/tools/sss_groupmod.c src/tools/sss_groupshow.c src/tools/sss_sync_ops.c src/tools/sss_sync_ops.h src/tools/sss_useradd.c src/tools/sss_userdel.c src/tools/sss_usermod.c src/tools/tools_util.c src/tools/tools_util.h src/util/backup_file.c src/util/check_and_open.c src/util/crypto_sha512crypt.c src/util/debug.c src/util/dlinklist.h src/util/find_uid.c src/util/find_uid.h src/util/memory.c src/util/nss_sha512crypt.c src/util/refcount.c src/util/refcount.h src/util/server.c src/util/sha512crypt.h src/util/signal.c src/util/signal.m4 src/util/sss_krb5.c src/util/sss_krb5.h src/util/sss_ldap.c src/util/sss_ldap.h src/util/strtonum.c src/util/strtonum.h src/util/user_info_msg.c src/util/user_info_msg.h src/util/usertools.c src/util/util.c src/util/util.h
8e9ac4d7443939ed0d152708d3877b29252d16fe 18-Feb-2010 Stephen Gallagher <sgallagh@redhat.com>

Eliminate separate build tree for sss_client

Makefile.am configure.ac server/Makefile.am server/configure.ac server/po/POTFILES.in server/providers/data_provider.h server/responder/common/responder.h server/responder/common/responder_packet.h server/sss_client/Makefile.am server/sss_client/autogen.sh server/sss_client/common.c server/sss_client/conf_macros.m4 server/sss_client/config.guess server/sss_client/config.sub server/sss_client/configure.ac server/sss_client/external/docbook.m4 server/sss_client/group.c server/sss_client/install-sh server/sss_client/m4/.dir server/sss_client/man/pam_sss.8.xml server/sss_client/pam_sss.c server/sss_client/pam_test_client.c server/sss_client/passwd.c server/sss_client/po/LINGUAS server/sss_client/po/Makevars server/sss_client/po/POTFILES.in server/sss_client/po/de.po server/sss_client/po/es.po server/sss_client/po/fr.po server/sss_client/po/it.po server/sss_client/po/ja.po server/sss_client/po/nl.po server/sss_client/po/pl.po server/sss_client/po/pt.po server/sss_client/po/sss_client.pot server/sss_client/po/sv.po server/sss_client/protos.h server/sss_client/sss_cli.h server/sss_client/sss_nss.exports server/sss_client/sss_pam.exports server/sss_client/sss_pam_macros.h server/util/user_info_msg.c
26785017abee76e0eff95214f0c52fcdb04741e0 16-Feb-2010 Sumit Bose <sbose@redhat.com>

Remove replace

BUILD.txt Makefile.am configure.ac replace/.checker_innocent replace/Makefile.am replace/README replace/acinclude.m4 replace/autoconf-2.60.m4 replace/autogen.sh replace/build_macros.m4 replace/config.guess replace/config.sub replace/configure.ac replace/dlfcn.c replace/dlfcn.m4 replace/getaddrinfo.c replace/getaddrinfo.h replace/getifaddrs.c replace/getpass.c replace/getpass.m4 replace/inet_aton.c replace/inet_ntoa.c replace/inet_ntop.c replace/inet_pton.c replace/install-sh replace/libreplace.m4 replace/libreplace_cc.m4 replace/libreplace_ld.m4 replace/libreplace_macros.m4 replace/libreplace_network.m4 replace/repdir.m4 replace/repdir_getdents.c replace/repdir_getdirentries.c replace/replace.c replace/replace.h replace/samba.m4 replace/snprintf.c replace/socket.c replace/socketpair.c replace/strptime.c replace/strptime.m4 replace/system/README replace/system/aio.h replace/system/capability.h replace/system/config.m4 replace/system/dir.h replace/system/filesys.h replace/system/glob.h replace/system/iconv.h replace/system/kerberos.h replace/system/locale.h replace/system/network.h replace/system/passwd.h replace/system/readline.h replace/system/select.h replace/system/shmem.h replace/system/syslog.h replace/system/terminal.h replace/system/time.h replace/system/wait.h replace/test/getifaddrs.c replace/test/main.c replace/test/os2_delete.c replace/test/shared_mmap.c replace/test/strptime.c replace/test/testsuite.c replace/timegm.c replace/timegm.m4 replace/win32.m4 replace/win32_replace.h server/Makefile.am
15dc6ed9ecdea095b041190aeb8f67ed71efd0e7 15-Feb-2010 Stephen Gallagher <sgallagh@redhat.com>

Add doxygen docs for ConfDB

78fe240e7c47f45c87cdfba0107fca6390401137 21-Jan-2010 Stephen Gallagher <sgallagh@redhat.com>

Add 'prerelease-rpms' target to Makefile This target is available only if building from a git checkout. It will automatically populate the PRERELEASE_VERSION in version.m4 with the current datestamp and git commit id for creating an RPM.

1183d29d87c5c7439cf2364b7d7324d4a13b6e35 21-Jan-2010 Stephen Gallagher <sgallagh@redhat.com>

Add 'prerelease-srpms' target to Makefile This target is available only if building from a git checkout. It will automatically populate the PRERELEASE_VERSION in version.m4 with the current datestamp and git commit id for creating an SRPM.

ee359fe1384507fed6c2274e7bfe81d288de4542 21-Jan-2010 Stephen Gallagher <sgallagh@redhat.com>

Use version.m4 for setting the SSSD version This is the preferred way of setting the version in a file, as autotools will properly monitor this file for changes and rerun autoconf/configure when necessary to update the version. This means that we don't need to manually perform an autoreconf in order to build a new RPM

fd5a4eacd56700ffb08a73121aeacdc806cb0132 15-Dec-2009 Sumit Bose <sbose@redhat.com>

Use --with-ldb-lib-dir while running make distcheck

adfe89593359dd5fd96ace0a3f9ea8e7e7278fc4 15-Sep-2009 Stephen Gallagher <sgallagh@redhat.com>

Allow rerunning autoreconf from the tarball We were missing two files from the tarball distribution that prevented autoreconf from running successfully: VERSION and replace/autoconf-2.60.m4

f1fab7b8210af4ae94453265b607e2dab06789ca 15-Sep-2009 Stephen Gallagher <sgallagh@redhat.com>

Include m4 directories in tarball Necessary for RPM builds on RHEL5

1df8e4158e752f1f010394d09e8a5e4f8201fd7e 11-Sep-2009 Stephen Gallagher <sgallagh@redhat.com>

Add 'make tests' target

e9ea1b4e59384cdfe3accdf31e5c579c3dad5591 02-Sep-2009 Stephen Gallagher <sgallagh@redhat.com>

Move RPM specfiles into contrib/ Support RHEL 5 in the spec file

df4cc3a83c5d6700b6a09ff96cb4a6b1949b1aa9 20-Aug-2009 Stephen Gallagher <sgallagh@redhat.com>

Fix usage of $(builddir) in SSSD There are some old versions of automake that do not define $(builddir) correctly. Since $(builddir) is "Rigorously equal to ‘.’', we'll set it at the top of the Makefile.am files.

263e4574dacb4b7d2a18d5d42122bf3dce4c45b0 21-Jul-2009 Stephen Gallagher <sgallagh@redhat.com>

Add 'make srpms' target

897060147ddea72ecc1e86c6b7b915ff1d462f71 19-May-2009 Stephen Gallagher <sgallagh@redhat.com>

Fix RPM generation issues with sssd Ensures that the common libraries build statically. Also ensures that the sssd.spec creates the SYSV init script with the appropriate permissions. Cleans up the useless rpmdist target that was obsolete. Adds the *.so.N.0.0 files to the RPM, as the .so and .so.N files were dangling symlinks.

84ae5edab16ad6be5e3be956cb6fa031c1428eb5 19-May-2009 Stephen Gallagher <sgallagh@redhat.com>

Convert top-level of SSSD to automake. Also update RPM spec and build procedures.