diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-12-16 08:19:07 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-12-17 12:29:23 +1100 |
commit | aa3eab70d5f9415dca7ccc37d87e9a0ca82855c7 (patch) | |
tree | 0eca64a6f849c9d803fe57ec1bec2dce50ec83ea /source4/lib/ldb/include/ldb_private.h | |
parent | 8ce5640fbfd48debc3e6b3f27e07d1a0d79bd2b4 (diff) | |
download | samba-aa3eab70d5f9415dca7ccc37d87e9a0ca82855c7.tar.gz samba-aa3eab70d5f9415dca7ccc37d87e9a0ca82855c7.tar.bz2 samba-aa3eab70d5f9415dca7ccc37d87e9a0ca82855c7.zip |
s4:ldb: add infrastructure for extended dn handlers
This introduces a new set of pluggable syntax, for use on the
extended DN, and uses them when parsing the DN.
If the DN appears to be in the extended form, we no longer return the
full DN 'as is', but only return the normal part from
ldb_dn_get_linearized().
When validating/parsing the DN we validate not only the format of the
DN, but also the contents of the GUID or SID (to ensure they are
plausable).
We also have functions to set and get the extended components on the DN.
For now, extended_dn_get_linearized() returns a newly constructed and
allocated string each time.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/lib/ldb/include/ldb_private.h')
-rw-r--r-- | source4/lib/ldb/include/ldb_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb_private.h b/source4/lib/ldb/include/ldb_private.h index 90c4980017..d1d3587eb7 100644 --- a/source4/lib/ldb/include/ldb_private.h +++ b/source4/lib/ldb/include/ldb_private.h @@ -84,6 +84,9 @@ struct ldb_schema { /* attribute handling table */ unsigned num_attributes; struct ldb_schema_attribute *attributes; + + unsigned num_dn_extended_syntax; + struct ldb_dn_extended_syntax *dn_extended_syntax; }; /* |