s4-dsdb: return LDB_ERR_CONSTRAINT_VIOLATION on num_recs != 1
authorAndrew Tridgell <tridge@samba.org>
Tue, 16 Feb 2010 05:39:49 +0000 (16:39 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 16 Feb 2010 10:10:52 +0000 (21:10 +1100)
commit018fb2d1ae4f1fa2b85afdc8c90dd7ebb8c3fa47
tree5877688c645dd02075155a63dd4a5811e329a237
parent86f8ddf75458582195954cd0b3ad3dcea28c9d0f
s4-dsdb: return LDB_ERR_CONSTRAINT_VIOLATION on num_recs != 1

In a single record search, LDB_ERR_CONSTRAINT_VIOLATION is more useful
than the generic LDB_ERR_OPERATIONS_ERROR

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/common/util.c