Add ldap function
Merge pull request #9 from luxiaotong/master

Add ldap function