Question
Error "ERROR:Operations error"
when accessing LDAP at the domain root: "basedn": "dc=domain,dc=ru"
Answer
When searching in the root domain in Active Directory, you need to specify ldap_set_option($ldap, LDAP_OPT_REFERRALS, 0);
To pass this parameter, you need to fill in the h_version field of the LDAP settings table in Totum.
Field parameter h_version:
{
"LDAP_OPT_REFERRALS": "0",
}
In this form, the parameters are passed to ldap_set_option
with the specified $ldap
:
If you need to pass without $ldap
, you need to specify the prefix G_
for the parameter:
{
"G_LDAP_OPT_REFERRALS": "0",
}