summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/libraries/openldap/default.nix12
-rw-r--r--pkgs/os-specific/linux/pam_ldap/default.nix16
-rw-r--r--pkgs/top-level/all-packages.nix8
3 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/libraries/openldap/default.nix b/pkgs/development/libraries/openldap/default.nix
new file mode 100644
index 00000000000..eb076f461d5
--- /dev/null
+++ b/pkgs/development/libraries/openldap/default.nix
@@ -0,0 +1,12 @@
+{stdenv, fetchurl, openssl}:
+
+stdenv.mkDerivation {
+  name = "openldap-2.3.32";
+  src = fetchurl {
+    url = ftp://ftp.nl.uu.net/pub/unix/db/openldap/openldap-release/openldap-2.3.32.tgz;
+    md5 = "154d674cf95a8f8acc496cc6cb0671e1";
+  };
+  buildInputs = [openssl];
+  configureFlags = "--disable-slapd --disable-static";
+  dontPatchELF = 1; # !!!
+}
diff --git a/pkgs/os-specific/linux/pam_ldap/default.nix b/pkgs/os-specific/linux/pam_ldap/default.nix
new file mode 100644
index 00000000000..cb37e4a1815
--- /dev/null
+++ b/pkgs/os-specific/linux/pam_ldap/default.nix
@@ -0,0 +1,16 @@
+{stdenv, fetchurl, pam, openldap}:
+   
+stdenv.mkDerivation {
+  name = "pam_ldap-183";
+   
+  src = fetchurl {
+    url = http://www.padl.com/download/pam_ldap-183.tar.gz;
+    md5 = "c0ad81e9d9712ddc6599a6e7a1688778";
+  };
+
+  preInstall = "
+    substituteInPlace Makefile --replace '-o root -g root' ''
+  ";
+
+  buildInputs = [pam openldap];
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 064985b32ee..c3881bebd7c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1588,6 +1588,10 @@ rec {
     inherit fetchurl stdenv alsaLib autoconf automake libtool;
   };
 
+  openldap = import ../development/libraries/openldap {
+    inherit fetchurl stdenv openssl;
+  };
+
   openssl = import ../development/libraries/openssl {
     inherit fetchurl stdenv perl;
   };
@@ -2286,6 +2290,10 @@ rec {
     inherit stdenv fetchurl cracklib flex;
   };
 
+  pam_ldap = import ../os-specific/linux/pam_ldap {
+    inherit stdenv fetchurl pam openldap;
+  };
+
   pam_login = import ../os-specific/linux/pam_login {
     inherit stdenv fetchurl pam;
   };