LDB is the database engine used in Samba4. For further information see .
Installing in debian/ubuntu:
apt-get install python-ldb
All RPC protocols have python bindings avaiable generated by PIDL and exposed as samba.dcerpc.protocol
There is some other modules, we need to describe them there.