Samba4/LDB/Object Class: Difference between revisions
From SambaWiki
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
= Source Code = |
|||
The source code is located at [http://gitweb.samba.org/?p=samba.git;a=blob;f=source4/dsdb/samdb/ldb_modules/objectclass.c source4/dsdb/samdb/ldb_modules/objectclass.c]. |
|||
= Structures = |
= Structures = |
||
Line 18: | Line 22: | ||
== objectclass_add() == |
== objectclass_add() == |
||
This method intercepts an add request, searches for the parent entry, sorts the object classes, validates the RDN attribute, validates the entry against parent object class, adds some attributes, then performs the actual add operation. |
|||
== objectclass_modify() == |
== objectclass_modify() == |
Latest revision as of 06:48, 14 October 2009
Source Code
The source code is located at source4/dsdb/samdb/ldb_modules/objectclass.c.
Structures
oc_context
struct oc_context { struct ldb_module *module; struct ldb_request *req; struct ldb_reply *search_res; int (*step_fn)(struct oc_context *); };
Methods
objectclass_add()
This method intercepts an add request, searches for the parent entry, sorts the object classes, validates the RDN attribute, validates the entry against parent object class, adds some attributes, then performs the actual add operation.