Update utils.py

For ldap backends, the id could be just a username