Skip to content
Snippets Groups Projects
Commit 256d845f authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

helpers for special attribute lists

parent f0505795
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment