tags:

views:

123

answers:

0

I am trying to bind to an Active Directoy server using Ruby Net::LDAP, like so:

Net::LDAP.new(:host => "...", :port => "...", :encryption => :simple_tls,
              :auth => {:method => :sasl, ...

But I'm not sure how to specify they username and password. I can't seem to find any examples of using sasl. How do I specify my credentials?