dsdb: Return LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS rather than OPERATIONS_ERROR on EACCE...
commitee2cf1d4d7353644a3e551f7b12390c1568e5df3
authorAndrew Bartlett <abartlet@samba.org>
Wed, 5 Feb 2014 01:53:26 +0000 (5 14:53 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:12 +0000 (15 12:46 +0200)
tree2036a70d3559169a50335a4b3f59f27afb318d2c
parent7e07e6d99562d93f1062b53cfdfa95686f464572
dsdb: Return LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS rather than OPERATIONS_ERROR on EACCES and EPERM

This makes provision errors clearer in Samba.

Andrew Bartlett

Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
(cherry picked from commit 262c3de3f880bb08b1220d1e755bb31365dab49b)
source4/dsdb/samdb/ldb_modules/partition_metadata.c