s4-ldb: Add support for binary blobs in DNs
authorAndrew Tridgell <tridge@samba.org>
Fri, 2 Oct 2009 02:03:05 +0000 (12:03 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 2 Oct 2009 02:03:05 +0000 (12:03 +1000)
commitfd22e0304782e20b9bbb29464b6c745d409ff4c6
treed6fe91cfa850696de5a2b8849124fd1f60e28ce4
parent634d9d64766dd125d202f47c2d0cefc9da3c87b6
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.
source4/dsdb/schema/schema_syntax.c
source4/lib/ldb/common/ldb_dn.c
source4/lib/ldb/include/ldb.h