/*
- * Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*
* Copyright 1999, Howard Chu, All rights reserved. <hyc@highlandsun.com>
#define META_CANDIDATE 1
LDAP *ld;
- char *bound_dn;
+ struct berval bound_dn;
int bound;
#define META_UNBOUND 0
#define META_BOUND 1
struct metatarget {
char *uri;
- char *suffix;/* normalized suffix */
- char *binddn;
- char *bindpw;
+ struct berval psuffix; /* pretty suffix */
+ struct berval suffix; /* normalized suffix */
+ struct berval binddn;
+ struct berval bindpw;
- char *pseudorootdn;
- char *pseudorootpw;
+ struct berval pseudorootdn;
+ struct berval pseudorootpw;
struct rewrite_info *rwinfo;
meta_back_do_single_bind(
struct metainfo *li,
struct metaconn *lc,
- const char *dn,
- const char *ndn,
- const char *cred,
+ struct berval *dn,
+ struct berval *ndn,
+ struct berval *cred,
int method,
int candidate
);
struct slap_conn *conn,
struct slap_op *op,
int op_type,
- const char *dn,
+ struct berval *dn,
int *candidate
);
Operation *op
);
+extern int
+meta_back_is_valid(
+ struct metaconn *lc,
+ int candidate
+);
+
extern int
meta_back_op_result(
struct metaconn *lc,
*/
extern int
meta_back_is_candidate(
- const char *nsuffix,
- const char *ndn,
- int ndnlen
+ struct berval *nsuffix,
+ struct berval *ndn
);
extern int
meta_back_count_candidates(
struct metainfo *li,
- const char *ndn
+ struct berval *ndn
);
extern int
meta_back_is_candidate_unique(
struct metainfo *li,
- const char *ndn
+ struct berval *ndn
);
extern int
meta_back_select_unique_candidate(
struct metainfo *li,
- const char *ndn
+ struct berval *ndn
);
extern int
extern int
meta_dncache_get_target(
struct metadncache *cache,
- const char *ndn
+ struct berval *ndn
);
extern int
meta_dncache_update_entry(
struct metadncache *cache,
- const char *ndn,
+ struct berval *ndn,
int target
);
extern int
meta_dncache_delete_entry(
struct metadncache *cache,
- const char *ndn
+ struct berval *ndn
);
extern void