Fixed ldap search_mode_2
Merge pull request #4 from wagnerand/master

Fixed ldap search_mode_2