Diff for /servers/slapd/overlays/rwm.h between versions 1.9 and 1.9.2.4

version 1.9, 2004/11/13 11:15:40 version 1.9.2.4, 2006/01/03 22:16:25
Line 1 Line 1
 /* rwm.h - dn rewrite/attribute mapping header file */  /* rwm.h - dn rewrite/attribute mapping header file */
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/rwm.h,v 1.8 2004/07/25 21:16:41 ando Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/rwm.h,v 1.9.2.3 2005/11/03 18:03:02 kurt Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1999-2004 The OpenLDAP Foundation.   * Copyright 1999-2006 The OpenLDAP Foundation.
  * Portions Copyright 1999-2003 Howard Chu.   * Portions Copyright 1999-2003 Howard Chu.
  * Portions Copyright 2000-2003 Pierangelo Masarati.   * Portions Copyright 2000-2003 Pierangelo Masarati.
  * All rights reserved.   * All rights reserved.
Line 80  struct ldaprwmap { Line 80  struct ldaprwmap {
          */           */
         struct ldapmap rwm_oc;          struct ldapmap rwm_oc;
         struct ldapmap rwm_at;          struct ldapmap rwm_at;
   
   #define RWM_F_NONE                      0x0000U
   #define RWM_F_SUPPORT_T_F               0x4000U
   #define RWM_F_SUPPORT_T_F_DISCOVER      0x8000U
           unsigned        rwm_flags;
 };  };
   
 /* Whatever context ldap_back_dn_massage needs... */  /* Whatever context ldap_back_dn_massage needs... */
Line 96  typedef struct dncookie { Line 101  typedef struct dncookie {
 #endif /* !ENABLE_REWRITE */  #endif /* !ENABLE_REWRITE */
 } dncookie;  } dncookie;
   
 int rwm_dn_massage( dncookie *dc, struct berval *in,  int rwm_dn_massage( dncookie *dc, struct berval *in, struct berval *dn );
         struct berval *dn, struct berval *ndn );  int rwm_dn_massage_pretty( dncookie *dc, struct berval *in, struct berval *pdn );
   int rwm_dn_massage_normalize( dncookie *dc, struct berval *in, struct berval *ndn );
   int rwm_dn_massage_pretty_normalize( dncookie *dc, struct berval *in, struct berval *pdn, struct berval *ndn );
   
 /* attributeType/objectClass mapping */  /* attributeType/objectClass mapping */
 int rwm_mapping_cmp (const void *, const void *);  int rwm_mapping_cmp (const void *, const void *);
Line 108  void rwm_map ( struct ldapmap *map, stru Line 115  void rwm_map ( struct ldapmap *map, stru
         int remap );          int remap );
 int rwm_mapping ( struct ldapmap *map, struct berval *s,  int rwm_mapping ( struct ldapmap *map, struct berval *s,
                 struct ldapmapping **m, int remap );                  struct ldapmapping **m, int remap );
 #define RWM_MAP 0  #define RWM_MAP         0
 #define RWM_REMAP       1  #define RWM_REMAP       1
 char *  char *
 rwm_map_filter(  rwm_map_filter(
Line 131  rwm_map_attrnames( Line 138  rwm_map_attrnames(
                 AttributeName **anp,                  AttributeName **anp,
                 int remap );                  int remap );
   
   extern void rwm_mapping_dst_free ( void *mapping );
   
 extern void rwm_mapping_free ( void *mapping );  extern void rwm_mapping_free ( void *mapping );
   
 extern int rwm_map_config(  extern int rwm_map_config(
Line 143  extern int rwm_map_config( Line 152  extern int rwm_map_config(
   
 extern int  extern int
 rwm_filter_map_rewrite(  rwm_filter_map_rewrite(
                   Operation               *op,
                 dncookie                *dc,                  dncookie                *dc,
                 Filter                  *f,                  Filter                  *f,
                 struct berval           *fstr );                  struct berval           *fstr );

Removed from v.1.9  
changed lines
  Added in v.1.9.2.4


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org