LDAP_EXTENDED_OPERATION(3)
πΈ NAME πΈ
okay so this is LDAP_EXTENDED_OPERATION(3) from the Library Functions Manual, and it's literally the page for ldap_extended_operation and ldap_extended_operation_s β both of them extend the LDAP operations to the LDAP server. periodt β¨
π LIBRARY π
OpenLDAP LDAP (libldap, -lldap) β yes bestie, that's the one π«Ά
β¨ SYNOPSIS β¨
#include <ldap.h>
int ldap_extended_operation(
LDAP *ld,
const char *requestoid,
const struct berval *requestdata,
LDAPControl **sctrls,
LDAPControl **cctrls,
int *msgidp );
int ldap_extended_operation_s(
LDAP *ld,
const char *requestoid,
const struct berval *requestdata,
LDAPControl **sctrls,
LDAPControl **cctrls,
char **retoidp,
struct berval **retdatap );
π DESCRIPTION π
okay bestie, let's get into it π. ldap_extended_operation_s() is the synchronous girlie used to perform an LDAP extended operation. She takes requestoid, which points to a dotted-decimal OID string identifying the extended operation to perform. requestdata is the data required for the request. sctrls is an array of LDAPControl structures to use with this extended operation. cctrls is an array of LDAPControl structures that list the client controls to use with this extended operation.
then there's the output side, and it's giving very important π:
retoidpβ points to a dotted-decimal OID string returned by the LDAP server. the memory used by that string should be freed withldap_memfree(3), no cap π§retdatapβ points to a pointer to abervalstructure that contains the returned data. if the server returns no data, the pointer is set toNULLβ yes,NULL, bestie π. the memory used by this structure should be freed withber_bvfree(3).
and ldap_extended_operation()? she works just like ldap_extended_operation_s(), except the operation is asynchronous π. she provides the message id of the request she initiated in the integer pointed to by msgidp. you can get the result of this operation by calling ldap_result(3) β iconic behavior, honestly π₯.
π SEE ALSO π
go read up, bestie: ber_bvfree(3), ldap_memfree(3), ldap_parse_extended_result(3), ldap_result(3) π
π«Ά ACKNOWLEDGEMENTS π«Ά
OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from the University of Michigan LDAP 3.3 Release. slay π
mwah π β this page is OpenLDAP 2.6.16, dated 2026/10/21. bye bestie, stay iconic! π¦
π¦ where this page comes from
- fedora 44: openldap-devel 2.6.16-1.fc44 Β· OLDAP-2.8
- fedora 44: openldap-devel 2.6.16-1.fc44 Β· OLDAP-2.8
- Copyright 1998-2026 The OpenLDAP Foundation All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms