Directory Services

LDAP_SERVER_DOMAIN_SCOPE_OID

The LDAP_SERVER_DOMAIN_SCOPE_OID control is used to tell the LDAP server not to generate any referrals when completing a request. This control also limits any search using it to a single naming context.

To use this control, set the members of the LDAPControl structure as follows:

PWCHAR ldctl_oid = LDAP_SERVER_DOMAIN_SCOPE_OID;
struct berval ldctl_value = {0, NULL};
BOOLEAN ldctl_iscritical;

Members

ldctl_oid
LDAP_SERVER_DOMAIN_SCOPE_OID, which is defined as "1.2.840.113556.1.4.1339"
ldctl_value
No data for this control. In the berval structure, set bv_len to zero and bv_val to NULL.
ldctl_iscritical
Can be TRUE or FALSE depending on whether the referral limitation is critical to your application.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Winldap.h.