LDAP class, some input validation, better example, etc...