mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
9 lines
275 B
Ruby
9 lines
275 B
Ruby
# Baseline: filter is a literal string, no taint reaches the search call.
|
|
require "net/ldap"
|
|
|
|
class UsersController
|
|
def lookup
|
|
ldap = Net::LDAP.new(host: "ldap.example.com")
|
|
ldap.search(base: "ou=people,dc=example,dc=com", filter: "(objectClass=person)")
|
|
end
|
|
end
|