Port init_ldap from django_placard

This is a copy of the init_ldap script from placard which has been
updated to work with the latest version of tldap.