[sssd PR#502][opened] BUILD: Add missing libs found by -Wl,-z,defs
by lslebodn
URL: https://github.com/SSSD/sssd/pull/502
Author: lslebodn
Title: #502: BUILD: Add missing libs found by -Wl,-z,defs
Action: opened
PR body:
"""
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'
"""
To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/502/head:pr502
git checkout pr502
6 years, 2 months
SSSD Virtual Test Suite
by Pavel Březina
Hello,
It took me a lot longer than I expected but here it is at last. This is
my set of scripts that use vagrant and Ansible to automatically
provision virtual environment that I use to develop and test SSSD.
To create this environment you only need to run one command:
$ ./setup.sh
and after a while you have several machines provisioned and ready. This
machines include LDAP, IPA and AD servers with one machine dedicated to
SSSD. This machine is already enrolled to those servers.
To start building and/or testing SSSD with all available providers, you
can just run:
$ vagrant ssh client
Additionally, it allows you to automatically source your set of scripts
on each login and access IPA web-ui from your browser.
I tried to make the provisioning as fast as possible but it still takes
approximately one hour on my machine. So be patient.
Any ideas and patches for improvements are welcomed.
The source is available at:
https://github.com/pbrezina/sssd-test-suite
6 years, 2 months
Trying to build an RPM for sssd-1.15.2 but some of the test are failing
by Richard Sharpe
Hi folks,
I am trying to build sssd-1.15.2 against Samba 4.7.1.
I have libldb-1.2.2-1.el7 on the build system (which is kind of a RHEL
7.3 system) along with Samba 4.7.1, libtevent 0.9.33, libtalloc 2.1.10
and libtdb 1.3.15.
The rpmbuild proceeds fine until it gets to the tests and then I see this:
------------------------
[ RUN ] test_pam_preauth_cert_nocert
(Fri Jan 19 22:48:21:370096 2018) [sssd] [child_sig_handler] (0x0020):
child [2158] failed with status [1].
[ OK ] test_pam_preauth_cert_nocert
[ RUN ] test_pam_preauth_cert_nomatch
[ ERROR ] --- sss_dp_req_recv() has remaining non-returned values.
src/tests/cmocka/common_mock_resp_dp.c:122: note: remaining item was
declared here
src/tests/cmocka/common_mock_resp_dp.c:123: note: remaining item was
declared here
src/tests/cmocka/common_mock_resp_dp.c:124: note: remaining item was
declared here
src/tests/cmocka/common_mock_resp_dp.c:126: note: remaining item was
declared here
[ FAILED ] test_pam_preauth_cert_nomatch
[ RUN ] test_pam_preauth_cert_match
[ ERROR ] --- 0x1 != 0x2
[ LINE ] --- src/tests/cmocka/test_pam_srv.c:765: error: Failure!
[ FAILED ] test_pam_preauth_cert_match
[ RUN ] test_pam_preauth_cert_match_gdm_smartcard
[ ERROR ] --- 0x1 != 0x3
[ LINE ] --- src/tests/cmocka/test_pam_srv.c:699: error: Failure!
[ FAILED ] test_pam_preauth_cert_match_gdm_smartcard
[ RUN ] test_pam_preauth_cert_match_wrong_user
[ ERROR ] --- sss_dp_req_recv() has remaining non-returned values.
src/tests/cmocka/common_mock_resp_dp.c:122: note: remaining item was
declared here
src/tests/cmocka/common_mock_resp_dp.c:123: note: remaining item was
declared here
src/tests/cmocka/common_mock_resp_dp.c:124: note: remaining item was
declared here
src/tests/cmocka/common_mock_resp_dp.c:126: note: remaining item was
declared here
[ FAILED ] test_pam_preauth_cert_match_wrong_user
[ RUN ] test_pam_preauth_cert_no_logon_name
(Fri Jan 19 22:48:22:168281 2018) [sssd] [pam_forwarder_cert_cb]
(0x0020): No certificate found and no logon name given, authentication
not possible.
[ ERROR ] --- 0xa != 0
[ LINE ] --- src/tests/cmocka/test_pam_srv.c:759: error: Failure!
[ FAILED ] test_pam_preauth_cert_no_logon_name
[ RUN ] test_pam_preauth_cert_no_logon_name_with_hint
--------------------------------
plus some more. All up, 87 of the 91 tests passed.
Does anyone have any idea what the problem is? Is it because ldb
ordering has changed?
--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
6 years, 3 months
[sssd PR#504][opened] Remove legacy script for upgrading sssd.conf
by lslebodn
URL: https://github.com/SSSD/sssd/pull/504
Author: lslebodn
Title: #504: Remove legacy script for upgrading sssd.conf
Action: opened
PR body:
"""
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 therefore it does not worth to keep it in upstream
any more.
"""
To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/504/head:pr504
git checkout pr504
6 years, 3 months
[sssd PR#505][opened] Remove unnecessary script for upgrading debug_levels
by lslebodn
URL: https://github.com/SSSD/sssd/pull/505
Author: lslebodn
Title: #505: Remove unnecessary script for upgrading debug_levels
Action: opened
PR body:
"""
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.
"""
To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/505/head:pr505
git checkout pr505
6 years, 3 months