Package Details: freeipa-client-common 4.12.2-1

Git Clone URL: https://aur.archlinux.org/freeipa.git (read-only, click to copy)
Package Base: freeipa
Description: Common files used by IPA client
Upstream URL: http://www.freeipa.org/
Keywords: freeipa identity management policy trusts
Licenses: GPL3
Submitter: chenxiaolong
Maintainer: patlefort
Last Packager: patlefort
Votes: 24
Popularity: 0.62
First Submitted: 2012-11-15 23:50 (UTC)
Last Updated: 2024-09-02 18:01 (UTC)

Pinned Comments

patlefort commented on 2024-07-23 11:37 (UTC)

Keys are in keys/pgp of this package.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

EoleDev commented on 2020-06-03 12:51 (UTC)

Hi,

Here you go :

From 7af1f4b3c8d0130f6c6d61765d8396b2e8b7a508 Mon Sep 17 00:00:00 2001
From: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
Date: Wed, 16 Apr 2014 19:31:08 -0400
Subject: [PATCH 2/2] platform: add Arch Linux platform

This patch has been adapted from the patches provided with freeipa package
in the Arch User Repository (AUR).

Signed-off-by: Jan Cholasta <jcholast@redhat.com>
---
 client/man/ipa-client-automount.1 |  4 ++--
 client/man/ipa-client-install.1   |  4 ++--
 ipaplatform/arch/__init__.py      |  3 +++
 ipaplatform/arch/constants.py     | 12 ++++++++++++
 ipaplatform/arch/paths.py         | 22 ++++++++++++++++++++++
 ipaplatform/arch/services.py      | 30 ++++++++++++++++++++++++++++++
 ipaplatform/arch/tasks.py         | 19 +++++++++++++++++++
 ipaplatform/setup.py              |  1 +
 8 files changed, 91 insertions(+), 4 deletions(-)
 create mode 100644 ipaplatform/arch/__init__.py
 create mode 100644 ipaplatform/arch/constants.py
 create mode 100644 ipaplatform/arch/paths.py
 create mode 100644 ipaplatform/arch/services.py
 create mode 100644 ipaplatform/arch/tasks.py

diff --git a/client/man/ipa-client-automount.1 b/client/man/ipa-client-automount.1
index 8b9989dec..2399250b1 100644
--- a/client/man/ipa-client-automount.1
+++ b/client/man/ipa-client-automount.1
@@ -29,7 +29,7 @@ The automount configuration consists of three files:
 .IP  o
 /etc/nsswitch.conf
 .IP  o
-/etc/sysconfig/autofs
+/etc/conf.d/autofs
 .IP  o
 /etc/autofs_ldap_auth.conf

@@ -79,7 +79,7 @@ Files that will be configured when SSSD is the automount client (default):
 .TP
 Files that will be configured when using the ldap automount client:

-/etc/sysconfig/autofs
+/etc/conf.d/autofs

 /etc/autofs_ldap_auth.conf

diff --git a/client/man/ipa-client-install.1 b/client/man/ipa-client-install.1
index 319952cb6..d01ccec64 100644
--- a/client/man/ipa-client-install.1
+++ b/client/man/ipa-client-install.1
@@ -270,6 +270,6 @@ Files updated, existing content is maintained:
 .br
 /etc/krb5.keytab
 .br
-/etc/sysconfig/network
+/etc/hostname

 .TP
diff --git a/ipaplatform/arch/__init__.py b/ipaplatform/arch/__init__.py
new file mode 100644
index 000000000..9da42e7b4
--- /dev/null
+++ b/ipaplatform/arch/__init__.py
@@ -0,0 +1,3 @@
+#
+# Copyright (C) 2015  FreeIPA Contributors see COPYING for license
+#
diff --git a/ipaplatform/arch/constants.py b/ipaplatform/arch/constants.py
new file mode 100644
index 000000000..b4857aa7c
--- /dev/null
+++ b/ipaplatform/arch/constants.py
@@ -0,0 +1,12 @@
+#
+# Copyright (C) 2015  FreeIPA Contributors see COPYING for license
+#
+
+from ipaplatform.redhat.constants import RedHatConstantsNamespace
+
+
+class ArchConstantsNamespace(RedHatConstantsNamespace):
+    pass
+
+
+constants = ArchConstantsNamespace()
diff --git a/ipaplatform/arch/paths.py b/ipaplatform/arch/paths.py
new file mode 100644
index 000000000..27721cf2f
--- /dev/null
+++ b/ipaplatform/arch/paths.py
@@ -0,0 +1,22 @@
+#
+# Copyright (C) 2015  FreeIPA Contributors see COPYING for license
+#
+
+from ipaplatform.redhat.paths import RedHatPathNamespace
+
+
+class ArchPathNamespace(RedHatPathNamespace):
+    AUTOFS_LDAP_AUTH_CONF = "/etc/autofs/autofs_ldap_auth.conf"
+    CERTMONGER_COMMAND_TEMPLATE = "/usr/lib/ipa/certmonger/%s"
+    SYSCONFIG_NFS = "/etc/conf.d/nfs-common.conf"
+    SYSCONFIG_NTPD = "/etc/conf.d/ntpd.conf"
+    SYSCONFIG_AUTOFS = "/etc/default/autofs"
+    DOGTAG_IPA_CA_RENEW_AGENT_SUBMIT = (
+        "/usr/lib/certmonger/certmonger/dogtag-ipa-ca-renew-agent-submit")
+    DOGTAG_IPA_RENEW_AGENT_SUBMIT = (
+        "/usr/lib/certmonger/certmonger/dogtag-ipa-renew-agent-submit")
+    IPA_SERVER_GUARD = "/usr/lib/certmonger/certmonger/ipa-server-guard"
+    LIB64_FIREFOX = "/usr/lib/firefox"
+
+
+paths = ArchPathNamespace()
diff --git a/ipaplatform/arch/services.py b/ipaplatform/arch/services.py
new file mode 100644
index 000000000..4ddfb53c9
--- /dev/null
+++ b/ipaplatform/arch/services.py
@@ -0,0 +1,30 @@
+#
+# Copyright (C) 2015  FreeIPA Contributors see COPYING for license
+#
+
+from ipaplatform.redhat import services as redhat_services
+
+arch_system_units = dict(redhat_services.redhat_system_units)
+arch_system_units['messagebus'] = 'dbus.service'
+arch_system_units['rpcgssd'] = 'rpc-gssd.service'
+arch_system_units['rpcidmapd'] = 'rpc-idmapd.service'
+
+
+class ArchService(redhat_services.RedHatService):
+    system_units = arch_system_units
+
+
+def arch_service_class_factory(name, api=None):
+    if name in {'messagebus', 'rpcgssd', 'rpcidmapd'}:
+        return ArchService(name, api)
+    return redhat_services.redhat_service_class_factory(name, api)
+
+
+class ArchServices(redhat_services.RedHatServices):
+    def service_class_factory(self, name, api=None):
+        return arch_service_class_factory(name, api)
+
+
+timedate_services = redhat_services.timedate_services
+service = arch_service_class_factory
+knownservices = ArchServices()
diff --git a/ipaplatform/arch/tasks.py b/ipaplatform/arch/tasks.py
new file mode 100644
index 000000000..58b837d79
--- /dev/null
+++ b/ipaplatform/arch/tasks.py
@@ -0,0 +1,19 @@
+#
+# Copyright (C) 2015  FreeIPA Contributors see COPYING for license
+#
+
+from ipaplatform.arch.paths import paths
+from ipaplatform.redhat.tasks import RedHatTaskNamespace
+
+
+class ArchTaskNamespace(RedHatTaskNamespace):
+    def restore_network_configuration(self, fstore, statestore):
+        filepath = paths.ETC_HOSTNAME
+        if fstore.has_file(filepath):
+            fstore.restore_file(filepath)
+
+    def is_fips_enabled(self):
+        return False
+
+
+tasks = ArchTaskNamespace()
diff --git a/ipaplatform/setup.py b/ipaplatform/setup.py
index 501e2bc56..b47875164 100644
--- a/ipaplatform/setup.py
+++ b/ipaplatform/setup.py
@@ -34,6 +34,7 @@ if __name__ == '__main__':
         package_dir={'ipaplatform': ''},
         packages=[
             "ipaplatform",
+            "ipaplatform.arch",
             "ipaplatform.base",
             "ipaplatform.debian",
             "ipaplatform.fedora",
-- 
2.13.3

EoleDev commented on 2020-06-03 09:00 (UTC)

Hi,

I successfully build this package, with some modifications. I didn't tried all the tools, and I don't know if there is some side effects to my patches. But right now, my ipa cli seems to be working fine. The main goal was to remove all python2 dependencies and only build python3 packages.

Here are the modifications I made by file :

  • PKGBUILD

In the pkgname var, I removed python2-ipalib and python2-ipaclient. In the makedepends var, I removed python2, python2-setuptools, python2-nss, python2-pyasn1, python2-pyasn1-modules, python2-dnspython, python2-six, python2-cffi, python2-jinja.

In the sha256sums, I replaced the sum for 0001-platform-add-Arch-Linux-platform.patch by 'SKIP' to skip it.

In the build function, I removed the lines between "cd freeipa-${pkgver}" and "export PYTHON=/usr/bin/python3". I also removed all the line with either "pushd" or "popd" in the end of the function.

I commented the function to build python2-ipalib and python2-ipaclient. In the package_freeipa-client function, I modified the python2-ipaclient requirements to python-ipaclient and python2-gssapi to python-gssapi.

  • 0001-platform-add-Arch-Linux-platform.patch

I updated the ipa-client-install.1 patch to :

diff --git a/client/man/ipa-client-install.1 b/client/man/ipa-client-install.1
index 319952cb6..d01ccec64 100644
--- a/client/man/ipa-client-install.1
+++ b/client/man/ipa-client-install.1
@@ -270,6 +270,6 @@ Files updated, existing content is maintained:
 .br
 /etc/krb5.keytab
 .br
-/etc/sysconfig/network
+/etc/hostname

.TP

xenu commented on 2020-02-10 15:17 (UTC) (edited on 2020-02-11 14:29 (UTC) by xenu)

I get several errors trying to update to the latest 4.8.4-1 update (2020-02-10):

The first one happens during prepare when applying patches from ./0001-platform-add-Arch-Linux-platform.patch:

==> Starting prepare()...
patching file client/man/ipa-client-automount.1
Hunk #2 succeeded at 82 (offset 3 lines).
patching file client/man/ipa-client-install.1
Hunk #1 FAILED at 250.
Hunk #2 FAILED at 272.
2 out of 2 hunks FAILED -- saving rejects to file client/man/ipa-client-install.1.rej
patching file ipaplatform/arch/__init__.py
patching file ipaplatform/arch/constants.py
patching file ipaplatform/arch/paths.py
patching file ipaplatform/arch/services.py
patching file ipaplatform/arch/tasks.py
patching file ipaplatform/setup.py
Hunk #1 succeeded at 34 with fuzz 1.
    ==> ERROR: A failure occurred in prepare().
Aborting...

The patch file lines do not match the file to be patched. So I removed those lines and disabled the checksum (also tried just adding the new checksum). This lets me progress but fails at the python version check in the configure file. This file checks if python is >= 3.6 which fails because in the PKGBUILD the python is set to python2 by [i]export PYTHON=/usr/bin/python2[/i] for the non python3 build. I tried to fix this by adding a "sed -i 's/3.6/2.7/g' ../freeipa-${pkgver}/configure" to the prepare statement after the source is copied. After this change I get past this stage but run into the next error:

==> Leaving fakeroot environment.
==> Finished making: freeipa 4.8.4-1 (2020-02-11T14:23:58 CET)

loading packages...
resolving dependencies...
warning: cannot resolve "python-gssapi>=1.2.0", a dependency of "python-ipalib"
warning: cannot resolve "python-nss>=0.16", a dependency of "python-ipalib"
warning: cannot resolve "python-yubico>=1.2.3", a dependency of "python-ipalib"
warning: cannot resolve "python-ipalib=4.8.4-1", a dependency of "python-ipaclient"
warning: cannot resolve "python-gssapi>=1.2.0", a dependency of "python-ipalib"
warning: cannot resolve "python-nss>=0.16", a dependency of "python-ipalib"
warning: cannot resolve "python-yubico>=1.2.3", a dependency of "python-ipalib"
:: The following packages cannot be upgraded due to unresolvable dependencies:
      python-ipaclient  python-ipalib

:: Do you want to skip the above packages for this upgrade? [y/N]

Here I do not know how to continue. The mentioned packages appear to build fine before. I fear one of my previous "fixes" could be the reason and a proper fix for this package (or my system?) is needed. I also wonder if the python2 package variants are even needed anymore as python2 support was removed with freeipa 4.8.0 (https://fedoraproject.org/wiki/Changes/FreeIPA_Python_2_Removal)

EoleDev commented on 2019-12-09 15:42 (UTC)

Hi,

For authconfig, I found the old package and I just did some modifications.

You may find all the files needed on this repo : https://github.com/EoleDev/archlinux-authconfig

With this you may build freeipa and use it. I tried successfully.

DVS9999 commented on 2019-03-13 20:17 (UTC) (edited on 2019-03-13 20:26 (UTC) by DVS9999)

If trying to build on Antergos edit the PKGBUILD and add --with-ipaplatform=arch\ to the ./configure calls (there's two).

The python error No module named ipaplatform.tasks appears to be seems to be caused by python version mismatches. Editing /usr/bin/ipa-client-install post install and changing python2 to python3 seems to resolve the issue. Not sure how to fix in the PKGBUILD so the right Python version is in the executables.

c.monty commented on 2019-01-02 11:55 (UTC) (edited on 2019-01-02 11:56 (UTC) by c.monty)

You could modify the pkgbuild upfront when using AUR helper, e.g. trizen. I managed to complete build w/o authconfig, however the program ipa-client-install is not working:

[admin@pc7-cubi3 pkg]$ ipa-client-install --help
Traceback (most recent call last):
  File "/usr/bin/ipa-client-install", line 22, in <module>
    from ipaclient.install import ipa_client_install
  File "/usr/lib/python2.7/site-packages/ipaclient/install/ipa_client_install.py", line 5, in <module>
    from ipaclient.install import client
  File "/usr/lib/python2.7/site-packages/ipaclient/install/client.py", line 35, in <module>
    from ipalib import api, errors, x509
  File "/usr/lib/python2.7/site-packages/ipalib/__init__.py", line 919, in <module>
    from ipalib import plugable
  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 42, in <module>
    from ipalib.config import Env
  File "/usr/lib/python2.7/site-packages/ipalib/config.py", line 43, in <module>
    from ipaplatform.tasks import tasks
ImportError: No module named ipaplatform.tasks

Notavi commented on 2019-01-02 09:54 (UTC)

Hmm, it looks like one of the dependencies (authconfig) is no longer available on AUR. Does anyone have a workaround (or a copy of the old pkgbuild?)

sumebrius commented on 2018-09-02 06:43 (UTC) (edited on 2018-09-02 06:46 (UTC) by sumebrius)

Building this package doesn't seem to create the file /usr/lib/pythonX.Y/site-packages/ipaplatform/init.py, and so anything using that module crashes. eg. I'm getting the below traceback on running ipa-client-install after installing this package:

Traceback (most recent call last):
  File "/usr/bin/ipa-client-install", line 22, in <module>
    from ipaclient.install import ipa_client_install
  File "/usr/lib/python2.7/site-packages/ipaclient/install/ipa_client_install.py", line 5, in <module>
    from ipaclient.install import client
  File "/usr/lib/python2.7/site-packages/ipaclient/install/client.py", line 35, in <module>
    from ipalib import api, errors, x509
  File "/usr/lib/python2.7/site-packages/ipalib/__init__.py", line 919, in <module>
    from ipalib import plugable
  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 42, in <module>
    from ipalib.config import Env
  File "/usr/lib/python2.7/site-packages/ipalib/config.py", line 43, in <module>
    from ipaplatform.tasks import tasks
ImportError: No module named ipaplatform.tasks