You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
895 B

  1. --- samba-4.4.0rc2/source3/wscript
  2. +++ samba-4.4.0rc2/source3/wscript
  3. @@ -870,7 +870,7 @@
  4. if conf.env.with_iconv:
  5. conf.DEFINE('HAVE_ICONV', 1)
  6. - if Options.options.with_pam:
  7. + if Options.options.with_pam != False:
  8. use_pam=True
  9. conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h')
  10. if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'):
  11. @@ -943,6 +943,17 @@
  12. conf.DEFINE('WITH_PAM', 1)
  13. conf.DEFINE('WITH_PAM_MODULES', 1)
  14. + else:
  15. + Logs.warn("PAM disabled")
  16. + use_pam=False
  17. + conf.undefine('WITH_PAM')
  18. + conf.undefine('WITH_PAM_MODULES')
  19. + conf.undefine('HAVE_SECURITY_PAM_APPL_H')
  20. + conf.undefine('PAM_RHOST')
  21. + conf.undefine('PAM_TTY')
  22. + conf.undefine('HAVE_PAM_PAM_APPL_H')
  23. +
  24. +
  25. seteuid = False
  26. #