diff --git a/glicid/packages/openldap.scm b/glicid/packages/openldap.scm index 57d4f83..8fe1c62 100644 --- a/glicid/packages/openldap.scm +++ b/glicid/packages/openldap.scm @@ -129,9 +129,52 @@ ) ) - (define-public nss-pam-ldapd (package - (inherit gnu:nss-pam-ldapd) + (name "nss-pam-ldapd") + (version "0.9.12") + (source (origin + (method url-fetch) + (uri (string-append "https://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-" version ".tar.gz")) + (sha256 (base32 "050fzcmxmf6y15dlcffc4gxr3wkk7fliqqwhlwqzbjwk8vkn3mn6")) + )) + (build-system gnu-build-system) + (arguments + `( + #:configure-flags + (list (string-append + "--with-pam-seclib-dir=" (assoc-ref %outputs "out") "/lib/security/") + "--with-ldap-conf-file=/etc/nslcd.conf" + ) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'override-nslcd.conf-install-path + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "Makefile.in" + ( + ("\\$\\(DESTDIR\\)\\$\\(NSLCD_CONF_PATH\\)") + (string-append (assoc-ref outputs "out") "/etc/nslcd.conf.example") + ) + ) + ) + ) + ) + ) + ) + (inputs `( + ("linux-pam" ,linux-pam) + ("openldap" ,openldap) + ("mit-krb5" ,mit-krb5) + ("python" ,python) + )) + (home-page "https://arthurdejong.org/nss-pam-ldapd") + (synopsis "NSS and PAM modules for LDAP") + (description "nss-pam-ldapd provides a @dfn{Name Service Switch} (NSS) +module that allows your LDAP server to provide user account, group, host name, +alias, netgroup, and basically any other information that you would normally +get from @file{/etc} flat files or NIS. It also provides a @dfn{Pluggable +Authentication Module} (PAM) to do identity and authentication management with +an LDAP server.") + (license lgpl2.1+) ) )