if  spell_ok  openldap  &&
    spell_ok  krb5;     then
  config_query  SAMBA_AD                                                  \
    "Enable Active Directory Support ?\n(Requires openldap and krb5)"  y
else
  config_query  SAMBA_AD                                                  \
    "Enable Active Directory Support ?\n(Requires openldap and krb5)"  n
fi  &&

#config_query  SAMBA_SUID                                                \
#  "Do you want to install mount tools suid root?"                    n  &&

config_query_option  SAMBA_QUOTA  "Enable disk-quota support?"       n  \
                     '--with-quotas'  '--without-quotas'                &&

message "Samba can use samba-vfs with a virus scanner,"               &&
message "You will still have to select which scanner to use."        &&
config_query  SAMBA_VSCAN  "Do you want to add support for on-access virus scannning?" n &&

# must be the last query
if spell_ok tdb || spell_ok talloc; then
  message "${MESSAGE_COLOR}Installed versions of tdb and/or talloc spells detected." &&
  message "You won't be able to use internal copies of them from $SPELL.${DEFAULT_COLOR}" &&
  config_query SAMBA_CROSSLIB "Do you want to avoid that and run conflicts procedure?" n
fi
