1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
4 ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
6 ;;; This file is part of GNU Guix.
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.
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.
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/>.
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)
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)
39 #:use-module (gnu packages kerberos)
40 #:use-module (gnu packages libunistring)
41 #:use-module (gnu packages linux)
42 #:use-module (gnu packages nss)
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))
53 (define-public ding-libs
59 (uri (string-append "https://releases.pagure.org/SSSD/ding-libs/"
60 "ding-libs-" version ".tar.gz"))
63 "1h97mx2jdv4caiz4r7y8rxfsq78fx0k4jjnfp7x2s7xqvqks66d3"))))
64 (build-system gnu-build-system)
65 (home-page "https://pagure.io/SSSD/ding-libs/")
66 (synopsis "Libraries for SSSD")
68 "DING-LIBS (DING Is Not Glib) are a set of small, useful libraries that
69 the @dfn{System Security Services Daemon} (SSSD) uses and makes available to
70 other projects. They include: libdhash, an implementation of a dynamic hash
71 table which will dynamically resize to achieve optimal storage and access time
72 properties; ini_config, a library for parsing and managing @code{INI} files;
73 path_utils, a library to manage UNIX paths and subsets of paths; collection, a
74 generic, hierarchical grouping mechanism for complex data sets; ref_array, a
75 dynamically-growing, reference-counted array; libbasicobjects, a set of
76 fundamental object types for C.")
77 (license license:lgpl3+)))
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
88 (uri (string-append "https://releases.pagure.org/SSSD/sssd/"
89 "sssd-" version ".tar.gz"))
92 "1h6hwibaf3xa2w6qpzjiiywmfj6zkgbz4r2isf3gd0xm6vq7n6if"))
93 (patches (search-patches "sssd-fix-samba.patch"))))
94 (build-system gnu-build-system)
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
104 "XMLLINT_FLAGS = --catalogs --nonet --noent --xinclude --noout")
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")
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")
119 (string-append "--with-init-dir="
120 (assoc-ref %outputs "out")
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"))
129 (modify-phases %standard-phases
130 (add-after 'unpack 'disable-failing-test
132 (substitute* "src/tests/responder_socket_access-tests.c"
133 (("tcase_add_test\\(tc_utils, resp_str_to_array_test\\);") ""))
137 ("bind" ,isc-bind "utils")
140 ("cyrus-sasl" ,cyrus-sasl)
142 ("ding-libs" ,ding-libs)
145 ("http-parser" ,http-parser)
148 ("libselinux" ,libselinux)
149 ("libsemanage" ,libsemanage)
150 ("libunistring" ,libunistring)
151 ("linux-pam" ,linux-pam)
152 ("mit-krb5" ,mit-krb5)
154 ("openldap" ,openldap)
164 ("docbook-xsl" ,docbook-xsl)
165 ("docbook-xml" ,docbook-xml)
166 ("libxml2" ,libxml2) ; for xmllint
168 ("pkg-config" ,pkg-config)
169 ("util-linux" ,util-linux "lib"))) ;for uuid.h, reqired for KCM
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
173 access to identity and authentication remote resource through a common
174 framework that can provide caching and offline support to the system. It
175 provides PAM and NSS modules, and in the future will support D-BUS based
176 interfaces for extended user information. It also provides a better database
177 to store local users as well as extended user data.")
178 (license license:gpl3+)))