Skip users without UID or UID longer than SQL column.
Deal with different naming conventions for LDAP schemas.
Fix paged results control code for python-ldap < 2.4.