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