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
962 B

  1. --- a/source3/wscript
  2. +++ b/source3/wscript
  3. @@ -907,7 +907,7 @@ msg.msg_accrightslen = sizeof(fd);
  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. @@ -984,6 +984,17 @@ int i; i = PAM_RADIO_TYPE;
  12. "or headers not found. Use --without-pam to disable "
  13. "PAM support.");
  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. #