]> git.sur5r.net Git - openldap/commitdiff
Add ACL plugin definitions
authorLuke Howard <lukeh@openldap.org>
Sun, 31 Aug 2003 07:51:28 +0000 (07:51 +0000)
committerLuke Howard <lukeh@openldap.org>
Sun, 31 Aug 2003 07:51:28 +0000 (07:51 +0000)
include/slapi-plugin.h

index 1019b4292a6a05158baee8f4e5f1bbbdae420a03..3f763428b259cdf8a812918050924d1c0303773f 100644 (file)
@@ -243,6 +243,14 @@ int compute_rewrite_search_filter(Slapi_PBlock *pb);
 int compute_evaluator(computed_attr_context *c, char *type, Slapi_Entry *e, slapi_compute_output_t outputfn);
 int slapi_x_compute_get_pblock(computed_attr_context *c, Slapi_PBlock **pb);
 
+/* ACL plugins; only SLAPI_PLUGIN_ACL_ALLOW_ACCESS supported now */
+typedef int (*slapi_acl_callback_t)(Slapi_PBlock *pb,
+       Slapi_Entry *e,
+       const char *attr,
+       struct berval *berval,
+       int access,
+       void *state);
+
 /* object extensions */
 typedef void *(*slapi_extension_constructor_fnptr)(void *object, void *parent);
 
@@ -461,6 +469,12 @@ void slapi_set_object_extension(int objecttype, void *object,
 #define SLAPI_PLUGIN_SYNTAX_FLAG_ORKEYS                        1
 #define SLAPI_PLUGIN_SYNTAX_FLAG_ORDERING              2
 
+#define SLAPI_PLUGIN_ACL_INIT                  730
+#define SLAPI_PLUGIN_ACL_SYNTAX_CHECK          731
+#define SLAPI_PLUGIN_ACL_ALLOW_ACCESS          732
+#define SLAPI_PLUGIN_ACL_MODS_ALLOWED          733
+#define SLAPI_PLUGIN_ACL_MODS_UPDATE           734
+
 #define SLAPI_OPERATION_AUTHTYPE                741
 #define SLAPI_OPERATION_ID                      742
 #define SLAPI_CONN_CERT                         743