1 struct objectclass_mapping {
5 char *key; /* Name of attribute used in rdn */
7 /* For mapping attributes used in searches */
8 struct local_attribute_mapping {
11 /* Attributes to request from the server for this attribute,
12 * needed by generate */
13 char *required_attributes[];
15 /* If not set, the value for the first element of
16 * required_attributes will simply be used here */
17 struct ldb_message_element *(*generate) (LDAPMessage *msg);
18 } *local_attribute_mappings;
20 /* Generate LDAPMod for adds and modifies */
21 LDAPMod *(*generate_mod)(struct ldb_message *);
24 struct ldb_map_backend {
25 struct objectclass_mapping *objectclass_mappings;
28 const char *ldb_map_dn(const char *old);
29 const char *ldb_map_rdn(const char *old);