Improved print() for domains
Implemented LDAP support