Move the checking of single valued attributes back into the tdb backend.
authorAndrew Tridgell <tridge@samba.org>
Thu, 4 Nov 2010 09:02:16 +0000 (20:02 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 4 Nov 2010 09:35:44 +0000 (20:35 +1100)
commitcf37c29cd009f9378ffa4d3ee54b38aef9fa066b
treeb62d8d7f70c1881e8e06afc42b703f6fcd1ed387
parentf3ad867ab57bfedada5e11cfaa15707f6a455d63
Move the checking of single valued attributes back into the tdb backend.

The backend is the only place that can do this properly. It makes no
sense to do it anywhere else. As a result of it moving out of the
backend we ended up with some bugs causing multiple values in single
valued attributes (eg. isDeleted), which can really damage the
inregrity of the database.

For the override of single valued values needed for deleted linked
attributes we should use attribute flags.

This reverts commit 1949864417f3d10fb8996df7db259649eb777271.
source4/dsdb/samdb/ldb_modules/objectclass_attrs.c
source4/lib/ldb/ldb_tdb/ldb_tdb.c