ldap.py: Use constants where possible.