/* back-ldap.h - ldap backend header file */
/* $OpenLDAP$ */
/*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
/* This is an altered version */
};
struct ldapmapping {
- char *src;
- char *dst;
+ struct berval src;
+ struct berval dst;
};
struct ldapinfo {
int mapping_cmp (const void *, const void *);
int mapping_dup (void *, void *);
-char *ldap_back_map ( struct ldapmap *map, char *s, int remap );
+void ldap_back_map_init ( struct ldapmap *lm, struct ldapmapping ** );
+void ldap_back_map ( struct ldapmap *map, struct berval *s, struct berval *m,
+ int remap );
char *
ldap_back_map_filter(
struct ldapmap *at_map,
struct ldapmap *oc_map,
- char *f,
+ struct berval *f,
int remap
);
char **
ldap_back_map_attrs(
struct ldapmap *at_map,
- struct berval **a,
+ AttributeName *a,
int remap
);
#ifdef ENABLE_REWRITE
extern int suffix_massage_config( struct rewrite_info *info, int argc, char **argv );
-extern int ldap_dnattr_rewrite( struct rewrite_info *rwinfo, struct berval **a_vals, void *cookie );
+extern int ldap_dnattr_rewrite( struct rewrite_info *rwinfo, BerVarray a_vals, void *cookie );
#endif /* ENABLE_REWRITE */
LDAP_END_DECL