You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sebastian Bazley <se...@apache.org> on 2016/02/04 12:40:54 UTC

[whimsy.git] [1/1] Commit 9fb5127: Bug

Commit 9fb5127113e61d01c114569ad70c4e02faa8ecca:
    Bug


Branch: refs/heads/master
Author: Sebb <se...@apache.org>
Committer: Sebb <se...@apache.org>
Pusher: sebb <se...@apache.org>

------------------------------------------------------------
lib/whimsy/asf/ldap.rb                                       | + -
------------------------------------------------------------
2 changes: 1 additions, 1 deletions.
------------------------------------------------------------


diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index c1cc777..5f42113 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -123,7 +123,7 @@ def self.search_one(base, filter, attrs=nil)
     init_ldap unless defined? @ldap
     return [] unless @ldap
 
-    target = @ldap.get_option(LDAP::LDAP_OPT_HOST_NAME) rescue '?'
+    target = @ldap.get_option(::LDAP::LDAP_OPT_HOST_NAME) rescue '?'
     cmd = "ldapsearch -x -LLL -b #{base} -s one #{filter} " +
       "#{[attrs].flatten.join(' ')}"