# File lib/active_ldap/connection.rb, line 115 def retrieve_connection conn = nil name = active_connection_name raise ConnectionNotEstablished unless name conn = active_connections[name] if conn.nil? config = configuration(name) raise ConnectionNotEstablished unless config self.connection = config conn = active_connections[name] end raise ConnectionNotEstablished if conn.nil? conn end