Created attachment 7988 [details]
The options --with-pam_smbpass --without-pam_smbpass don't work cause they are not honored. The attached patch fixes this.
Comment on attachment 7988 [details]
Looks good, we indeed should follow options we have set during configure stage.
Pushed patch to autobuild-v4-0-test.
Closing out bug report.