nyx/tests/fixtures/ldap_injection/c/baseline_constant_ldap.c
2026-05-07 01:29:31 -04:00

12 lines
333 B
C

/* Baseline: filter is a string literal, no LDAP_INJECTION finding. */
#include <ldap.h>
int do_lookup(LDAP *ld) {
LDAPMessage *res = NULL;
return ldap_search_ext_s(
ld,
"ou=people,dc=example,dc=com",
LDAP_SCOPE_SUBTREE,
"(objectClass=person)",
NULL, 0, NULL, NULL, NULL, 0, &res);
}