Save yourself a lot of integraton work and depency resolution. Hop over to https://github.com/nkadel/samba-4.0.7-srpm and grab my tools for building RHEL 6.x compatibe RPM's for the full toolsuite. All the necessary dependencies are in the .spec file, you can use "make build" to build the RP{M's locally, and it publishes the RPM information so that other software with Samba RPM integration, such as "pam" or "authconfig", know where to find all the components.
It's backported from Fedora, I updated it a few days ago to Samba 4.0.7, and it has flags to compile with or without full domain controller services. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba