Don't connect to LDAP until we need to.

Preserve compatability with previous versions of TLDAP.

Change-Id: I09de5044a9f9a2fde864f362efdb28b439fc3fc2
Python 3 tests.

Change-Id: I10f2b5edb50bd2d7a8ab888b4b097a09bdb3ba8d