anchor.diff:        "--localstatedir=/var"
       ]
       ++ optional (!enableDomainController) "--without-ad-dc"
  -    ++ optionals (!enableLDAP) [ "--without-ldap" "--without-ads" ];
  +    ++ optionals (!enableLDAP) [ "--without-ldap" "--without-ads" ]
  +    ++ optional (!enableAcl) "--without-acl-support"
  +    ++ optional (!enablePam) "--without-pam";
   
     # To build in parallel.
     buildPhase = "python buildtools/bin/waf build -j $NIX_BUILD_CORES";
  
positive.code: { lib, stdenv, fetchurl, python, pkgconfig, perl, libxslt, docbook_xsl
  , docbook_xml_dtd_42, docbook_xml_dtd_45, readline, talloc
  , popt, iniparser, libbsd, libarchive, libiconv, gettext
  , krb5Full, zlib, openldap, cups, pam, avahi, acl, libaio, fam, libceph, glusterfs
  
negative.code:     ++ optional enableDomainController gnutls
      ++ optional enableRegedit ncurses
      ++ optional (enableCephFS && stdenv.isLinux) libceph
      ++ optional (enableGlusterFS && stdenv.isLinux) glusterfs
      ++ optional enableAcl acl
      ++ optional enablePam pam;
  
    postPatch = ''
      # Removes absolute paths in scripts
  