Directory Services |
The LDAP_TTL_EXTENDED_OP_OID can be present in the supportedExtensions attribute of the rootDSE of an Active Directory server. If present, it indicates that the Active Directory server provides support for dynamic objects as defined in RFC 2589. It can also be sent to an Active Directory server to refresh a specific Dynamic Object that has already been created. For information about using this feature of Active Directory, see Dynamic Objects.
To use this extended operation, set the arguments of the call to ldap_extended_operation_s as shown in the following code example.
LDAP* ld, PCHAR Oid = LDAP_TTL_EXTENDED_OP_OID, struct berval* Data, PLDAPControl* ServerControls = NULL, PLDAPControl* ClientControls = NULL, PCHAR* ReturnedOid = NULL, struct berval** ReturnedData
The LDAP_TTL_EXTENDED_OP_OID is used to refresh an Active Directory dynamic object. For more information about creating and refreshing dynamic objects, see Dynamic Objects.
To refresh a specific dynamic object, a BER-encoded sequence of parameters that specifies the object must be created per RFC 2589 as follows.
Sequence { entryName OCTET STRING requestTtl INTEGER }
If a new TTL value is returned by a server in response to a client's LDAP_TTL_EXTENDED_OP_OID extended operation request, the value will be returned as a BER-encoded sequence as follows.
Sequence { responseTTL INTEGER }
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 ntldap.h.