mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
Update to new struct berval DN API
This commit is contained in:
parent
e0b83b3096
commit
a3e6048359
5 changed files with 21 additions and 19 deletions
|
|
@ -20,8 +20,8 @@ shell_back_compare(
|
|||
Backend *be,
|
||||
Connection *conn,
|
||||
Operation *op,
|
||||
const char *dn,
|
||||
const char *ndn,
|
||||
struct berval *dn,
|
||||
struct berval *ndn,
|
||||
AttributeAssertion *ava
|
||||
)
|
||||
{
|
||||
|
|
@ -50,7 +50,7 @@ shell_back_compare(
|
|||
fprintf( wfp, "COMPARE\n" );
|
||||
fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
|
||||
print_suffixes( wfp, be );
|
||||
fprintf( wfp, "dn: %s\n", dn );
|
||||
fprintf( wfp, "dn: %s\n", dn->bv_val );
|
||||
fprintf( wfp, "%s: %s\n",
|
||||
ava->aa_desc->ad_cname.bv_val,
|
||||
ava->aa_value->bv_val /* could be binary! */ );
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ shell_back_delete(
|
|||
Backend *be,
|
||||
Connection *conn,
|
||||
Operation *op,
|
||||
const char *dn,
|
||||
const char *ndn
|
||||
struct berval *dn,
|
||||
struct berval *ndn
|
||||
)
|
||||
{
|
||||
struct shellinfo *si = (struct shellinfo *) be->be_private;
|
||||
|
|
@ -44,7 +44,7 @@ shell_back_delete(
|
|||
fprintf( wfp, "DELETE\n" );
|
||||
fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
|
||||
print_suffixes( wfp, be );
|
||||
fprintf( wfp, "dn: %s\n", dn );
|
||||
fprintf( wfp, "dn: %s\n", dn->bv_val );
|
||||
fclose( wfp );
|
||||
|
||||
/* read in the results and send them along */
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ shell_back_modify(
|
|||
Backend *be,
|
||||
Connection *conn,
|
||||
Operation *op,
|
||||
const char *dn,
|
||||
const char *ndn,
|
||||
struct berval *dn,
|
||||
struct berval *ndn,
|
||||
Modifications *ml
|
||||
)
|
||||
{
|
||||
|
|
@ -47,7 +47,7 @@ shell_back_modify(
|
|||
fprintf( wfp, "MODIFY\n" );
|
||||
fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
|
||||
print_suffixes( wfp, be );
|
||||
fprintf( wfp, "dn: %s\n", dn );
|
||||
fprintf( wfp, "dn: %s\n", dn->bv_val );
|
||||
for ( ; ml != NULL; ml = ml->sml_next ) {
|
||||
mod = &ml->sml_mod;
|
||||
|
||||
|
|
|
|||
|
|
@ -33,11 +33,13 @@ shell_back_modrdn(
|
|||
Backend *be,
|
||||
Connection *conn,
|
||||
Operation *op,
|
||||
const char *dn,
|
||||
const char *ndn,
|
||||
const char *newrdn,
|
||||
struct berval *dn,
|
||||
struct berval *ndn,
|
||||
struct berval *newrdn,
|
||||
struct berval *nnewrdn,
|
||||
int deleteoldrdn,
|
||||
const char *newSuperior
|
||||
struct berval *newSuperior,
|
||||
struct berval *nnewSuperior
|
||||
)
|
||||
{
|
||||
struct shellinfo *si = (struct shellinfo *) be->be_private;
|
||||
|
|
@ -60,11 +62,11 @@ shell_back_modrdn(
|
|||
fprintf( wfp, "MODRDN\n" );
|
||||
fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
|
||||
print_suffixes( wfp, be );
|
||||
fprintf( wfp, "dn: %s\n", dn );
|
||||
fprintf( wfp, "newrdn: %s\n", newrdn );
|
||||
fprintf( wfp, "dn: %s\n", dn->bv_val );
|
||||
fprintf( wfp, "newrdn: %s\n", newrdn->bv_val );
|
||||
fprintf( wfp, "deleteoldrdn: %d\n", deleteoldrdn ? 1 : 0 );
|
||||
if (newSuperior != NULL) {
|
||||
fprintf( wfp, "newSuperior: %s\n", newSuperior );
|
||||
fprintf( wfp, "newSuperior: %s\n", newSuperior->bv_val );
|
||||
}
|
||||
fclose( wfp );
|
||||
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ shell_back_search(
|
|||
Backend *be,
|
||||
Connection *conn,
|
||||
Operation *op,
|
||||
const char *base,
|
||||
const char *nbase,
|
||||
struct berval *base,
|
||||
struct berval *nbase,
|
||||
int scope,
|
||||
int deref,
|
||||
int size,
|
||||
|
|
@ -53,7 +53,7 @@ shell_back_search(
|
|||
fprintf( wfp, "SEARCH\n" );
|
||||
fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
|
||||
print_suffixes( wfp, be );
|
||||
fprintf( wfp, "base: %s\n", base );
|
||||
fprintf( wfp, "base: %s\n", base->bv_val );
|
||||
fprintf( wfp, "scope: %d\n", scope );
|
||||
fprintf( wfp, "deref: %d\n", deref );
|
||||
fprintf( wfp, "sizelimit: %d\n", size );
|
||||
|
|
|
|||
Loading…
Reference in a new issue