From: Pierangelo Masarati Date: Sun, 18 Jul 2004 21:33:15 +0000 (+0000) Subject: helpers for special attribute lists X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~53 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=256d845f08675f3c2c36fdcd011ad5d7023ab39a;p=openldap helpers for special attribute lists --- diff --git a/servers/slapd/ad.c b/servers/slapd/ad.c index ad5ab5c82f..0d9d6e200d 100644 --- a/servers/slapd/ad.c +++ b/servers/slapd/ad.c @@ -28,6 +28,32 @@ #include "slap.h" #include "lutil.h" +static AttributeName anlist_no_attrs[] = { + { BER_BVC( LDAP_NO_ATTRS ), NULL, 0, NULL }, + { BER_BVNULL, NULL, 0, NULL } +}; + +static AttributeName anlist_all_user_attributes[] = { + { BER_BVC( LDAP_ALL_USER_ATTRIBUTES ), NULL, 0, NULL }, + { BER_BVNULL, NULL, 0, NULL } +}; + +static AttributeName anlist_all_operational_attributes[] = { + { BER_BVC( LDAP_ALL_OPERATIONAL_ATTRIBUTES ), NULL, 0, NULL }, + { BER_BVNULL, NULL, 0, NULL } +}; + +static AttributeName anlist_all_attributes[] = { + { BER_BVC( LDAP_ALL_USER_ATTRIBUTES ), NULL, 0, NULL }, + { BER_BVC( LDAP_ALL_OPERATIONAL_ATTRIBUTES ), NULL, 0, NULL }, + { BER_BVNULL, NULL, 0, NULL } +}; + +AttributeName *slap_anlist_no_attrs = anlist_no_attrs; +AttributeName *slap_anlist_all_user_attributes = anlist_all_user_attributes; +AttributeName *slap_anlist_all_operational_attributes = anlist_all_operational_attributes; +AttributeName *slap_anlist_all_attributes = anlist_all_attributes; + typedef struct Attr_option { struct berval name; /* option name or prefix */ int prefix; /* NAME is a tag and range prefix */