Added security (Kerberos/LDAP) support; untested