mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
13 lines
333 B
C++
13 lines
333 B
C++
|
|
// Baseline: literal filter, no taint reaches the sink.
|
||
|
|
#include <ldap.h>
|
||
|
|
|
||
|
|
int do_lookup(LDAP* ld) {
|
||
|
|
LDAPMessage* res = nullptr;
|
||
|
|
return ldap_search_ext_s(
|
||
|
|
ld,
|
||
|
|
"ou=people,dc=example,dc=com",
|
||
|
|
LDAP_SCOPE_SUBTREE,
|
||
|
|
"(objectClass=person)",
|
||
|
|
nullptr, 0, nullptr, nullptr, nullptr, 0, &res);
|
||
|
|
}
|