From 2dedd49ca3041970ffe02f9adf69fbbb3cee7a4c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 29 May 2018 10:40:56 +1200 Subject: [PATCH] samldb: Explain why the odd error code is expected. Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam --- source4/dsdb/samdb/ldb_modules/samldb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c index f6fe6185aa4..da11ee2180c 100644 --- a/source4/dsdb/samdb/ldb_modules/samldb.c +++ b/source4/dsdb/samdb/ldb_modules/samldb.c @@ -3929,6 +3929,10 @@ static int samldb_prim_group_users_check(struct samldb_ctx *ac) ldb_dn_get_linearized(res->msgs[0]->dn), res_users->count); + /* + * Yes, this seems very wrong, but we have a test + * for this exact error code in sam.py + */ return LDB_ERR_ENTRY_ALREADY_EXISTS; } -- 2.47.2