There's a closed pull request on the Samba Samba Github repository Python ldb Py_ssize_t fixes https://github.com/samba-team/samba/pull/50 Description: This should fix issues on s390x in recent ldb, by being strict about always using py_ssize_t I also clean up some code supporting Python 2.4, which we no longer support