Looking thru the testcode and older entries in the mailinglist there seems to be no easy way to push a certificate for a testuser via the LDAP connection with Python.

Using the openldap client is the only option I can think of.
Are there any better ideas out there?