1N/A#
pragma ident "%Z%%M% %I% %E% SMI" 1N/A/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 1N/A * The contents of this file are subject to the Netscape Public License 1N/A * Version 1.0 (the "NPL"); you may not use this file except in 1N/A * compliance with the NPL. You may obtain a copy of the NPL at 1N/A * Software distributed under the NPL is distributed on an "AS IS" basis, 1N/A * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL 1N/A * for the specific language governing rights and limitations under the 1N/A * The Initial Developer of this code under the NPL is Netscape 1N/A * Communications Corporation. Portions created by Netscape are 1N/A * Copyright (C) 1998 Netscape Communications Corporation. All Rights 1N/A * ldap_extended_operation - initiate an arbitrary ldapv3 extended operation. 1N/A * the oid and data of the extended operation are supplied. Returns an 1N/A * struct berval exdata; 1N/A * ... fill in oid and data ... 1N/A * err = ldap_extended_operation( ld, exoid, &exdata, NULL, NULL, &msgid ); 1N/A * the ldapv3 extended operation request looks like this: 1N/A * ExtendedRequest ::= [APPLICATION 23] SEQUENCE { 1N/A * requestName LDAPOID, 1N/A * requestValue OCTET STRING 1N/A * all wrapped up in an LDAPMessage sequence. 1N/A /* only ldapv3 or higher can do extended operations */ 1N/A /* create a message to send */ 1N/A /* send the message */ 1N/A * ldap_extended_operation_s - perform an arbitrary ldapv3 extended operation. 1N/A * the oid and data of the extended operation are supplied. LDAP_SUCCESS 1N/A * is returned upon success, the ldap error code otherwise. 1N/A * struct berval exdata, exretval; 1N/A * ... fill in oid and data ... 1N/A * rc = ldap_extended_operation_s( ld, exoid, &exdata, &exretval ); 1N/A * Pull the oid returned by the server and the data out of an extended 1N/A * operation result. Return an LDAP error code.