If you're not sure how your server is configured or don't have control over it, you'll probably want to add some validation to the login form to be safe. You can also use AUTH_LDAP_USER_FLAGS_BY_GROUP to set the is_active flag by group membership, so that only explicitly activated users can log in.