X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fcomponent.h;h=a0b87e5373dd94ad69c6bd35f98af658dc9e1b1a;hb=9767c87531d193a4bef19286b77623aff18590fb;hp=e7ce72e957fa12ecd1d8fa40be76c33ed4903dab;hpb=2353678647ef764e4b1346384ef68d7b106804c4;p=openldap diff --git a/servers/slapd/component.h b/servers/slapd/component.h index e7ce72e957..a0b87e5373 100644 --- a/servers/slapd/component.h +++ b/servers/slapd/component.h @@ -1,15 +1,33 @@ +/* component.h */ +/* $OpenLDAP$ */ +/* This work is part of OpenLDAP Software . + * + * Copyright 2004-2009 The OpenLDAP Foundation. + * Portions Copyright 2004 by IBM Corporation. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted only as authorized by the OpenLDAP + * Public License. + * + * A copy of this license is available in the file LICENSE in the + * top-level directory of the distribution or, alternatively, at + * . + */ + #ifndef _H_SLAPD_COMPONENT #define _H_SLAPD_COMPONENT #include "portable.h" + #include #include -#include "ldap_pvt.h" +#include #include "lutil.h" #include #include "slap.h" -typedef enum {ASN_BASIC, ASN_COMPOSITE } AsnType; +typedef enum { ASN_BASIC, ASN_COMPOSITE } AsnType; /* * Decoder Modes * Different operation is required to handle Decoding(2), Extracted Component @@ -34,5 +52,25 @@ typedef enum {ASN_BASIC, ASN_COMPOSITE } AsnType; #define DEC_ALLOC_MODE_2 0x04 #define CALL_TAG_DECODER 0x08 #define CALL_CONTENT_DECODER ~0x08 +/* + * For Attribute Aliasing + */ +#define MAX_ALIASING_ENTRY 128 +typedef struct comp_attribute_aliasing { + AttributeDescription* aa_aliasing_ad; + AttributeDescription* aa_aliased_ad; + ComponentFilter* aa_cf; + MatchingRule* aa_mr; + char* aa_cf_str; +} AttributeAliasing; + +typedef struct comp_matchingrule_aliasing { + MatchingRule* mra_aliasing_attr; + MatchingRule* mra_aliased_attr; + AttributeDescription* mra_attr; + ComponentFilter* mra_cf; + MatchingRule* mra_mr; + char* mra_cf_str; +} MatchingRuleAliasing; #endif