Please use this as a reference point only, anywhere there is an = after and emerge command, it is installing a specific version, this can cause issues with newer samba releases.
# USE="dlz python gssapi" emerge cyrus-sasl heimdal bind bind-tools gnutls dnspython gdb libidn subunit # ACCEPT_KEYWORDS="~amd64" USE="python" emerge =sys-libs/tdb-1.2.10 =sys-libs/tevent-0.9.15 =sys-libs/ldb-1.1.12
Obviously that would be ~x86 instead of ~amd64 on a x86 arch, also don't forget to
# eselect python set 1
where 1 is python 2.X (3.X is not yet supported) if you don't know which version you are using, eselect python list will give you a list of available ones.