gnu: facter: Update to 4.0.34.
[jackhill/guix/guix.git] / gnu / packages / sssd.scm
CommitLineData
dbe874dc
RW
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
1bc11c5d 3;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
b94098af 4;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
dbe874dc
RW
5;;;
6;;; This file is part of GNU Guix.
7;;;
8;;; GNU Guix is free software; you can redistribute it and/or modify it
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
13;;; GNU Guix is distributed in the hope that it will be useful, but
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20
21(define-module (gnu packages sssd)
22 #:use-module ((guix licenses) #:prefix license:)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix utils)
26 #:use-module (guix build-system gnu)
7fe4e556
RW
27 #:use-module (gnu packages)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages adns)
30 #:use-module (gnu packages augeas)
31 #:use-module (gnu packages check)
32 #:use-module (gnu packages curl)
33 #:use-module (gnu packages cyrus-sasl)
34 #:use-module (gnu packages databases)
35 #:use-module (gnu packages dns)
36 #:use-module (gnu packages docbook)
37 #:use-module (gnu packages documentation)
38 #:use-module (gnu packages glib)
aff0cce9 39 #:use-module (gnu packages kerberos)
7fe4e556
RW
40 #:use-module (gnu packages libunistring)
41 #:use-module (gnu packages linux)
aff0cce9 42 #:use-module (gnu packages nss)
7fe4e556
RW
43 #:use-module (gnu packages openldap)
44 #:use-module (gnu packages tls)
45 #:use-module (gnu packages pcre)
46 #:use-module (gnu packages popt)
47 #:use-module (gnu packages pkg-config)
48 #:use-module (gnu packages samba)
49 #:use-module (gnu packages selinux)
50 #:use-module (gnu packages web)
51 #:use-module (gnu packages xml))
dbe874dc
RW
52
53(define-public ding-libs
54 (package
55 (name "ding-libs")
3d96f232 56 (version "0.6.1")
dbe874dc
RW
57 (source (origin
58 (method url-fetch)
59 (uri (string-append "https://releases.pagure.org/SSSD/ding-libs/"
60 "ding-libs-" version ".tar.gz"))
61 (sha256
62 (base32
3d96f232 63 "1h97mx2jdv4caiz4r7y8rxfsq78fx0k4jjnfp7x2s7xqvqks66d3"))))
dbe874dc
RW
64 (build-system gnu-build-system)
65 (home-page "https://pagure.io/SSSD/ding-libs/")
66 (synopsis "Libraries for SSSD")
67 (description
68 "DING-LIBS (DING Is Not Glib) are a set of small, useful libraries that
69the @dfn{System Security Services Daemon} (SSSD) uses and makes available to
70other projects. They include: libdhash, an implementation of a dynamic hash
71table which will dynamically resize to achieve optimal storage and access time
72properties; ini_config, a library for parsing and managing @code{INI} files;
73path_utils, a library to manage UNIX paths and subsets of paths; collection, a
74generic, hierarchical grouping mechanism for complex data sets; ref_array, a
75dynamically-growing, reference-counted array; libbasicobjects, a set of
76fundamental object types for C.")
77 (license license:lgpl3+)))
7fe4e556
RW
78
79;; Note: This package installs modules for ldb and nss. For the former we
80;; need to set LDB_MODULES_PATH. For the latter LD_PRELOAD or LD_LIBRARY_PATH
81;; is needed.
82(define-public sssd
83 (package
84 (name "sssd")
b94098af 85 (version "1.16.5")
7fe4e556
RW
86 (source (origin
87 (method url-fetch)
b94098af 88 (uri (string-append "https://releases.pagure.org/SSSD/sssd/"
7fe4e556
RW
89 "sssd-" version ".tar.gz"))
90 (sha256
91 (base32
48eeee81
OP
92 "1h6hwibaf3xa2w6qpzjiiywmfj6zkgbz4r2isf3gd0xm6vq7n6if"))
93 (patches (search-patches "sssd-fix-samba.patch"))))
7fe4e556
RW
94 (build-system gnu-build-system)
95 (arguments
96 `(#:make-flags
97 (list (string-append "DOCBOOK_XSLT="
98 (assoc-ref %build-inputs "docbook-xsl")
99 "/xml/xsl/docbook-xsl-"
100 ,(package-version docbook-xsl)
101 "/manpages/docbook.xsl")
102 ;; Remove "--postvalid" option, because that requires access to
103 ;; online DTDs.
104 "XMLLINT_FLAGS = --catalogs --nonet --noent --xinclude --noout")
105 #:configure-flags
106 (list "--disable-cifs-idmap-plugin"
107 "--without-nfsv4-idmapd-plugin"
108 "--without-python2-bindings"
109 "--without-python3-bindings"
110 (string-append "--with-plugin-path="
111 (assoc-ref %outputs "out")
112 "/lib/sssd")
113 (string-append "--with-krb5-plugin-path="
114 (assoc-ref %outputs "out")
115 "/lib/krb5/plugins/libkrb5")
116 (string-append "--with-cifs-plugin-path="
117 (assoc-ref %outputs "out")
118 "/lib/cifs-utils")
119 (string-append "--with-init-dir="
120 (assoc-ref %outputs "out")
121 "/etc/init.d")
122 (string-append "--with-ldb-lib-dir="
123 (assoc-ref %outputs "out")
124 "/lib/ldb/modules/ldb")
125 (string-append "--with-xml-catalog-path="
126 (assoc-ref %build-inputs "docbook-xml")
127 "/xml/dtd/docbook/catalog.xml"))
128 #:phases
129 (modify-phases %standard-phases
130 (add-after 'unpack 'disable-failing-test
131 (lambda _
132 (substitute* "src/tests/responder_socket_access-tests.c"
133 (("tcase_add_test\\(tc_utils, resp_str_to_array_test\\);") ""))
134 #t)))))
135 (inputs
136 `(("augeas" ,augeas)
a0683006 137 ("bind" ,isc-bind "utils")
7fe4e556
RW
138 ("c-ares" ,c-ares)
139 ("curl" ,curl)
140 ("cyrus-sasl" ,cyrus-sasl)
141 ("dbus" ,dbus)
142 ("ding-libs" ,ding-libs)
143 ("glib" ,glib)
144 ("gnutls" ,gnutls)
145 ("http-parser" ,http-parser)
146 ("jansson" ,jansson)
147 ("ldb" ,ldb)
148 ("libselinux" ,libselinux)
149 ("libsemanage" ,libsemanage)
150 ("libunistring" ,libunistring)
151 ("linux-pam" ,linux-pam)
152 ("mit-krb5" ,mit-krb5)
153 ("nss" ,nss)
154 ("openldap" ,openldap)
155 ("openssl" ,openssl)
156 ("pcre" ,pcre)
157 ("popt" ,popt)
158 ("samba" ,samba)
159 ("talloc" ,talloc)
160 ("tdb" ,tdb)
161 ("tevent" ,tevent)))
162 (native-inputs
163 `(("check" ,check)
164 ("docbook-xsl" ,docbook-xsl)
165 ("docbook-xml" ,docbook-xml)
2b783601 166 ("libxml2" ,libxml2) ; for xmllint
7fe4e556 167 ("libxslt" ,libxslt)
4f9dd97e 168 ("pkg-config" ,pkg-config)
bb93042c 169 ("util-linux" ,util-linux "lib"))) ;for uuid.h, reqired for KCM
7fe4e556
RW
170 (home-page "https://pagure.io/SSSD/sssd/")
171 (synopsis "System security services daemon")
172 (description "SSSD is a system daemon. Its primary function is to provide
173access to identity and authentication remote resource through a common
174framework that can provide caching and offline support to the system. It
65808ba4
TGR
175provides PAM and NSS modules, and in the future will support D-BUS based
176interfaces for extended user information. It also provides a better database
177to store local users as well as extended user data.")
7fe4e556 178 (license license:gpl3+)))