diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-10-02 12:03:05 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-10-02 12:03:05 +1000 |
commit | fd22e0304782e20b9bbb29464b6c745d409ff4c6 (patch) | |
tree | d6fe91cfa850696de5a2b8849124fd1f60e28ce4 /source4/lib/ldb/include | |
parent | 634d9d64766dd125d202f47c2d0cefc9da3c87b6 (diff) | |
download | samba-fd22e0304782e20b9bbb29464b6c745d409ff4c6.tar.gz samba-fd22e0304782e20b9bbb29464b6c745d409ff4c6.tar.bz2 samba-fd22e0304782e20b9bbb29464b6c745d409ff4c6.zip |
s4-ldb: Add support for binary blobs in DNs
AD has the concept of a DN prefixed with B:NN:XXXXXX: that contains a
binary blob. We need to support those in order to give correctly
formatted binary blobs for things like wellKnownObjects
This implementation is not ideal, as it allows for binary blobs on all
DNs, whereas it should only allow them on those with a syntax of
2.5.5.7. We should clean this up in the future, but meanwhile this
implementation at least gets us a working DC join of w2k8 to s4.
This patch also uses a static function for marking DNs as invalid,
which is very useful when debugging this code, as you can break on it
in gdb.
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r-- | source4/lib/ldb/include/ldb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index a083696073..04f7ccb3f2 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -1928,4 +1928,11 @@ unsigned int ldb_get_flags(struct ldb_context *ldb); void ldb_set_flags(struct ldb_context *ldb, unsigned flags); +struct ldb_dn *ldb_dn_binary_from_ldb_val(void *mem_ctx, + struct ldb_context *ldb, + const struct ldb_val *strdn); + +int ldb_dn_get_binary(struct ldb_dn *dn, struct ldb_val *val); +int ldb_dn_set_binary(struct ldb_dn *dn, struct ldb_val *val); + #endif |