Skip to content

Instantly share code, notes, and snippets.

View dpogorzelski's full-sized avatar

Dawid Pogorzelski dpogorzelski

View GitHub Profile
@dpogorzelski
dpogorzelski / gist:2702690
Created May 15, 2012 15:33
Get LDAP users from WMS
require 'net/ldap'
ldap = Net::LDAP.new
ldap.host = "192.168.222.154"
ldap.port = 389
ldap.auth "cn=netreader,dc=wildix", "wildix"
if !ldap.bind
puts "Connection failed"
end