Update ldap.rb

based on sdframond's fix