mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-21 20:18:06 +02:00
12 lines
333 B
C
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);
|
|
}
|