Added support for LDAP PLAIN authentication, Issue #1009