add LDAP-based authentication support

add LDAP-based authentication support,it's OK in my local enviroment