DataError exception is checked for cases where ldap entries are longer then the user field's max length. i.e., if givenName is longer than 30 characters, django throws a DataError stating 'Data too long for column 'first_name' at row 1'