add TLS option for ldap auth
Merge pull request #430 from pwyliu/tls_option

add TLS option for ldap auth