Back to index

openldap  2.4.31
Classes | Defines | Typedefs | Functions
rwm.h File Reference
#include "rewrite.h"

Go to the source code of this file.

Classes

struct  ldapmap
struct  ldapmapping
struct  ldaprwmap
struct  dncookie
union  ldapmapping.m_src_ref
union  ldapmapping.m_dst_ref

Defines

#define RWMMAP_F_NONE   0x00
#define RWMMAP_F_IS_OC   0x01
#define RWMMAP_F_FREE_SRC   0x10
#define RWMMAP_F_FREE_DST   0x20
#define m_src_ad   m_src_ref.m_s_ad
#define m_src_oc   m_src_ref.m_s_oc
#define m_dst_ad   m_dst_ref.m_d_ad
#define m_dst_oc   m_dst_ref.m_d_oc
#define RWM_F_NONE   (0x0000U)
#define RWM_F_NORMALIZE_MAPPED_ATTRS   (0x0001U)
#define RWM_F_DROP_UNREQUESTED_ATTRS   (0x0002U)
#define RWM_F_SUPPORT_T_F   (0x4000U)
#define RWM_F_SUPPORT_T_F_DISCOVER   (0x8000U)
#define RWM_F_SUPPORT_T_F_MASK   (RWM_F_SUPPORT_T_F)
#define RWM_F_SUPPORT_T_F_MASK2   (RWM_F_SUPPORT_T_F|RWM_F_SUPPORT_T_F_DISCOVER)
#define RWM_MAP   0
#define RWM_REMAP   1

Typedefs

typedef struct dncookie dncookie

Functions

int rwm_dn_massage (dncookie *dc, struct berval *in, struct berval *dn)
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)
int rwm_mapping_cmp (const void *, const void *)
int rwm_mapping_dup (void *, void *)
int rwm_map_init (struct ldapmap *lm, struct ldapmapping **)
void rwm_map (struct ldapmap *map, struct berval *s, struct berval *m, int remap)
int rwm_mapping (struct ldapmap *map, struct berval *s, struct ldapmapping **m, int remap)
char * rwm_map_filter (struct ldapmap *at_map, struct ldapmap *oc_map, struct berval *f)
int rwm_map_attrnames (Operation *op, struct ldapmap *at_map, struct ldapmap *oc_map, AttributeName *an, AttributeName **anp, int remap)
void rwm_mapping_dst_free (void *mapping)
void rwm_mapping_free (void *mapping)
int rwm_map_config (struct ldapmap *oc_map, struct ldapmap *at_map, const char *fname, int lineno, int argc, char **argv)
int rwm_filter_map_rewrite (Operation *op, dncookie *dc, Filter *f, struct berval *fstr)
int rwm_suffix_massage_config (struct rewrite_info *info, struct berval *pvnc, struct berval *nvnc, struct berval *prnc, struct berval *nrnc)
int rwm_dnattr_rewrite (Operation *op, SlapReply *rs, void *cookie, BerVarray a_vals, BerVarray *pa_nvals)
int rwm_referral_rewrite (Operation *op, SlapReply *rs, void *cookie, BerVarray a_vals, BerVarray *pa_nvals)
int rwm_dnattr_result_rewrite (dncookie *dc, BerVarray a_vals, BerVarray a_nvals)
int rwm_referral_result_rewrite (dncookie *dc, BerVarray a_vals)

Class Documentation

struct ldapmap

Definition at line 49 of file back-meta.h.

Class Members
int drop_missing
Avlnode * map
Avlnode * remap
struct ldapmapping

Definition at line 56 of file back-meta.h.

Class Members
union ldapmapping m_dst_ref
int m_flags
union ldapmapping m_src_ref
struct ldaprwmap

Definition at line 61 of file back-meta.h.

Collaboration diagram for ldaprwmap:
Class Members
BerVarray rwm_bva_map
BerVarray rwm_bva_rewrite
unsigned rwm_flags
struct rewrite_info * rwm_rw
BerVarray rwm_suffix_massage
struct dncookie

Definition at line 81 of file back-meta.h.

Collaboration diagram for dncookie:
Class Members
Connection * conn
char * ctx
int normalized
SlapReply * rs
struct ldaprwmap * rwmap
struct metatarget_t * target
int tofrom
union ldapmapping.m_src_ref

Definition at line 53 of file rwm.h.

Class Members
AttributeDescription * m_s_ad
ObjectClass * m_s_oc
union ldapmapping.m_dst_ref

Definition at line 60 of file rwm.h.

Class Members
AttributeDescription * m_d_ad
ObjectClass * m_d_oc

Define Documentation

#define m_dst_ad   m_dst_ref.m_d_ad

Definition at line 64 of file rwm.h.

#define m_dst_oc   m_dst_ref.m_d_oc

Definition at line 65 of file rwm.h.

#define m_src_ad   m_src_ref.m_s_ad

Definition at line 57 of file rwm.h.

#define m_src_oc   m_src_ref.m_s_oc

Definition at line 58 of file rwm.h.

#define RWM_F_DROP_UNREQUESTED_ATTRS   (0x0002U)

Definition at line 84 of file rwm.h.

#define RWM_F_NONE   (0x0000U)

Definition at line 82 of file rwm.h.

#define RWM_F_NORMALIZE_MAPPED_ATTRS   (0x0001U)

Definition at line 83 of file rwm.h.

#define RWM_F_SUPPORT_T_F   (0x4000U)

Definition at line 85 of file rwm.h.

#define RWM_F_SUPPORT_T_F_DISCOVER   (0x8000U)

Definition at line 86 of file rwm.h.

Definition at line 87 of file rwm.h.

Definition at line 88 of file rwm.h.

#define RWM_MAP   0

Definition at line 115 of file rwm.h.

#define RWM_REMAP   1

Definition at line 116 of file rwm.h.

#define RWMMAP_F_FREE_DST   0x20

Definition at line 51 of file rwm.h.

#define RWMMAP_F_FREE_SRC   0x10

Definition at line 50 of file rwm.h.

#define RWMMAP_F_IS_OC   0x01

Definition at line 49 of file rwm.h.

#define RWMMAP_F_NONE   0x00

Definition at line 48 of file rwm.h.


Typedef Documentation

typedef struct dncookie dncookie

Function Documentation

int rwm_dn_massage ( dncookie dc,
struct berval in,
struct berval dn 
)
int rwm_dn_massage_normalize ( dncookie dc,
struct berval in,
struct berval ndn 
)
int rwm_dn_massage_pretty ( dncookie dc,
struct berval in,
struct berval pdn 
)
int rwm_dn_massage_pretty_normalize ( dncookie dc,
struct berval in,
struct berval pdn,
struct berval ndn 
)
int rwm_dnattr_result_rewrite ( dncookie dc,
BerVarray  a_vals,
BerVarray  a_nvals 
)
int rwm_dnattr_rewrite ( Operation op,
SlapReply rs,
void cookie,
BerVarray  a_vals,
BerVarray pa_nvals 
)
int rwm_filter_map_rewrite ( Operation op,
dncookie dc,
Filter f,
struct berval fstr 
)
void rwm_map ( struct ldapmap map,
struct berval s,
struct berval m,
int  remap 
)
int rwm_map_attrnames ( Operation op,
struct ldapmap at_map,
struct ldapmap oc_map,
AttributeName an,
AttributeName **  anp,
int  remap 
)
int rwm_map_config ( struct ldapmap oc_map,
struct ldapmap at_map,
const char *  fname,
int  lineno,
int  argc,
char **  argv 
)
char* rwm_map_filter ( struct ldapmap at_map,
struct ldapmap oc_map,
struct berval f 
)
int rwm_map_init ( struct ldapmap lm,
struct ldapmapping **   
)
int rwm_mapping ( struct ldapmap map,
struct berval s,
struct ldapmapping **  m,
int  remap 
)
int rwm_mapping_cmp ( const void ,
const void  
)
void rwm_mapping_dst_free ( void mapping)
int rwm_mapping_dup ( void ,
void  
)
void rwm_mapping_free ( void mapping)
int rwm_referral_rewrite ( Operation op,
SlapReply rs,
void cookie,
BerVarray  a_vals,
BerVarray pa_nvals 
)
int rwm_suffix_massage_config ( struct rewrite_info info,
struct berval pvnc,
struct berval nvnc,
struct berval prnc,
struct berval nrnc 
)