Commit Graph

12905 Commits

Author SHA1 Message Date
Alexander Bokovoy
fd8c17252f adtrust: remove FILE: prefix from 'dedicated keytab file' in smb.conf
Samba 4.5 does not allow to specify access mode for the keytab (FILE: or
WRFILE:) from external sources. Thus, change the defaults to a path
(implies FILE: prefix) while Samba Team fixes the code to allow the
access mode prefix for keytabs.

On upgrade we need to replace 'dedicated keytab file' value with the
path to the Samba keytab that FreeIPA maintains. Since the configuration
is stored in the Samba registry, we use net utility to manipulate the
configuration:

    net conf setparm global 'dedicated keytab file' /etc/samba/samba.keytab

Fixes https://fedorahosted.org/freeipa/ticket/6551

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2016-12-12 16:40:46 +01:00
Martin Babinsky
b0acb23ff3 add missing attribute to ipaca replica during CA topology update
'nsds5replicabinddngroupcheckinterval' attribute was not properly added
to 'o=ipaca' replica attribute during upgrade. The CA topology update
plugin should now add it to the entry if it exists.

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

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-12-09 15:47:13 +01:00
Martin Babinsky
0ae9cd75cd Revert "upgrade: add replica bind DN group check interval to CA topology config"
This reverts commit 8c6a10cedd since it
leads to errors in upgrade of first master.

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

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-12-09 15:47:13 +01:00
Martin Babinsky
e94046f646 gracefully handle setting replica bind dn group on old masters
Pre-3.3 masters do not support setting 'nsds5replicabinddngroup'
attribute on existing replica entry during setup of initial replication.
In this case UNWILLING_TO_PERFORM is returned. The code can interpret
this error as an indication of old master and fall back to just adding
its LDAP principal to entry's 'nsds5replicabinddn' attribute.

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

Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2016-12-09 13:43:41 +01:00
Martin Babinsky
bf28d79afe bindinstance: use data in named.conf to determine configuration status
Instead of checking sysrestore status which leads to incorrect
evaluation of DNS configuration status during 4.2 -> 4.4 upgrade, look
into named.conf to see whther it was already modified by IPA installer.

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

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-12-07 12:30:38 +01:00
Timo Aaltonen
2189b630ec Merge branch 'master' into master-next 2016-12-03 01:05:42 +02:00
Timo Aaltonen
4445bc06ea releasing package freeipa version 4.3.2-5 2016-12-03 01:03:46 +02:00
Timo Aaltonen
991da87b90 ipa-kdb-support-dal-version-5-and-6.diff: Support mit-krb5 1.15. (Closes: #844114) 2016-12-03 01:02:56 +02:00
Timo Aaltonen
5297224a8f fix-cve-2016-5404.diff: Fix permission check bypass (Closes: #835131) 2016-12-03 00:46:03 +02:00
Timo Aaltonen
d1b501999f update platform diff 2016-12-01 13:20:38 +02:00
Timo Aaltonen
1637bedee7 install: Updated. 2016-12-01 11:14:28 +02:00
Timo Aaltonen
f9b9a1d8ba control: Bump depends on sssd to 1.14.0. 2016-12-01 10:19:45 +02:00
Timo Aaltonen
f7799288e8 control: Add python-libsss-nss-idmap to build-depends. 2016-12-01 10:15:40 +02:00
Timo Aaltonen
ef7c8129fb control: Depend on slapi-nis 0.56.1. 2016-12-01 10:13:33 +02:00
Timo Aaltonen
0ea9426e3e control: Depend on dogtag 10.3.5-6. 2016-12-01 10:09:55 +02:00
Timo Aaltonen
f0f4a5b3bd control: Bump bind9-dyndb-ldap depends to 10, upstream #2008. 2016-12-01 09:11:42 +02:00
Timo Aaltonen
780bb3d1cc control: Bump depends on 389-ds-base to 1.3.5.6, upstream #5396 #2008. 2016-12-01 09:09:59 +02:00
Timo Aaltonen
cab7da3843 control: Add python-sssdconfig to python-ipatests depends. 2016-12-01 09:02:56 +02:00
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
Martin Babinsky
9502ee5fb8 replication: ensure bind DN group check interval is set on replica config
This is a safeguard ensuring valid replica configuration against incorrectly
upgraded masters lacking 'nsds5replicabinddngroupcheckinterval' attribute on
their domain/ca topology config.

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

Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2016-11-30 15:42:24 +01:00
Martin Babinsky
8c6a10cedd upgrade: add replica bind DN group check interval to CA topology config
Without this attribute explicitly set the replication plugin won't recognize
updates from members of 'replication managers' sysaccount group, leading to
stuck replica CA installation.

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

Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2016-11-30 15:42:24 +01:00
Petr Spacek
47ee2870d8 Accept server host names resolvable only using /etc/hosts
Apparently "files" implementation of hosts NSS database cannot deal with
trailing period in host names.

Previously name server.example.com which is was resolvable neither using
dns nor myhostname NSS modules were rejected by installer
(despite having matching line in /etc/hosts).

These names which are resolvable purely using "files" database are now
accepted.

The problem is that I had to remove trailing period from names passed
to getaddrinfo() function. This effectivelly enables search list processing.
This means that items from the search list might be silently appended to
the query and we might get an IP address for totally different names
than we asked for.

Unfortunatelly I see no way around this while keeping ability
to use names from NSS hosts database.

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

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2016-11-29 18:35:31 +01:00
Oleg Fayans
b5ab5c1cef tests: Added basic tests for certs in idoverrides
https://fedorahosted.org/freeipa/ticket/6412

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Milan Kubik <mkubik@redhat.com>
2016-11-29 18:30:44 +01:00
Oleg Fayans
62061a3a04 Created idview tracker
Needed for basic certs in idoverrides tests

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

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Milan Kubik <mkubik@redhat.com>
2016-11-29 18:30:44 +01: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
Martin Basti
76d4368ff9 Zanata: exlude testing ipa.pot file
Exlude testing file "ipatests/test_ipalib/data/ipa.pot" which should not be
uploaded to zanata.

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

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2016-11-21 14:47:47 +01:00
Petr Spacek
ef988aab6c Update man page for ipa-adtrust-install by removing --no-msdcs option
https://fedorahosted.org/freeipa/ticket/6480

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
2016-11-17 00:45:58 +01:00
Lenka Doudova
150731e6ef Document make_delete_command method in UserTracker
https://fedorahosted.org/freeipa/ticket/6485

Reviewed-By: Milan Kubik <mkubik@redhat.com>
2016-11-15 17:02:13 +01:00
Lenka Doudova
949e67692c Tests: Providing trust tests with tree root domain
https://fedorahosted.org/freeipa/ticket/6347

Reviewed-By: Ganna Kaihorodova <gkaihoro@redhat.com>
2016-11-15 13:20:03 +01:00
Oleg Fayans
b9083bf837 Test for installing rules with service principals
https://fedorahosted.org/freeipa/ticket/6481

Reviewed-By: Lenka Doudova <ldoudova@redhat.com>
2016-11-14 18:29:48 +01:00
Oleg Fayans
0e5a228475 Test: integration tests for certs in idoverrides feature
https://fedorahosted.org/freeipa/ticket/6005

Reviewed-By: Lenka Doudova <ldoudova@redhat.com>
2016-11-14 18:29:48 +01:00
Oleg Fayans
7931a26b95 Added interface to certutil
Added generic method to run certutil with arbitrary set of paramenters

Reviewed-By: Lenka Doudova <ldoudova@redhat.com>
2016-11-14 18:29:48 +01:00
Martin Basti
c036dda89f CI: Disable KRA install tests on DL0
When master is without KRA installed, on domain level0 we cannot install
KRA replicas, thus this tests must be skipped on DL0

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

Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
2016-11-14 18:06:47 +01:00
Martin Basti
7bb2742901 CI: use --setup-kra with replica installation
Currently tests were not testing one-step installation of KRA together
with replica. Adding --setup-kra to replica installation instead of
calling ipa-kra-install after.

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

Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
2016-11-14 18:06:47 +01:00
Martin Basti
bf79998813 CI: extend replication layouts tests with KRA
KRA should be tested with warious replication topologies as well, mainly
in domain level 0

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

Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
2016-11-14 18:06:47 +01:00
Lenka Doudova
118d455027 Tests: Verify that validity info is present in cert-show and cert-find command
https://fedorahosted.org/freeipa/ticket/6419

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-11-14 17:30:47 +01:00
Lenka Doudova
1bb9b102ed Add file_exists method as a member of transport object
Method file_exists is reported by pylint as not being a member of transport
object, however it is used as such. Adding the method to object to avoid pylint
errors or unnecessary pylint disable.

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

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2016-11-14 14:32:10 +01:00
Lenka Doudova
546382f3a6 Tests: Provide AD cleanup for legacy client tests
Providing cleanup of trust information from AD machines for legacy client tests.

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

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2016-11-14 14:32:10 +01:00
Lenka Doudova
244287a497 Tests: Provide AD cleanup for trust tests
Providing cleanup of trust information from AD machines for trusts tests.

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

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2016-11-14 14:32:10 +01:00