summary refs log tree commit diff
path: root/pkgs/os-specific/linux/pam_ldap/default.nix
blob: 1eee7dbdac2b92217b54502c508ccb56a9ba8107 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{stdenv, fetchurl, pam, openldap}:
   
stdenv.mkDerivation rec {
  name = "pam_ldap-183";
   
  src = fetchurl {
    url = "http://www.padl.com/download/${name}.tar.gz";
    sha256 = "1l0mlwvas9dnsfcgbszbzq3bzhdkibn1c3x15fczq3i82faf5g5a";
  };

  preInstall = "
    substituteInPlace Makefile --replace '-o root -g root' ''
  ";

  buildInputs = [pam openldap];

  meta = {
    homepage = http://www.padl.com/OSS/pam_ldap.html;
    description = "LDAP backend for PAM";
    longDescription = ''
      The pam_ldap module provides the means for Solaris and Linux servers and
      workstations to authenticate against LDAP directories, and to change their
      passwords in the directory.'';
    license = "LGPL";
    inherit (pam.meta) platforms;
  };
}