drs-crackname: Fix error code so that we have the same as windows
authorMatthieu Patou <mat@matws.net>
Sun, 30 Jun 2013 09:04:20 +0000 (02:04 -0700)
committerMatthieu Patou <mat@matws.net>
Wed, 7 Aug 2013 04:22:07 +0000 (21:22 -0700)
Signed-off-by: Matthieu Patou <mat@matws.net>
Reviewed-by: Andrew Bartlett <abarlett@samba.org>
source4/dsdb/samdb/cracknames.c

index 628546e959eb0deb063192d6546f98e19e886215..caafd2fda7a19225d15931e9ae7a9cccf31e23e6 100644 (file)
@@ -934,6 +934,7 @@ static WERROR DsCrackNameOneFilter(struct ldb_context *sam_ctx, TALLOC_CTX *mem_
                struct ldb_result *res;
                uint32_t dsdb_flags = 0;
                struct ldb_dn *real_search_dn;
+               info1->status = DRSUAPI_DS_NAME_STATUS_NOT_FOUND;
 
                if (domain_res) {
                        if (!search_dn) {