anchor.diff:      ++ stdenv.lib.optional (cyrus_sasl == null) "--without-cyrus-sasl"
       ++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
   
  +  postBuild = ''
  +    make $makeFlags -C contrib/slapd-modules/passwd/sha2
  +    make $makeFlags -C contrib/slapd-modules/passwd/pbkdf2
  +  '';
  +
     doCheck = false; # needs a running LDAP server
   
  -  installFlags = [ "sysconfdir=$(out)/etc" "localstatedir=$(out)/var" ];
  +  installFlags = [
  +    "sysconfdir=$(out)/etc"
  +    "localstatedir=$(out)/var"
  +    "moduledir=$(out)/lib/modules"
  +  ];
   
     # 1. Fixup broken libtool
     # 2. Libraries left in the build location confuse `patchelf --shrink-rpath`
  
positive.code: 
      rm -rf $out/var
      rm -r libraries/*/.libs
    '';
  
    postInstall = ''
      chmod +x "$out"/lib/*.{so,dylib}
    '';
  
  
negative.code: 
    # Disable install stripping as it breaks cross-compiling.
    # We strip binaries anyway in fixupPhase.
    makeFlags= [
      "STRIP="
      "prefix=$(out)"
      "moduledir=$(out)/lib/modules"
    ];
  
    configureFlags = [
      "--enable-overlays"
  