LDAP: fix TLS detection
remove unused variables
LDAP: only read config from database, if configID is given. Not what we want to do when on-the-fly-testing settings from the admin page
typo, grammar
Merge pull request #6408 from owncloud/ldap_fix_tls_detection

LDAP fix TLS detection