Added parameter newSuperior in preparation to support

LDAP v3 MODDN request.
This commit is contained in:
Juan Gomez 1999-03-05 03:38:12 +00:00
parent 07a5f765bb
commit 3ba99a75ef
11 changed files with 93 additions and 15 deletions

View File

@ -41,7 +41,8 @@ extern int bdb2_back_modify LDAP_P(( BackendDB *bd,
extern int bdb2_back_modrdn LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op,
char *dn, char*newrdn, int deleteoldrdn ));
char *dn, char*newrdn, int deleteoldrdn,
char *newSuperior ));
extern int bdb2_back_add LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op, Entry *e ));

View File

@ -1,5 +1,18 @@
/* modrdn.c - bdb2 backend modrdn routine */
/*
* LDAP v3 newSuperior support.
*
* Copyright 1999, Juan C. Gomez, All rights reserved.
* This software is not subject to any license of Silicon Graphics
* Inc. or Purdue University.
*
* Redistribution and use in source and binary forms are permitted
* without restriction or fee of any kind as long as this notice
* is preserved.
*
*/
#include "portable.h"
#include <stdio.h>
@ -18,7 +31,8 @@ bdb2i_back_modrdn_internal(
Operation *op,
char *dn,
char *newrdn,
int deleteoldrdn
int deleteoldrdn,
char *newSuperior
)
{
struct ldbminfo *li = (struct ldbminfo *) be->be_private;
@ -189,7 +203,8 @@ bdb2_back_modrdn(
Operation *op,
char *dn,
char *newrdn,
int deleteoldrdn
int deleteoldrdn,
char *newSuperior
)
{
DB_LOCK lock;
@ -207,7 +222,8 @@ bdb2_back_modrdn(
}
ret = bdb2i_back_modrdn_internal( be, conn, op, dn,
newrdn, deleteoldrdn );
newrdn, deleteoldrdn,
newSuperior );
(void) bdb2i_leave_backend_w( get_dbenv( be ), lock );
bdb2i_stop_timing( be->bd_info, time1, "MODRDN", conn, op );

View File

@ -38,7 +38,8 @@ extern int ldbm_back_modify LDAP_P(( BackendDB *bd,
extern int ldbm_back_modrdn LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op,
char *dn, char*newrdn, int deleteoldrdn ));
char *dn, char*newrdn, int deleteoldrdn,
char *newSuperior ));
extern int ldbm_back_add LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op, Entry *e ));

View File

@ -1,5 +1,18 @@
/* modrdn.c - ldbm backend modrdn routine */
/*
* LDAP v3 newSuperior support.
*
* Copyright 1999, Juan C. Gomez, All rights reserved.
* This software is not subject to any license of Silicon Graphics
* Inc. or Purdue University.
*
* Redistribution and use in source and binary forms are permitted
* without restriction or fee of any kind as long as this notice
* is preserved.
*
*/
#include "portable.h"
#include <stdio.h>
@ -18,7 +31,8 @@ ldbm_back_modrdn(
Operation *op,
char *dn,
char *newrdn,
int deleteoldrdn
int deleteoldrdn,
char *newSuperior
)
{
struct ldbminfo *li = (struct ldbminfo *) be->be_private;

View File

@ -36,7 +36,8 @@ extern int perl_back_modify LDAP_P(( BackendDB *bd,
extern int perl_back_modrdn LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op,
char *dn, char*newrdn, int deleteoldrdn ));
char *dn, char*newrdn, int deleteoldrdn,
char *newSuperior ));
extern int perl_back_add LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op, Entry *e ));

View File

@ -7,6 +7,19 @@
* in file LICENSE in the top-level directory of the distribution.
*/
/*
* LDAP v3 newSuperior support.
*
* Copyright 1999, Juan C. Gomez, All rights reserved.
* This software is not subject to any license of Silicon Graphics
* Inc. or Purdue University.
*
* Redistribution and use in source and binary forms are permitted
* without restriction or fee of any kind as long as this notice
* is preserved.
*
*/
#include "portable.h"
#include <stdio.h>
@ -27,7 +40,8 @@ perl_back_modrdn(
Operation *op,
char *dn,
char *newrdn,
int deleteoldrdn
int deleteoldrdn,
char *newSuperior
)
{
int len;

View File

@ -36,7 +36,8 @@ extern int shell_back_modify LDAP_P(( BackendDB *bd,
extern int shell_back_modrdn LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op,
char *dn, char*newrdn, int deleteoldrdn ));
char *dn, char*newrdn, int deleteoldrdn,
char *newSuperior ));
extern int shell_back_add LDAP_P(( BackendDB *bd,
Connection *conn, Operation *op, Entry *e ));

View File

@ -1,5 +1,18 @@
/* modrdn.c - shell backend modrdn function */
/*
* LDAP v3 newSuperior support.
*
* Copyright 1999, Juan C. Gomez, All rights reserved.
* This software is not subject to any license of Silicon Graphics
* Inc. or Purdue University.
*
* Redistribution and use in source and binary forms are permitted
* without restriction or fee of any kind as long as this notice
* is preserved.
*
*/
#include "portable.h"
#include <stdio.h>
@ -17,7 +30,8 @@ shell_back_modrdn(
Operation *op,
char *dn,
char *newrdn,
int deleteoldrdn
int deleteoldrdn,
char *newSuperior
)
{
struct shellinfo *si = (struct shellinfo *) be->be_private;

View File

@ -1,4 +1,4 @@
/* $Id: external.h,v 1.4 1999/02/17 00:55:03 bcollins Exp $ */
/* $Id: external.h,v 1.5 1999/02/18 01:18:39 bcollins Exp $ */
#ifndef _TCL_EXTERNAL_H
#define _TCL_EXTERNAL_H
@ -40,7 +40,8 @@ extern int tcl_back_modify LDAP_P ((BackendDB * bd,
extern int tcl_back_modrdn LDAP_P ((BackendDB * bd,
Connection * conn, Operation * op,
char *dn, char *newrdn, int deleteoldrdn));
char *dn, char *newrdn, int deleteoldrdn,
char *newSuperior));
extern int tcl_back_add LDAP_P ((BackendDB * bd,
Connection * conn, Operation * op, Entry * e));

View File

@ -1,6 +1,6 @@
/* modrdn.c - tcl modify rdn routines
*
* $Id: tcl_modrdn.c,v 1.4 1999/02/19 06:55:20 bcollins Exp $
* $Id: tcl_modrdn.c,v 1.5 1999/02/28 04:55:49 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
@ -10,6 +10,19 @@
* in file LICENSE in the top-level directory of the distribution.
*/
/*
* LDAP v3 newSuperior support.
*
* Copyright 1999, Juan C. Gomez, All rights reserved.
* This software is not subject to any license of Silicon Graphics
* Inc. or Purdue University.
*
* Redistribution and use in source and binary forms are permitted
* without restriction or fee of any kind as long as this notice
* is preserved.
*
*/
#include "portable.h"
#include <stdio.h>
@ -24,7 +37,8 @@ tcl_back_modrdn (
Operation * op,
char *dn,
char *newrdn,
int deleteoldrdn
int deleteoldrdn,
char *newSuperior
)
{
char *command, *suf_tcl, *results;

View File

@ -354,7 +354,8 @@ struct backend_info {
char *dn, LDAPModList *m));
int (*bi_op_modrdn) LDAP_P((BackendDB *bd,
struct slap_conn *c, struct slap_op *o,
char *dn, char *newrdn, int deleteoldrdn ));
char *dn, char *newrdn, int deleteoldrdn,
char *newSuperior));
int (*bi_op_add) LDAP_P((BackendDB *bd,
struct slap_conn *c, struct slap_op *o,
Entry *e));