From 256d845f08675f3c2c36fdcd011ad5d7023ab39a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 18 Jul 2004 21:33:15 +0000 Subject: [PATCH] helpers for special attribute lists --- servers/slapd/ad.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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 */ -- 2.39.5