diff options
author | Nadezhda Ivanova <nadezhda.ivanova@postpath.com> | 2009-09-21 17:27:50 -0700 |
---|---|---|
committer | Nadezhda Ivanova <nadezhda.ivanova@postpath.com> | 2009-09-21 17:27:50 -0700 |
commit | 10c6f3f71a4fe3e36e2a0476dc0077187371fafb (patch) | |
tree | 927a846bae4922c8eb6dea848479ddcd54814a21 /source4/dsdb/schema | |
parent | 13b979b03d86f3ae43dc5fd539fa5d3f22f579a0 (diff) | |
download | samba-10c6f3f71a4fe3e36e2a0476dc0077187371fafb.tar.gz samba-10c6f3f71a4fe3e36e2a0476dc0077187371fafb.tar.bz2 samba-10c6f3f71a4fe3e36e2a0476dc0077187371fafb.zip |
Initial Implementation of the DS objects access checks.
Currently disabled. The search will be greatly modified,
also the object tree stuff will be simplified.
Diffstat (limited to 'source4/dsdb/schema')
-rw-r--r-- | source4/dsdb/schema/schema_query.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema_query.c b/source4/dsdb/schema/schema_query.c index 7d696e877e..a2d9792a24 100644 --- a/source4/dsdb/schema/schema_query.c +++ b/source4/dsdb/schema/schema_query.c @@ -416,3 +416,15 @@ const char **dsdb_full_attribute_list(TALLOC_CTX *mem_ctx, const char **attr_list = dsdb_full_attribute_list_internal_el(mem_ctx, schema, class_list, query); return dedup_attr_list(attr_list); } + +/* Return the schemaIDGUID of a class */ + +const struct GUID * class_schemaid_guid_by_lDAPDisplayName(const struct dsdb_schema *schema, + const char *name) +{ + const struct dsdb_class *object_class = dsdb_class_by_lDAPDisplayName(schema, name); + if (!object_class) + return NULL; + + return &object_class->schemaIDGUID; +} |