samldb: Explain why the odd error code is expected.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 28 May 2018 22:40:56 +0000 (10:40 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 May 2018 02:23:27 +0000 (04:23 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/samldb.c

index f6fe618..da11ee2 100644 (file)
@@ -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;
        }