fix ldap enable bug
Merge pull request #5 from terro/master

fix ldap enable bug