Support Django 1.5 custom User models
Refactor LDAP connectivity and user creation code