| 1 |
/* OpenLDAP WiredTiger backend */ |
| 2 |
/* $OpenLDAP$ */ |
| 3 |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
| 4 |
* |
| 5 |
* Copyright 2002-2024 The OpenLDAP Foundation. |
| 6 |
* All rights reserved. |
| 7 |
* |
| 8 |
* Redistribution and use in source and binary forms, with or without |
| 9 |
* modification, are permitted only as authorized by the OpenLDAP |
| 10 |
* Public License. |
| 11 |
* |
| 12 |
* A copy of this license is available in the file LICENSE in the |
| 13 |
* top-level directory of the distribution or, alternatively, at |
| 14 |
* <http://www.OpenLDAP.org/license.html>. |
| 15 |
*/ |
| 16 |
/* ACKNOWLEDGEMENTS: |
| 17 |
* This work was developed by HAMANO Tsukasa <[email protected]> |
| 18 |
* based on back-bdb for inclusion in OpenLDAP Software. |
| 19 |
* WiredTiger is a product of MongoDB Inc. |
| 20 |
*/ |
| 21 |
|
| 22 |
#include "portable.h" |
| 23 |
|
| 24 |
#include <stdio.h> |
| 25 |
#include <ac/string.h> |
| 26 |
|
| 27 |
#include "back-wt.h" |
| 28 |
#include "lber_pvt.h" |
| 29 |
|
| 30 |
static struct exop { |
| 31 |
struct berval *oid; |
| 32 |
BI_op_extended *extended; |
| 33 |
} exop_table[] = { |
| 34 |
{ NULL, NULL } |
| 35 |
}; |
| 36 |
|
| 37 |
int |
| 38 |
wt_extended( Operation *op, SlapReply *rs ) |
| 39 |
{ |
| 40 |
int i; |
| 41 |
|
| 42 |
for( i=0; exop_table[i].extended != NULL; i++ ) { |
| 43 |
if( ber_bvcmp( exop_table[i].oid, &op->oq_extended.rs_reqoid ) == 0 ) { |
| 44 |
return (exop_table[i].extended)( op, rs ); |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
rs->sr_text = "not supported within naming context"; |
| 49 |
return rs->sr_err = LDAP_UNWILLING_TO_PERFORM; |
| 50 |
} |
| 51 |
|
| 52 |
/* |
| 53 |
* Local variables: |
| 54 |
* indent-tabs-mode: t |
| 55 |
* tab-width: 4 |
| 56 |
* c-basic-offset: 4 |
| 57 |
* End: |
| 58 |
*/ |