Guest User

Untitled

a guest
Jun 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. ('a' .. 'z').each { |alpha|
  2. filter = Net::LDAP::Filter.eq("uid", "#{alpha}*")
  3. ldap.search( :base => onid_ldap[:base], :filter => filter) { |entry|
  4. puts "DN: #{entry.dn}"
  5. entry.each { |attribute, values|
  6. puts " #{attribute}:"
  7. values.each { |value|
  8. puts " --> #{value}"
  9. }
  10. }
  11. }
  12. }
Add Comment
Please, Sign In to add comment