summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapd/schema.h
diff options
context:
space:
mode:
authorMartin Hedenfal <martinh@cvs.openbsd.org>2010-07-02 05:23:41 +0000
committerMartin Hedenfal <martinh@cvs.openbsd.org>2010-07-02 05:23:41 +0000
commitfeee5618724608016262d9d30337d44e8defc5f3 (patch)
tree9b91b7714389c1b10dbef1a902a264cafe713aa4 /usr.sbin/ldapd/schema.h
parente096f67c64cdf963cf9b5a033b0065be2f5c2f68 (diff)
Dump parsed schema to buffer and send in requests for the cn=schema
subschema namespace. Only do this if 'objectClasses' and 'attributeTypes' are expicitly requested. This allows clients to for example present custom editing forms.
Diffstat (limited to 'usr.sbin/ldapd/schema.h')
-rw-r--r--usr.sbin/ldapd/schema.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/ldapd/schema.h b/usr.sbin/ldapd/schema.h
index 91e6d748c6a..d00dfaa14e3 100644
--- a/usr.sbin/ldapd/schema.h
+++ b/usr.sbin/ldapd/schema.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: schema.h,v 1.3 2010/07/01 18:37:12 martinh Exp $ */
+/* $OpenBSD: schema.h,v 1.4 2010/07/02 05:23:40 martinh Exp $ */
/*
* Copyright (c) 2010 Martin Hedenfalk <martinh@openbsd.org>
@@ -117,7 +117,7 @@ struct schema
struct oidname_tree attr_names;
struct object_tree objects;
struct oidname_tree object_names;
- struct symoid_tree symbolic_oids;
+ struct symoid_tree symbolic_oids;
FILE *fp;
const char *filename;
@@ -130,6 +130,10 @@ struct schema
struct schema *schema_new(void);
int schema_parse(struct schema *schema,
const char *filename);
+int schema_dump_object(struct object *obj,
+ char *buf, size_t size);
+int schema_dump_attribute(struct attr_type *obj,
+ char *buf, size_t size);
struct attr_type *lookup_attribute_by_oid(struct schema *schema, char *oid);
struct attr_type *lookup_attribute_by_name(struct schema *schema, char *name);