I filed this bug upstream for the time being, since the mailing list threads about this topic all died with no clear solution: https://bugzilla.samba.org/show_bug.cgi?id=13697