gnu: ethtool: Update to 4.10.
[jackhill/guix/guix.git] / gnu / packages / openldap.scm
CommitLineData
2a75d4e6 1;;; GNU Guix --- Functional package management for GNU
3246cc91 2;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
2a75d4e6 3;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
80c13759 4;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
f8fe0e9d 5;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
2a75d4e6
AE
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
22(define-module (gnu packages openldap)
23 #:use-module (gnu packages autotools)
5f96f303 24 #:use-module (gnu packages databases)
2a75d4e6
AE
25 #:use-module (gnu packages compression)
26 #:use-module (gnu packages cyrus-sasl)
27 #:use-module (gnu packages gnupg)
28 #:use-module (gnu packages groff)
29 #:use-module (gnu packages icu4c)
f8fe0e9d
RW
30 #:use-module (gnu packages linux)
31 #:use-module (gnu packages python)
cc2b77df 32 #:use-module (gnu packages tls)
f8fe0e9d 33 #:use-module ((guix licenses) #:select (openldap2.8 lgpl2.1+))
2a75d4e6
AE
34 #:use-module (guix packages)
35 #:use-module (guix download)
36 #:use-module (guix build-system gnu))
37
38(define-public openldap
39 (package
40 (name "openldap")
ec0ea24d 41 (version "2.4.44")
2a75d4e6
AE
42 (source (origin
43 (method url-fetch)
969ee403
LC
44
45 ;; See <http://www.openldap.org/software/download/> for a list of
46 ;; mirrors.
47 (uri (list (string-append
48 "ftp://mirror.switch.ch/mirror/OpenLDAP/"
49 "openldap-release/openldap-" version ".tgz")
50 (string-append
51 "ftp://ftp.OpenLDAP.org/pub/OpenLDAP/"
52 "openldap-release/openldap-" version ".tgz")
53 (string-append
54 "ftp://ftp.dti.ad.jp/pub/net/OpenLDAP/"
55 "openldap-release/openldap-" version ".tgz")))
56 (sha256
57 (base32
ec0ea24d 58 "0044p20hx07fwgw2mbwj1fkx04615hhs1qyx4mawj2bhqvrnppnp"))))
2a75d4e6 59 (build-system gnu-build-system)
a0adbb04 60 (inputs `(("bdb" ,bdb-5.3)
2a75d4e6 61 ("cyrus-sasl" ,cyrus-sasl)
217f3fdf 62 ("gnutls" ,gnutls)
2a75d4e6
AE
63 ("groff" ,groff)
64 ("icu4c" ,icu4c)
65 ("libgcrypt" ,libgcrypt)
2a75d4e6 66 ("zlib" ,zlib)))
3246cc91 67 (native-inputs `(("libtool" ,libtool)))
2a75d4e6 68 (arguments
c3f97617 69 `(#:tests? #f
2a75d4e6 70 #:phases
d4bf49b1
EB
71 (alist-cons-after
72 'configure 'provide-libtool
73 (lambda _ (copy-file (which "libtool") "libtool"))
c3f97617 74 %standard-phases)))
d4bf49b1 75 (synopsis "Implementation of the Lightweight Directory Access Protocol")
2a75d4e6
AE
76 (description
77 "OpenLDAP is a free implementation of the Lightweight Directory Access Protocol.")
78 (license openldap2.8)
79 (home-page "http://www.openldap.org/")))
f8fe0e9d
RW
80
81(define-public nss-pam-ldapd
82 (package
83 (name "nss-pam-ldapd")
84 (version "0.9.7")
85 (source (origin
86 (method url-fetch)
87 (uri (string-append "https://arthurdejong.org/nss-pam-ldapd/"
88 "nss-pam-ldapd-" version ".tar.gz"))
89 (sha256
90 (base32
91 "1sw36w6zkzvabvjckqick032j5p5xi0qi3sgnh0znzxz31jqvf0d"))))
92 (build-system gnu-build-system)
93 (arguments
94 `(#:configure-flags
95 (list (string-append "--with-pam-seclib-dir="
96 (assoc-ref %outputs "out") "/lib/security/")
97 (string-append "--with-ldap-conf-file="
98 (assoc-ref %outputs "out") "/etc/nslcd.conf"))))
99 (inputs
100 `(("linux-pam" ,linux-pam)
101 ("openldap" ,openldap)
102 ("python" ,python-2)))
103 (home-page "https://arthurdejong.org/nss-pam-ldapd")
104 (synopsis "NSS and PAM modules for LDAP")
105 (description "nss-pam-ldapd provides a @dfn{Name Service Switch} (NSS)
106module that allows your LDAP server to provide user account, group, host name,
107alias, netgroup, and basically any other information that you would normally
108get from @file{/etc} flat files or NIS. It also provides a @dfn{Pluggable
109Authentication Module} (PAM) to do identity and authentication management with
110an LDAP server.")
111 (license lgpl2.1+)))