Commit Graph

12803 Commits

Author SHA1 Message Date
Timo Aaltonen
f7061d6a3e control: Use python-netifaces instead of iproute. 2016-12-01 09:01:28 +02:00
Timo Aaltonen
6b09b2a191 control: Add python-custodia and python-requests to ipalib depends. 2016-12-01 08:59:27 +02:00
Timo Aaltonen
3f3e2c42a3 control: Bump depends on slapi-nis to 0.55. 2016-12-01 08:53:34 +02:00
Timo Aaltonen
8de1b80a85 client.postinst: Use update_ipa_nssdb(), which also removes remnants from /etc/pki/nssdb. 2016-12-01 08:52:29 +02:00
Timo Aaltonen
960e945bf3 watch: Use https url. 2016-12-01 08:40:41 +02:00
Timo Aaltonen
2e735addb2 work-around-apache-fail.diff: Dropped, apache supports systemd now so this should not be needed. 2016-12-01 08:34:57 +02:00
Timo Aaltonen
14da8940ea patches: Refreshed. 2016-12-01 08:30:36 +02:00
Timo Aaltonen
36019f0e75 update changelog, drop upstream patch 2016-12-01 08:25:50 +02:00
Timo Aaltonen
9b9fa32555 Merge branch 'master' into master-next 2016-12-01 08:23:19 +02:00
Timo Aaltonen
dd9e95984c Merge branch 'upstream' into master-next 2016-12-01 08:23:10 +02:00
Timo Aaltonen
1c49e3f02c releasing package freeipa version 4.3.2-4 2016-12-01 08:12:43 +02:00
Timo Aaltonen
d1bfd02fa7 platform: Add Debian mapping for rpcgssd and rpcidmapd service files. (LP: #1645201) 2016-11-28 17:39:42 +02:00
Timo Aaltonen
8624cdcc37 control: Bump dependency on libapache2-mod-auth-gssapi to verify upstream bug #5653 is resolved. 2016-11-22 16:28:12 +02:00
Timo Aaltonen
b0a9bfbe69 freeipa-client.post*: Use /var/log/ipaclient-upgrade.log instead of ipaupgrade.log, and remove it on purge. (Closes: #842071) 2016-10-26 19:34:58 +03:00
Petr Vobornik
3c542b9878 Become IPA 4.4.2 2016-10-13 10:49:26 +02:00
Lenka Doudova
c8cdc6a9e6 Tests: Certificate revocation
Providing tests for certificate revocation to replace deleted tests from
test_cert_find.

https://fedorahosted.org/freeipa/ticket/6349

Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
2016-10-12 12:48:20 +02:00
Lenka Doudova
afabdd365a Tests: Remove invalid certplugin tests
A bunch of certplugin tests were testing number of revoked certificates with
various revocation reasons. Since existence of revoked certificates often
depends on other parts of IdM than IPA, it is not really valid to check their
presence unless creation of revoked certificate is intentionally tested.

https://fedorahosted.org/freeipa/ticket/6349

Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
2016-10-12 12:48:20 +02:00
Martin Babinsky
2b2fc1abf1 disable warnings reported by pylint-1.6.4-1
Pylint shipped in Fedora 25 reports 'trailing-newlines' and
'consider-iterating-dictionary' warnings which break FreeIPA builds.

On ipa-4-4 branch it is safer to just disable these warnings so as to not mess
with code considered stable

https://fedorahosted.org/freeipa/ticket/6391

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-10-12 11:14:49 +02:00
Oleg Fayans
1a27d3037f Test: disabled wrong client domain tests for domlevel 0
These tests are only relevant for domain level 1

https://fedorahosted.org/freeipa/ticket/6382

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-10-12 10:53:41 +02:00
David Kupka
1b6ba5283e UnsafeIPAddress: Implement __(g|s)etstate__ and to ensure proper (un)pickling
Missing attributes in instance created by pickle.load cause AttributeError in
second part of ipa-server-install --external-ca.

https://fedorahosted.org/freeipa/ticket/6385

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
2016-10-12 10:42:24 +02:00
Petr Spacek
82bc75fe63 Fix compatibility with python-dns 1.15.0
From https://github.com/rthalley/dnspython/issues/214:
The FreeIPA code is directly invoking the TXT RR constructor instread
of calling dns.rdata.from_text(), which is how dnspython would like you
to do this kind of thing.

https://fedorahosted.org/freeipa/ticket/6390

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-10-11 15:45:41 +02:00
Fraser Tweedale
810c38efce Add commentary about CA deletion to plugin doc
Add commentary to 'ca' plugin documentation to explain what happens
when a CA gets deleted - namely, that its signing cert gets revoked
and its private key deleted.

Also break the docstring up into smaller chunks to aid translation.

Fixes: https://fedorahosted.org/freeipa/ticket/6256
Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-10-06 19:24:54 +02:00
Fraser Tweedale
358e50b2e1 spec: require Dogtag >= 10.3.5-6
Require Dogtag 10.3.5-6, which is the first release that implements
revocation of lightweight CA signing certificates upon deletion.

Part of: https://fedorahosted.org/freeipa/ticket/6256

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-10-06 19:24:54 +02:00
Nathaniel McCallum
304300fd87 Properly handle LDAP socket closures in ipa-otpd
In at least one case, when an LDAP socket closes, a read event is fired
rather than an error event. Without this patch, ipa-otpd silently
ignores this event and enters a state where all bind auths fail.

To remedy this problem, we pass error events along the same path as read
events. Should the actual read fail, we exit.

https://bugzilla.redhat.com/show_bug.cgi?id=1377858
https://fedorahosted.org/freeipa/ticket/6368

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2016-10-06 10:35:25 +02:00
Stanislav Laznicka
03a0f5a105 Make installer quit more nicely on external CA installation
cainstance.__spawn_instance() exits in rather weird manner on
successful external CA install. This masks the weird implementation
from the user. :-&

https://fedorahosted.org/freeipa/ticket/6230

Reviewed-By: David Kupka <dkupka@redhat.com>
2016-10-06 07:06:38 +02:00
Timo Aaltonen
f5b7751bca releasing package freeipa version 4.3.2-3 2016-10-06 01:22:22 +03:00
Timo Aaltonen
2bf9b08353 rules: Add a check to override_dh_fixperms so that chmod is not run on arch-indep build where the targets don't exist. (Closes: #839844) 2016-10-06 01:21:35 +03:00
Timo Aaltonen
9581175190 releasing package freeipa version 4.3.2-2 2016-10-05 00:36:29 +03:00
Timo Aaltonen
687414e8e7 tests: Add simple autopkgtest to check that ipa-server-install works. 2016-10-05 00:35:50 +03:00
Timo Aaltonen
0ef5833e32 control: Bump dep on softhsm2 due to changed lib install path. 2016-10-05 00:29:11 +03:00
Milan Kubík
5d75842017 ipatests: Implement tests with CSRs requesting SAN
The patch implements several test cases testing the enforcement
of CA ACLs on certificate requests with subject alternative names.

https://fedorahosted.org/freeipa/ticket/6366

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2016-10-04 18:03:03 +02:00
Milan Kubík
3fd233458b ipatests: Fix name property on a service tracker
https://fedorahosted.org/freeipa/ticket/6366

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2016-10-04 18:03:03 +02:00
Milan Kubík
e607bd000b ipatests: provide context manager for keytab usage in RPC tests
https://fedorahosted.org/freeipa/ticket/6366

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2016-10-04 18:03:03 +02:00
Stanislav Laznicka
6982929c20 Fix test_util.test_assert_deepequal test
The test would be failing because recent pretty-print changes
that caused the inner members of a dictionary to be printed
in a different order.

https://fedorahosted.org/freeipa/ticket/6373

Reviewed-By: Lenka Doudova <ldoudova@redhat.com>
2016-10-04 14:11:00 +02:00
Timo Aaltonen
0b7a9ba08b add-debian-platform.diff: Fix libsofthsm2.so install path. 2016-10-04 10:21:16 +03:00
Martin Babinsky
aed346a359 mod_nss: use more robust quoting of NSSNickname directive
The code which handles configuration of mod_nss module must be more robust
when handling NSS nicknames generated from subject names containing quoted RDN
values.

https://fedorahosted.org/freeipa/ticket/5809

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
2016-10-03 13:42:34 +02:00
Martin Babinsky
a6833222ff Move character escaping function to ipautil
Functions `escape_seq` and `unescape_seq` have a generic use-case so it makes
sense to move them from `kerberos` to ipautil module so that other modules can
reuse them more readily.

https://fedorahosted.org/freeipa/ticket/5809

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
2016-10-03 13:42:34 +02:00
Stanislav Laznicka
d982710bec Pretty-print structures in assert_deepequal
By default, ipa-run-tests will now pretty-print structures
compared in the assert_deepequal function. This behaviour
can be turned off by the --no-pretty-print option.

https://fedorahosted.org/freeipa/ticket/6212

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Petr Spacek <pspacek@redhat.com>
2016-09-30 09:55:58 +02:00
Timo Aaltonen
8c42645111 fix-ipa-otpd-service.diff: Use correct path for ipa-otpd. (LP: #1628884) 2016-09-30 00:48:44 +03:00
Timo Aaltonen
bf1d35e501 control: Add libnss-sss, libpam-sss and libsss-sudo to client depends to ensure they get installed. (LP: #1600513) 2016-09-30 00:45:46 +03:00
Pavel Vomacka
5ac1f36713 WebUI: hide buttons in certificate widget according to acl
When user is logged in and opens details page of another user there should not
be visible button for adding new certificate and also the option in action menu
for deleting certificate should be grayed out.

This is achieved by adding custom field for certificates widget, which is able to
read ACLs from result of user-show and not from cert-find result.

https://fedorahosted.org/freeipa/ticket/6341

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2016-09-29 11:14:02 +02:00
Martin Basti
f4115f68ee test_text: add test ipa.pot file for tests
Input data should be packaged into freeipa-test module to be able run
test from RPM (outoftree)

https://fedorahosted.org/freeipa/ticket/6333

Reviewed-By: Lenka Doudova <ldoudova@redhat.com>
2016-09-26 18:48:07 +02:00
Martin Babinsky
e45bd59b44 Make Continuous installer continuous only during execution phase
`common.Continuous` class is a basis for uninstallers, which should execute
all the steps regardless of occuring errors. However, we would like the
installer to raise exceptions and return non-zero exit code during validation
phase when some preconditions are not met.

Add a separate exception handler which catches exceptions and logs them as
errors during execution phase only.

https://fedorahosted.org/freeipa/ticket/5725

Reviewed-By: Petr Spacek <pspacek@redhat.com>
2016-09-26 18:38:37 +02:00
Martin Babinsky
e306e8f06d use separate exception handlers for executors and validators
installer framework has been modified to allow for different error handling
during validation and execution phases.

https://fedorahosted.org/freeipa/ticket/5725

Reviewed-By: Petr Spacek <pspacek@redhat.com>
2016-09-26 18:38:37 +02:00
Martin Basti
91e66b9054 Test: dont use global variable for iteration in test_cert_plugin
Iteration over global variable causes unwanted value changes outside
method

https://fedorahosted.org/freeipa/ticket/5755

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2016-09-22 15:20:58 +02:00
Stanislav Laznicka
fd9434cab3 Remove update_from_dict() method
update_from_dict() method is not used anywhere in the project,
it only makes the tests fail. Removed it and its tests.

https://fedorahosted.org/freeipa/ticket/6311

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2016-09-22 13:02:57 +02:00
Stanislav Laznicka
e2aaa9c716 Updated help/man information about hostname
The man page and help of ipa-client-install and ipa-replica-conncheck
had an outdated information about what is used as a hostname.

https://fedorahosted.org/freeipa/ticket/5754

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
2016-09-22 10:28:45 +02:00
Lenka Doudova
1d4c97079e Tests: Remove usage of krb5 ccache from test_ipaserver/test_ldap
In test_ipaserver/test_ldap::test_ldap::test_GSSAPI a krb5 ccache is used to
connect to ldap. The test tries to locate this cache in /tmp/krb5cc_$UID file,
which is not there due to default settings in krb5.conf, and hence the whole
test is skipped. Fix the test to use keyring to connect instead of ccache in
/tmp.

https://fedorahosted.org/freeipa/ticket/6323

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-09-21 18:48:22 +02:00
Lenka Doudova
9a2f9c27cd Tests: Fix host attributes in ipa-join host test
Fixing discrepancies between returned and checked attributes in ipa-join host
test, that arose after recent changes in behavior.

https://fedorahosted.org/freeipa/ticket/6326

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-09-21 18:46:37 +02:00
Lenka Doudova
bc6dbfb4d8 Tests: Update host test with ipa-join
Updating path to ipa-join command to allow execution of
test_xmlrpc/test_host::TestHostFalsePwdChange::test_join_host.

https://fedorahosted.org/freeipa/ticket/6326

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-09-21 18:46:37 +02:00