Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filter = Net::LDAP::Filter.eq("cn", "Josh*")
- base = "dc=alliance-dc,dc=alliance"
- ldap.search(:base => base, :filter => filter) do |entry|
- puts "DN: #{entry.dn}"
- entry.each do |attribute, values|
- puts " #{attribute}:"
- values.each do |value|
- puts " --->#{value}"
- end
- end
- end
Add Comment
Please, Sign In to add comment