There's a closed pull request on the Samba Samba Github repository Make ldb configuration --disable-python work https://github.com/samba-team/samba/pull/188 Description: Fix broken in ldb 1.3 --disable-python configuration option.